
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (CVE-2022-31836) affects Beego v2.0.3 and below, specifically in the leafInfo.match() function. The vulnerability was discovered and disclosed in July 2022, impacting the web framework's path handling mechanism. The issue stems from the function's use of path.join() to process wildcard values, which can potentially lead to cross-directory traversal risks (GitHub Advisory).
The vulnerability exists in the leafInfo.match() function's implementation where it uses path.join() to handle wildcard values. This implementation can be exploited through two main vectors: routes ending with . can use ../ for cross-directory traversal and setting malicious values for :path parameter, and regex routes can utilize ../ to traverse directories and replace wildcards with malicious values. The vulnerability has been assigned a Critical severity rating with a CVSS score of 9.8, indicating high impact on confidentiality, integrity, and availability (GitHub Advisory).
The vulnerability allows attackers to perform path traversal attacks, potentially accessing files outside the intended directory structure. This could lead to unauthorized access to sensitive files and potential system compromise. The high CVSS score of 9.8 indicates severe potential impact on system security (GitHub Advisory).
The vulnerability has been patched in Beego version 2.0.4 for v2 branch and version 1.12.11 for v1 branch. Users are strongly advised to upgrade to these patched versions to mitigate the risk (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."