CVE-2024-40465 Beego privilege escalation vulnerability
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
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/beego/beego/v2 Go | All versions | 2.2.1 |
github.com/beego/beego/v2 Go | All versions | 2.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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wr3p-r5fj-wf97.