# CVE-2024-40464: Beego privilege escalation vulnerability

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-07-31T00:00:00.000Z
- Modified: 2026-09-10T03:50:16.895Z
- Also known as: GHSA-r6qh-j42j-pw64, GO-2024-3016
- Related: CGA-fj77-2pgj-c25m
- Weaknesses: CWE-295, CWE-599
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- beego beego: up to 2.2.0; before 2.2.1
- github.com/beego/beego/v2 (Go): before 2.2.1

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/nyxfqq/b53b0148b9aa040de63f58a68fd11445> (third-party-advisory, web)
- <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> (fix, web)
- <https://github.com/beego/beego> (package)
- <https://github.com/advisories/GHSA-r6qh-j42j-pw64> (advisory)

## Sources

- CVE List: [CVE-2024-40464](https://www.cve.org/CVERecord?id=CVE-2024-40464), CVE Terms of Use, modified 2024-08-06
- GitHub Advisory Database: [GHSA-r6qh-j42j-pw64](https://github.com/advisories/GHSA-r6qh-j42j-pw64), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-3016](https://pkg.go.dev/vuln/GO-2024-3016), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-40464](https://nvd.nist.gov/vuln/detail/CVE-2024-40464), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40464 · Whole record: https://cve.day/CVE-2024-40464.json · Rebuilt by cve.day 2026-11-25T22:58:43.485Z
