CVE-2022-31836
CWE-22Published: July 5, 2022· Updated: Jun 17, 2026
Official 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.
Risk Analysis
The Beego framework contains a path traversal vulnerability in its leafInfo.match() function. This flaw allows attackers to access files outside the intended directory, and the critical CVSS score of 9.8 reflects the high potential for full system compromise.
There is no known public exploit for this vulnerability, and it is not listed in CISA's KEV catalog. It is remotely exploitable due to the network-based attack vector.
Users should upgrade to a version of Beego beyond 2.0.3 to resolve this issue.
Technical Analysis
CVE-2022-31836 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (4)
Quick Facts
Related CVEs (CWE-22)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2022-31836 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts