CVE-2021-27116 Privilege escalation in beego

High 7.8 Published Updated

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.

PackageAffectedFixed in
github.com/beego/beego GoAll versionsNone
github.com/beego/beego GoAll versionsNone
github.com/beego/beego/v2 GoFrom 2.0.02.0.2
github.com/beego/beego/v2 GoFrom 2.0.02.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.

Sources

Also known as GHSA-ffjp-66mx-3qpj.

Is CVE-2021-27116 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free