GitHub Advisory Database
GHSA-95f9-94vc-665h
Path Traversal in Beego
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/beego/beego | All versions before 1.12.11 (fixed in 1.12.11) |
| Go | github.com/beego/beego/v2 | From 2.0.0 before 2.0.4 (fixed in 2.0.4) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31836
- https://github.com/beego/beego/issues/4961
- https://github.com/beego/beego/pull/5025
- https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57
- https://github.com/advisories/GHSA-95f9-94vc-665h
- https://github.com/beego/beego
- https://pkg.go.dev/vuln/GO-2022-0569