CVE-2022-31259 in the critical feed json
Access control bypass in beego
published 2022-05-21 4 y ago modified 2026-07-08 4 mo ago also GHSA-qx32-f6g6-fcfr , GO-2022-0463 , EUVD-2022-5053
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 22.2%
- EPSS 22.2% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- go github.com/beego/beego/v2 2.0.3
- go github.com/beego/beego 1.12.9
- github.com/beego/beego@2285761 commit
- github.com/beego/beego@64cf44d commit
- github.com/beego/beego#4954 pull request
- github.com/beego/beego#4958 pull request
- github.com/beego/beego/issues/4946 advisory
Exploit prediction
22.16% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/beego/beego/issues/4946 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/beego/beego/v2 | <2.0.3 |
2.0.3 |
| go | github.com/beego/beego | <1.12.9 |
1.12.9 |
| go | github.com/astaxie/beego | all versions |
no fix listed |
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
github.com
/beego/beego/issues/4946
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/beego/beego/pull/4954
web
-
github.com
/beego/beego/pull/4958
web, patch
-
github.com
/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009
web
-
github.com
/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd
web, patch
-
beego.vip
product
-
github.com
/beego/beego/tree/v2.0.2
web, release-notes, third-party-advisory
-
github.com
/advisories/GHSA-qx32-f6g6-fcfr
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31259
advisory
-
github.com
/beego/beego
package
-
pkg.go.dev
/vuln/GO-2022-0463
web
Sources
- CVE List CVE-2022-31259
- GitHub Advisory GHSA-qx32-f6g6-fcfr
- NVD CVE-2022-31259
- OSV GO-2022-0463
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.