CVE-2022-31691 Code injection in Spring by VMware
Attackers can execute arbitrary code via malicious YAML files processed by the Snakeyaml library in Spring Tools and related VSCode extensions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-31691?
CVE-2022-31691 is a critical code injection vulnerability in Spring by VMware, published on 4 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Spring Tools 4 for Eclipse version 4.16.0 and below as well as VSCode extensions such as Spring Boot Tools, Concourse CI Pipeline Editor, Bosh Editor and Cloudfoundry Manifest YML Support version 1.39.0 and below all use Snakeyaml library for YAML editing support. This library allows for some special syntax in the YAML that under certain circumstances allows for potentially harmful remote code execution by the attacker.
Weakness: CWE-94
Which versions are affected by CVE-2022-31691?
It affects 5 products.
Products include Vmware Bosh Editor, Vmware Cloudfoundry Manifest Yml Support, Vmware Concourse Ci Pipeline Editor, Vmware Spring Boot Tools, Vmware Spring Tools.
How do I fix CVE-2022-31691?
No fix has been published for CVE-2022-31691 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-31691 being exploited?
There is no known exploitation of CVE-2022-31691 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-r5cr-5j3q-vpf6.