Go Vulnerability Database
GO-2022-0569
Path traversal in github.com/beego/beego and beego/v2
Details
The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/astaxie/beego | All versions, no fix listed |
| 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) |