CVE-2021-27116 Privilege escalation in beego
Local attackers can exploit symlink vulnerabilities in the profiling module to read or modify arbitrary files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-27116?
CVE-2021-27116 is a high-severity path traversal vulnerability in n/a, published on 5 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.
Weakness: CWE-59
Which versions are affected by CVE-2021-27116?
4 open source packages ship an affected version, including github.com/beego/beego and github.com/beego/beego/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/beego/beego Go | All versions | None |
github.com/beego/beego Go | All versions | None |
github.com/beego/beego/v2 Go | From 2.0.0 | 2.0.2 |
github.com/beego/beego/v2 Go | From 2.0.0 | 2.0.2 |
Products include Beego Beego.
How do I fix CVE-2021-27116?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-27116 being exploited?
There is no known exploitation of CVE-2021-27116 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-ffjp-66mx-3qpj.