CVE-2022-32511

CVE-2022-32511

Critical · published June 7, 2022

CVSS v3.1
9.8
EPSS
2%
Percentile
84.1
In the wild
Unconfirmed
What it is

⚠️ A tiny oversight in jmespath.rb is creating a subtle risk for Ruby users! Instead of using the safer JSON.parse, this library calls JSON.load, which can lead to unexpected behavior. 🔍 Think of it like a restaurant that serves food without checking for food allergies. While it's usually fine, there’s always a chance that a hidden ingredient could cause a reaction! This oversight could lead to some serious discrepancies in data handling. An attacker could exploit this flaw to manipulate JSON data, potentially leading to inconsistencies or security issues in applications relying on this library. While it's not currently exploited, the risk of unforeseen issues shouldn't be taken lightly!

Put simply

Think of it like a restaurant that serves food without checking for food allergies. While it's usually fine, there’s always a chance that a hidden ingredient could cause a reaction! This oversight could lead to some serious discrepancies in data handling. In jmespath.rb versions before 1.6.1, the use of JSON.load instead of JSON.parse can introduce vulnerabilities where untrusted input could be executed or improperly parsed, affecting the integrity of the application.

What to do

An attacker could exploit this flaw to manipulate JSON data, potentially leading to inconsistencies or security issues in applications relying on this library. While it's not currently exploited, the risk of unforeseen issues shouldn't be taken lightly! Upgrade jmespath.rb to version 1.6.1 or later to mitigate this risk. Ensure that you review your code for any instances where JSON parsing occurs to confirm that safer methods are being used. Testing your applications after the upgrade is also a great idea! You've got this! By taking these steps, you're helping to secure your Ruby applications! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02425 · 84.1th percentile
Published
2022-06-07T02:15Z
Affected products (3)
ProductVersionsFixed in
jmespath/jmespath< 1.6.11.6.1
fedoraproject/fedoraall versions—
fedoraproject/fedoraall versions—
References (10)
EPSS history
Timeline
  • 06 JUN 21:55Z
    jmespath.rb (aka JMESPath for Ruby) before 1.6.1 uses JSON.load in a situation where JSON.parse is preferable
    cvelistv5