Vulnerability identifier: #VU85168
Vulnerability risk: High
CVSSv4.0: 8.1 [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: Network
Exploit availability: No
Vulnerable software:
Beego
Web applications /
Modules and components for CMS
Vendor: 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.
Mitigation
Install update from vendor's website.
Vulnerable software versions
Beego: 1.0.1 - 2.0.3
External links
https://github.com/beego/beego/issues/4961
https://github.com/advisories/GHSA-95f9-94vc-665h
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.