# CVE-2022-31259

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-05-21 · Modified: 2024-08-03
- Aliases: GHSA-qx32-f6g6-fcfr, GO-2022-0463
- Record: https://cvemate.com/vulnerability/CVE-2022-31259 · JSON: https://cvemate.com/vulnerability/CVE-2022-31259/json

## Description

```text
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).
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 22.158%, percentile 97.739%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- beego beego: ≤ 1.12.4 \| ≥ 2.0.0, ≤ 2.0.2
- github.com/astaxie beego (Go): All versions (No fix recorded)
- github.com/beego beego (Go): \< 1.12.9
- github.com/beego/beego v2 (Go): \< 2.0.3

## References

- <https://github.com/beego/beego/issues/4946>
- <https://beego.vip>
- <https://github.com/beego/beego/tree/v2.0.2>
- <https://github.com/advisories/GHSA-qx32-f6g6-fcfr>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31259>
- <https://github.com/beego/beego/pull/4954>
- <https://github.com/beego/beego/pull/4958>
- <https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009>
- <https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd>
- <https://github.com/beego/beego>
- <https://pkg.go.dev/vuln/GO-2022-0463>

---

Data as of 2026-12-05T18:29:32.711Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
