CVE-2022-31259
CRITICAL 9.8CVSS 3.1Access control bypass in beego
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).
- Published
- 21 May 2022
- Last modified
- 8 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-284
- Also known as
- GHSA-qx32-f6g6-fcfrGO-2022-0463
- Sources
- NVDJSONOSV GHSA-qx32-f6g6-fcfrJSONOSV GO-2022-0463JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | beego | beegocpe:2.3:a:beego:beego:*:*:*:*:*:*:*:* |
<= 1.12.4 | |
| NVD | beego | beegocpe:2.3:a:beego:beego:*:*:*:*:*:*:*:* |
>= 2.0.0, <= 2.0.2 | |
| OSV | Go | github.com/beego/beego/v2 | < 2.0.3 | 2.0.3 |
| OSV | Go | github.com/beego/beego | < 1.12.9 | 1.12.9 |
| OSV | Go | github.com/astaxie/beego | all versions |
References
- https://beego.vip · Product
- https://github.com/advisories/GHSA-qx32-f6g6-fcfr · ADVISORY
- https://github.com/beego/beego/issues/4946 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/beego/beego/tree/v2.0.2 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31259 · ADVISORY
- https://github.com/beego/beego/pull/4954 · WEB
- https://github.com/beego/beego/pull/4958 · WEB, FIX
- https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009 · WEB
- https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd · WEB, FIX
- https://github.com/beego/beego · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-0463 · WEB
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2022)