CVE-2022-31836
CRITICAL9.8EPSS 0.45%Path Traversal in Beego
Published: 7/6/2022Modified: 3/13/2026
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 packages (5)
- Go/github.com/astaxie/beegofrom 0
- Go/github.com/beego/beegofrom 0, < 1.12.11
- Go/github.com/beego/beegofrom 0, < 1.12.11
- Go/github.com/beego/beego/v2>= 2.0.0, < 2.0.4
- Go/github.com/beego/beego/v2>= 2.0.0, < 2.0.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (7)
- ADVISORYhttps://github.com/advisories/GHSA-95f9-94vc-665h
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-31836
- PATCHhttps://github.com/beego/beego
- WEBhttps://github.com/beego/beego/issues/4961
- WEBhttps://github.com/beego/beego/pull/5025
- WEBhttps://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57
- WEBhttps://pkg.go.dev/vuln/GO-2022-0569