HIGH8.8
GHSA-r6qh-j42j-pw64
Beego privilege escalation vulnerability
Quick fix
GHSA-r6qh-j42j-pw64 — github.com/beego/beego/v2: upgrade to the fixed version with the command below.
go get github.com/beego/beego/v2@v2.2.1Details
An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the `sendMail` function located in the `beego/core/logs/smtp.go` file.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/beego/beego/v2
Introduced in:
0Fixed in: 2.2.1Fix
go get github.com/beego/beego/v2@v2.2.1References
- https://github.com/beego/beego/security/advisories/GHSA-6g9p-wv47-4fxq[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-40464[ADVISORY]
- https://github.com/beego/beego/commit/8f89e12e6cafb106d5c201dbc3b2a338bfde74e2[WEB]
- https://gist.github.com/nyxfqq/b53b0148b9aa040de63f58a68fd11445[WEB]
- https://github.com/beego/beego[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/beego/beego/v2"]}'