CVE-2022-31259Beego
Critical 9.8 No auth needed
Follow: this CVE · Beego · Beego We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- May 21, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).
What to do
- Apply the vendor's security update for Beego.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/astaxie/beego |
all |
no fixed version | — |
| Go | github.com/beego/beego |
< 1.12.9 |
1.12.9 |
go get github.com/beego/beego@v1.12.9 |
| Go | github.com/beego/beego |
< 1.12.9 |
1.12.9 |
go get github.com/beego/beego@v1.12.9 |
| Go | github.com/beego/beego/v2 |
< 2.0.3 |
2.0.3 |
go get github.com/beego/beego/v2@v2.0.3 |
| Go | github.com/beego/beego/v2 |
< 2.0.3 |
2.0.3 |
go get github.com/beego/beego/v2@v2.0.3 |
Per OSV / GitHub Advisories (GO-2022-0463, GHSA-qx32-f6g6-fcfr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| beego | beego | ≤ 1.12.4 |
| beego | beego | ≥ 2.0.0 ≤ 2.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- beego.vip Product
- github.com
- github.com Exploit Issue Tracking Patch
- github.com Release Notes Third Party Advisory