CVE-2022-0671: Server-Side Request Forgery and Uncontrolled Resource Consumption in LemMinX
Summary
CVE-2022-0671: Server-Side Request Forgery and Uncontrolled Resource Consumption in LemMinX. Affects org.eclipse.lemminx:lemminx-parent versions < 0.19.0. Fixed in 0.19.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
LemMinX is a Maven package named org.eclipse.lemminx:lemminx-parent. It is an XML language server for Visual Studio Code (VSCode) that provides XML validation, content assist, and hover support. LemMinX is responsible for handling schema downloads, which are used for validating XML files. However, versions prior to 0.19.0 are vulnerable to a flaw that can lead to blind Server-Side Request Forgery (SSRF) or Denial of Service (DoS) attacks due to uncontrolled resource consumption when downloading large files.
Vulnerability Detail
The vulnerability in LemMinX arises from its schema download functionality. An attacker can exploit this flaw by sending a specially crafted request to the server, tricking it into making unintended requests to internal resources. This can result in SSRF attacks, where the server fetches arbitrary content from other servers, potentially exposing sensitive information or performing actions on behalf of the attacker. Additionally, the vulnerability can be leveraged to consume excessive server resources by requesting large files, leading to a DoS condition. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.1.
How To Fix
Minimum fixed version
0.19.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading to the patched version of LemMinX.
Conclusion
In conclusion, the vulnerability in LemMinX (org.eclipse.lemminx:lemminx-parent) allows for Server-Side Request Forgery (SSRF) attacks and uncontrolled resource consumption. It is crucial to upgrade to version 0.19.0 or later to mitigate these issues. No known workarounds are available, and it is recommended to follow the provided fix. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for org.eclipse.lemminx:lemminx-parent →
FAQ
LemMinX is a Maven package that serves as an XML language server for Visual Studio Code (VSCode). It provides XML validation, content assist, and hover support.
The vulnerability in LemMinX can be exploited to perform Server-Side Request Forgery (SSRF) attacks or cause Denial of Service (DoS) conditions. This can lead to unauthorized access to internal resources, exposure of sensitive information, or disruption of service.
To fix this vulnerability, you should upgrade to version 0.19.0 or later of org.eclipse.lemminx:lemminx-parent. This version includes the necessary patches to address the SSRF and uncontrolled resource consumption issues.
No, there is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading to the patched version of LemMinX.
For more information about this vulnerability, you can refer to the GitHub Security Advisory GHSA-52vv-3vf7-f7wh or the associated CVE-2022-0671.
Related vulnerabilities
Recent vulnerabilities recorded for org.eclipse.lemminx:lemminx-parent.