9.8critical
Access control bypass in beego
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 22.2% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-qx32-f6g6-fcfrGO-2022-0463
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/beego/beego/v2 (Go) | before 2.0.3 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/beego/beego (Go) | before 1.12.9 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/astaxie/beego (Go) | all versions | Go Vulnerability Database |
| beego beego | up to 1.12.4, from 2.0.0 up to 2.0.2 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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).
GitHub Advisory Database
The route lookup process in beego prior to 1.12.9 and 2.x prior to 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).
Go Vulnerability Database
Routes in the beego HTTP router can match unintended patterns. This overly-broad matching may permit an attacker to bypass access controls.
For example, the pattern "/a/b/:name" can match the URL "/a.xml/b/". This may bypass access control applied to the prefix "/a/".
NVD (es)
El proceso de búsqueda de rutas en beego versiones hasta 1.12.4 y versiones2.x hasta 2.0.2, permite a atacantes omitir el control de acceso. Cuando es configurada una ruta /p1/p2/:name, los atacantes pueden acceder a ella al añadir .xml en varios lugares (por ejemplo, p1.xml en lugar de p1)
References
| https://github.com/beego/beego/issues/4946 | exploit, issue-tracking, patch, third-party-advisory, web | |
| https://beego.vip | product | |
| https://github.com/beego/beego/tree/v2.0.2 | release-notes, third-party-advisory, web | |
| https://github.com/advisories/GHSA-qx32-f6g6-fcfr | advisory | |
| 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 | fix, web | |
| https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009 | web | |
| https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd | fix, web | |
| https://github.com/beego/beego | package | |
| https://pkg.go.dev/vuln/GO-2022-0463 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31259 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qx32-f6g6-fcfr changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0463 changed 2024-06-03 | CC-BY-4.0 |
| NVD | CVE-2022-31259 changed 2026-06-17 | Public domain |