CVE-2022-32511 JMESPath for Ruby uses unsafe JSON.load when safe JSON.parse is preferable
The Ruby JMESPath library uses unsafe JSON loading, potentially allowing attackers to execute arbitrary code via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-32511?
CVE-2022-32511 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 6 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
jmespath.rb (aka JMESPath for Ruby) before 1.6.1 uses JSON.load in a situation where JSON.parse is preferable.
Which versions are affected by CVE-2022-32511?
2 open source packages ship an affected version, including jmespath. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
jmespath RubyGems | All versions | 1.6.1 |
jmespath RubyGems | All versions | 1.6.1 |
Products include Fedoraproject Fedora, Jmespath Jmespath.
How do I fix CVE-2022-32511?
Upgrade jmespath to 1.6.1 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2022-32511 being exploited?
There is no known exploitation of CVE-2022-32511 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2022-32511, GHSA-5c5f-7vfq-3732, MINI-x9qh-fv6h-pj45, UBUNTU-CVE-2022-32511.