HighGHSA-ffjp-66mx-3qpjCVE-2021-27116
Privilege escalation in beego
Published 6 Apr 2022 · Updated 8 Nov 2023
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 packages
- Affected
- >=2.0.0 <2.0.2
- Fixed in
- 2.0.2
Update to the fixed version for your release line, for example:
go get github.com/beego/beego/v2@v2.0.2- Affected
- All versions
- Fixed in
- No fix released
Details
An issue was discovered in file profile.go. The MemProf and GetCPUProfile functions do not correctly check whether the created file exists. As a result attackers can launch attacks symlink attacks locally. Attackers can use this vulnerability to escalate privileges.
Is GHSA-ffjp-66mx-3qpj 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
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.