CVE-2022-31836
9.8critical
Path Traversal in Beego
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.69% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-95f9-94vc-665hGO-2022-0569
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/beego/beego (Go) | before 1.12.11 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/beego/beego/v2 (Go) | from 2.0.0 before 2.0.4 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/astaxie/beego (Go) | all versions | Go Vulnerability Database |
| beego beego | up to 2.0.3 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
Go Vulnerability Database
The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.
NVD (es)
La función leafInfo.match() en Beego versiones v2.0.3 y versiones anteriores usa path.join() para tratar con valores comodín que pueden conllevar a un riesgo entre directorios
References
| https://github.com/beego/beego/issues/4961 | exploit, issue-tracking, patch, third-party-advisory, web | |
| https://github.com/advisories/GHSA-95f9-94vc-665h | advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31836 | advisory | |
| https://github.com/beego/beego/pull/5025 | fix, web | |
| https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57 | fix, web | |
| https://github.com/beego/beego | package | |
| https://pkg.go.dev/vuln/GO-2022-0569 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31836 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-95f9-94vc-665h changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0569 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2022-31836 changed 2026-06-17 | Public domain |