Plateforme
java
Composant
org.eclipse.lemminx:lemminx-parent
Corrigé dans
0.19.1
0.19.0
CVE-2022-0671 describes a critical Server-Side Request Forgery (SSRF) and Denial-of-Service (DoS) vulnerability discovered in the vscode-xml extension for Visual Studio Code. This flaw arises from the schema download functionality, where an attacker can potentially trigger a large file download, leading to resource exhaustion and denial of service, or exploit SSRF vulnerabilities. The vulnerability affects versions of the vscode-xml extension prior to 0.19.0. A fix is available in version 0.19.0.
The vulnerability allows an attacker to induce the vscode-xml extension to download a large file from an arbitrary URL. This can lead to a denial-of-service condition by consuming excessive network bandwidth and server resources. More concerningly, the SSRF aspect allows an attacker to potentially access internal resources that the VS Code instance has access to, bypassing security controls. This could involve reading sensitive configuration files, accessing internal APIs, or even interacting with other services within the network. The impact is amplified if the VS Code instance is running with elevated privileges or has access to sensitive data. While no direct exploitation has been publicly reported, the SSRF component presents a significant risk due to its potential for data exfiltration and lateral movement.
This CVE is not currently listed on the CISA KEV catalog. Public proof-of-concept exploits are not widely available, but the SSRF component makes it a high-probability vulnerability. The vulnerability was disclosed on 2022-02-19. The potential for SSRF exploitation warrants careful attention, particularly in environments where VS Code instances have access to sensitive internal resources.
Developers and organizations using the vscode-xml extension in Visual Studio Code are at risk. This includes teams working with XML-based projects, particularly those who rely on schema validation or automatic schema downloads. Shared hosting environments where multiple users share a single VS Code instance are also at increased risk, as a compromised user could potentially exploit the vulnerability to impact other users.
• windows / supply-chain: Monitor VS Code processes (code.exe) for unusual network connections using Get-Process | Where-Object {$_.ProcessName -eq 'code'}. Check for suspicious entries in the VS Code extension directory (typically %USERPROFILE%/.vscode/extensions) for modified or unexpected files.
Get-Process | Where-Object {$_.ProcessName -eq 'code'} | Select-Object Name, Id, CPU, WorkingSet• linux / server: Monitor VS Code processes (code) using ps aux | grep code. Examine system logs (e.g., /var/log/syslog) for errors related to schema downloads or network connections originating from the VS Code process.
ps aux | grep code• generic web: Monitor VS Code instances for outbound HTTP requests to unusual or unexpected domains. Examine VS Code's network traffic using tools like Wireshark or tcpdump for suspicious patterns.
disclosure
patch
Statut de l'Exploit
EPSS
0.38% (percentile 60%)
Vecteur CVSS
The primary mitigation for CVE-2022-0671 is to immediately upgrade the vscode-xml extension to version 0.19.0 or later. If upgrading is not immediately feasible due to compatibility issues or breaking changes, consider temporarily disabling the schema download functionality within the extension's settings. Network-level controls, such as a Web Application Firewall (WAF), can be configured to block requests to suspicious URLs or limit the size of downloaded files. Monitor VS Code instances for unusual network activity or resource consumption. After upgrading, confirm the fix by attempting to trigger a schema download from a known-safe URL and verifying that the download completes without errors or excessive resource usage.
Actualice el plugin vscode-xml a la versión 0.19.0 o superior. Esta actualización corrige la vulnerabilidad SSRF y DoS. Puede actualizar el plugin a través del marketplace de Visual Studio Code.
Analyses de vulnérabilités et alertes critiques directement dans votre boîte mail.
CVE-2022-0671 is a critical SSRF and DoS vulnerability in the vscode-xml extension for Visual Studio Code, allowing attackers to trigger large file downloads and potentially access internal resources.
You are affected if you are using the vscode-xml extension in Visual Studio Code prior to version 0.19.0.
Upgrade the vscode-xml extension to version 0.19.0 or later. Temporarily disable schema downloads if upgrading is not immediately possible.
While no direct exploitation has been publicly reported, the SSRF component presents a significant risk and warrants careful attention.
Refer to the vscode-xml extension's release notes and the VS Code security advisories for details: https://github.com/microsoft/vscode-xml/releases/tag/0.19.0
Téléverse ton fichier de dépendances et découvre instantanément si cette CVE et d'autres te touchent.
Téléverse ton fichier pom.xml et nous te dirons instantanément si tu es affecté.