CVE-2024-40465 Beego privilege escalation vulnerability

High 8.8 Published Updated

A remote attacker can escalate privileges in the beego Go web framework due to weak cryptographic practices in cache file naming.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-40465?

CVE-2024-40465 is a high-severity vulnerability in n/a, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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

Weakness: CWE-328, CWE-327

Which versions are affected by CVE-2024-40465?

2 open source packages ship an affected version, including github.com/beego/beego/v2. It affects 1 product.

PackageAffectedFixed in
github.com/beego/beego/v2 GoAll versions2.2.1
github.com/beego/beego/v2 GoAll versions2.2.1

Products include Beego Beego.

How do I fix CVE-2024-40465?

Upgrade github.com/beego/beego/v2 to 2.2.1 or later.

Is CVE-2024-40465 being exploited?

There is no known exploitation of CVE-2024-40465 in the wild and no public exploit code.

Sources

Also known as GHSA-wr3p-r5fj-wf97.

Is CVE-2024-40465 in your software?

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

Check your SBOMs for free