Vulnerability · Published May 21, 2022 · Assigned by mitre
CVE-2022-31259
Critical 9.8
In plain English
A critical-severity security flaw in the github.com/astaxie/beego package (Go). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 22.2% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)22.2%top 2.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/astaxie/beego | no fix listed | GO-2022-0463 |
| Go | github.com/beego/beego | 1.12.9 | GHSA-qx32-f6g6-fcfr |
| Go | github.com/beego/beego | 1.12.9 | GO-2022-0463 |
| Go | github.com/beego/beego/v2 | 2.0.3 | GHSA-qx32-f6g6-fcfr |
| Go | github.com/beego/beego/v2 | 2.0.3 | GO-2022-0463 |