CVE-2022-31259
mediumpriority · attend · 47EPSS 0.222 · 98 %ileEUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.8–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-qx32-f6g6-fcfrAccess control bypass in beego2022-05-22ghsa · osvUS
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-2022-0463Access control bypass due to broad route matching in github.com/beego/beego and beego/v22022-07-01vendor · osvUS
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/".
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://beego.vipcnnvd
- https://cxsecurity.com/cveshow/CVE-2022-31259/cnnvd
- https://github.com/advisories/GHSA-qx32-f6g6-fcfrcnnvd
- https://github.com/beego/beego/issues/4946cnnvd
- https://github.com/beego/beego/tree/v2.0.2cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022052408cnnvd
- https://beego.vipenisa_euvd
- https://github.com/advisories/GHSA-qx32-f6g6-fcfrenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan