CVE-2024-40464 Beego privilege escalation vulnerability
A remote attacker can escalate privileges in the beego Go framework due to improper certificate validation in the SMTP mail sending function.
- 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-40464?
CVE-2024-40464 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 sendMail function located in beego/core/logs/smtp.go file
Which versions are affected by CVE-2024-40464?
3 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 |
github.com/beego/beego/v2 Go | All versions | 2.2.1 |
Products include Beego Beego.
How do I fix CVE-2024-40464?
Upgrade github.com/beego/beego/v2 to 2.2.1 or later.
Is CVE-2024-40464 being exploited?
There is no known exploitation of CVE-2024-40464 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-r6qh-j42j-pw64, GO-2024-3016.