{"id":"GHSA-wr3p-r5fj-wf97","summary":"Beego privilege escalation vulnerability","details":"An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the `getCacheFileName` function in the `file.go` file.","aliases":["CVE-2024-40465"],"modified":"2026-09-10T03:50:17.107496785Z","published":"2024-07-31T21:32:38Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-08-01T13:24:05Z","nvd_published_at":"2024-07-31T21:15:17Z","cwe_ids":["CWE-327","CWE-328"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/beego/beego/security/advisories/GHSA-6g9p-wv47-4fxq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40465"},{"type":"WEB","url":"https://github.com/beego/beego/commit/5a366cd62b555354a917a2d153e6563fe4d6eb88"},{"type":"WEB","url":"https://github.com/beego/beego/commit/8f89e12e6cafb106d5c201dbc3b2a338bfde74e2"},{"type":"WEB","url":"https://gist.github.com/nyxfqq/a5a2fc5147a1b34538e1ac05a3e56910"},{"type":"PACKAGE","url":"https://github.com/beego/beego"}],"affected":[{"package":{"name":"github.com/beego/beego/v2","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-wr3p-r5fj-wf97/GHSA-wr3p-r5fj-wf97.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}