# CVE-2024-40465: 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.43%, higher than 39% of CVEs (2026-12-02)
- Published: 2024-07-31T00:00:00.000Z
- Modified: 2026-09-10T03:50:17.107Z
- Also known as: GHSA-wr3p-r5fj-wf97
- Weaknesses: CWE-327, CWE-328
- 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 getCacheFileName function in file.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/a5a2fc5147a1b34538e1ac05a3e56910> (third-party-advisory, web)
- <https://github.com/beego/beego/security/advisories/GHSA-6g9p-wv47-4fxq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-40465> (advisory)
- <https://github.com/beego/beego/commit/5a366cd62b555354a917a2d153e6563fe4d6eb88> (web)
- <https://github.com/beego/beego/commit/8f89e12e6cafb106d5c201dbc3b2a338bfde74e2> (web)
- <https://github.com/beego/beego> (package)

## Sources

- CVE List: [CVE-2024-40465](https://www.cve.org/CVERecord?id=CVE-2024-40465), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-wr3p-r5fj-wf97](https://github.com/advisories/GHSA-wr3p-r5fj-wf97), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-40465](https://nvd.nist.gov/vuln/detail/CVE-2024-40465), Public domain, modified 2026-06-17

---

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