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?
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.1Details
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
References
- Linkgithub.com/beego/beego/security/advisories/GHSA-6g9p-wv47-4fxq
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-40465
- Linkgithub.com/beego/beego/commit/5a366cd62b555354a917a2d153e6563fe4d6eb88
- Linkgithub.com/beego/beego/commit/8f89e12e6cafb106d5c201dbc3b2a338bfde74e2
- Linkgist.github.com/nyxfqq/a5a2fc5147a1b34538e1ac05a3e56910
- Packagegithub.com/beego/beego
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.