HighGHSA-wr3p-r5fj-wf97CVE-2024-40465

Beego privilege escalation vulnerability

Published 31 Jul 2024 · Updated 10 Sept 2026

Is your project on an affected github.com/beego/beego/v2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.1
Fixed in
2.2.1
Update to the fixed version for your release line, for example:go get github.com/beego/beego/v2@v2.2.1

Details

An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the getCacheFileName function in the file.go file.

Is GHSA-wr3p-r5fj-wf97 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/beego/beego/v2, and gives you the command that fixes it.

More advisories for github.com/beego/beego/v2

  • LowCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input in github.com/beego/beego · 1 Apr 2025
  • CriticalCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input · 31 Mar 2025
  • LowCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego · 18 Dec 2024
  • MediumCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames · 12 Dec 2024
  • LowCVE-2024-40464Beego privilege escalation vulnerability via sendMail in github.com/beego/beego/v2 · 19 Aug 2024
  • HighCVE-2024-40464Beego privilege escalation vulnerability · 31 Jul 2024
All 16 advisories for github.com/beego/beego/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.