CVE-2022-31836Published Jul 5, 2022 · Jul 5Updated Oct 28
Path Traversal in Beego
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/beego/beego Go |
|
|
| github.com/beego/beego/v2 Go |
|
|
| github.com/astaxie/beego Go |
| Product | Affected | Fixed in |
|---|---|---|
| github.com/beego/beego Go |
|
|
| github.com/beego/beego/v2 Go |
|
|
| github.com/astaxie/beego Go |
|
| No fix yet |
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.
From the CVE record · mitre
Beego's leafInfo.match() uses path.join() to handle wildcard values, which can create a cross-directory risk. The input does not specify how an attacker could exploit this or whether network access, authentication, or user interaction is required.
Check applications using github.com/beego/beego below 1.12.11, github.com/beego/beego/v2 from 2.0.0 to below 2.0.4, or any version of github.com/astaxie/beego.