GitHub Advisoryadvisory · Go
GHSA-95f9-94vc-665h Path Traversal in Beego
CRITICAL
Official page ↗
- Aliases
- CVE-2022-31836
- Ecosystem
- Go
- Packages
- github.com/beego/beego, github.com/beego/beego/v2
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
- Reviewed
- 2022-07-06
Affected packages
• Go github.com/beego/beego: < 1.12.11 → fixed in 1.12.11
• Go github.com/beego/beego/v2: >= 2.0.0, < 2.0.4 → fixed in 2.0.4
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.
Related
Alias · CVE (1)
- CVE-2022-31836 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. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31836 advisory
- https://github.com/beego/beego/issues/4961 web
- https://github.com/beego/beego/pull/5025 web
- https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57 web
- https://github.com/advisories/GHSA-95f9-94vc-665h advisory
- https://github.com/beego/beego package
- https://pkg.go.dev/vuln/GO-2022-0569 web