CVE-2022-31836 json
Path Traversal in Beego
published 2022-07-05 4 y ago modified 2026-07-08 4 mo ago also GHSA-95f9-94vc-665h , GO-2022-0569 , EUVD-2022-6301
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.
Patch / fix
- go github.com/beego/beego 1.12.11
- go github.com/beego/beego/v2 2.0.4
- github.com/beego/beego#5025 commit
- github.com/beego/beego#5025 pull request
- github.com/beego/beego/issues/4961 advisory
Exploit prediction
1.66% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/beego/beego/issues/4961 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 | 7.5 | AV:N/AC:L/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 | <1.12.11 |
1.12.11 |
| go | github.com/beego/beego/v2 | >=2.0.0, <2.0.4 |
2.0.4 |
| go | github.com/astaxie/beego | all versions |
no fix listed |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/beego/beego/issues/4961
web, exploit, issue-tracking, patch, third-party-advisory
-
github.com
/beego/beego/pull/5025
web, patch
-
github.com
/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57
web, patch
-
github.com
/advisories/GHSA-95f9-94vc-665h
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31836
advisory
-
github.com
/beego/beego
package
-
pkg.go.dev
/vuln/GO-2022-0569
web
Sources
- CVE List CVE-2022-31836
- GitHub Advisory GHSA-95f9-94vc-665h
- NVD CVE-2022-31836
- OSV GO-2022-0569
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.