LowGO-2024-3016CVE-2024-40464GHSA-r6qh-j42j-pw64

Beego privilege escalation vulnerability via sendMail in github.com/beego/beego/v2

Published 19 Aug 2024 · Updated 4 Feb 2026

Is your project on an affected github.com/beego/beego/v2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.1
Fixed in
2.2.1
Update to the fixed version for your release line, for example:go get github.com/beego/beego/v2@v2.2.1

Details

Beego privilege escalation vulnerability via sendMail in github.com/beego/beego/v2

Is GO-2024-3016 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/beego/beego/v2, and gives you the command that fixes it.

More advisories for github.com/beego/beego/v2

  • LowCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input in github.com/beego/beego · 1 Apr 2025
  • CriticalCVE-2025-30223Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input · 31 Mar 2025
  • LowCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego · 18 Dec 2024
  • MediumCVE-2024-55885Beego has Collision Hazards of MD5 in Cache Key Filenames · 12 Dec 2024
  • HighCVE-2024-40465Beego privilege escalation vulnerability · 31 Jul 2024
  • LowCVE-2022-31836Path traversal in github.com/beego/beego and beego/v2 · 23 Aug 2022
All 15 advisories for github.com/beego/beego/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.