Path traversal in Beego - CVE-2022-31836

 

Path traversal in Beego - CVE-2022-31836

Published: January 9, 2024


Vulnerability identifier: #VU85168
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-31836
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to leafInfo.match() function in Beego uses path.join() to deal with wildcardvalues which can lead to cross directory risk. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


Affected software

Beego
IBM Cloud Pak System
IBM Fusion HCI

How to mitigate CVE-2022-31836

Install update from vendor's website.

Beego - addressed in versions 1.12.11, 2.0.4
IBM Cloud Pak System - update to 2.3.3.7 iFix 01
IBM Fusion HCI - update to 2.8.0

External References

Related Security Bulletins