Path traversal in Beego - CVE-2022-31836
Published: January 9, 2024
Vulnerability identifier: #VU85168
CSH Severity: High
CVSSv4.0: 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/E:U/U:Amber
CVE-ID: CVE-2022-31836
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerable software:
Beego
Beego
Software vendor:
beego Framework
beego Framework
Description
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.
Remediation
Install update from vendor's website.