CVE-2024-40464 Beego privilege escalation vulnerability

High 8.8 Published Updated

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

Weakness: CWE-295, CWE-599

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.

PackageAffectedFixed in
github.com/beego/beego/v2 GoAll versions2.2.1
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-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.

Sources

Also known as GHSA-r6qh-j42j-pw64, GO-2024-3016.

Is CVE-2024-40464 in your software?

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

Check your SBOMs for free