Skip to content

CVE-2022-31836 Path Traversal in Beego

CriticalCVSS 9.8 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

3 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
astaxie github.com/astaxie/beego(Go) All versions No fix listed No fix yet
beego github.com/beego/beego/v2 <= 2.0.3 after 2.0.3 Fixed
beego github.com/beego/beego/v2(Go) < 1.12.11; >= 2.0.0, < 2.0.4 1.12.11, 2.0.4 Fixed

Affected products

ProductAffected versionsFixed in
beego github.com/beego/beego/v2(Go) < 1.12.11 1.12.11
beego github.com/beego/beego/v2(Go) >= 2.0.0, < 2.0.4 2.0.4
astaxie github.com/astaxie/beego(Go) All versions No fix listed
beego github.com/beego/beego/v2 <= 2.0.3 No fix listed

References