# CVE-2022-31259: Access control bypass in beego

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 22.2%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-21T00:00:00.000Z
- Modified: 2026-07-08T06:27:50.220Z
- Also known as: GHSA-qx32-f6g6-fcfr, GO-2022-0463
- Weaknesses: CWE-284
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/beego/beego/v2 (Go): before 2.0.3
- github.com/beego/beego (Go): before 1.12.9
- github.com/astaxie/beego (Go): all versions
- beego beego: up to 1.12.4; from 2.0.0 up to 2.0.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## 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

- CVE List: [CVE-2022-31259](https://www.cve.org/CVERecord?id=CVE-2022-31259), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-qx32-f6g6-fcfr](https://github.com/advisories/GHSA-qx32-f6g6-fcfr), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0463](https://pkg.go.dev/vuln/GO-2022-0463), CC-BY-4.0, modified 2024-06-03
- NVD: [CVE-2022-31259](https://nvd.nist.gov/vuln/detail/CVE-2022-31259), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31259 · Whole record: https://cve.day/CVE-2022-31259.json · Rebuilt by cve.day 2026-11-25T22:58:11.886Z
