CVE-2022-31259
CVE-2022-31259 is a critical-severity vulnerability in Beego with a CVSS 3.x base score of 9.8. Its EPSS exploit-prediction score of 22% places it in the 97th percentile, indicating an elevated likelihood of exploitation.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v2: 6.8
- EPSS exploit prediction: 22% (97th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Beego
- Published:
- Last modified:
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).
Frequently asked questions
- What is CVE-2022-31259?
- 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).
- How severe is CVE-2022-31259?
- CVE-2022-31259 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2022-31259 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 22% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-31259?
- CVE-2022-31259 affects Beego. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-31259?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2022-31259 published?
- CVE-2022-31259 was published on 2022-05-21 and last updated on 2026-06-17.
References
- https://beego.vip
- https://github.com/advisories/GHSA-qx32-f6g6-fcfr
- https://github.com/beego/beego/issues/4946
- https://github.com/beego/beego/tree/v2.0.2
Affected products (1)
- cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*
More vulnerabilities in Beego
- CVE-2022-31836 — Critical (CVSS 9.8): The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to…
- CVE-2021-30080 — Critical (CVSS 9.8): An issue was discovered in the route lookup process in beego before 1.12.11 that allows attackers to bypass access…
- CVE-2025-30223 — Critical (CVSS 9.3): Beego is an open-source web framework for the Go programming language. Prior to 2.3.6, a Cross-Site Scripting (XSS)…
- CVE-2024-40465 — High (CVSS 8.8): An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the getCacheFileName function…
- CVE-2024-40464 — High (CVSS 8.8): An issue in beego v.2.2.0 and before allows a remote attacker to escalate privileges via the sendMail function located…
- CVE-2021-27117 — High (CVSS 7.8): An issue was discovered in file profile.go in function GetCPUProfile in beego through 2.0.2, allows attackers to launch…