GHSA-5c5f-7vfq-3732

Suggest an improvement
Source
https://github.com/advisories/GHSA-5c5f-7vfq-3732
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5c5f-7vfq-3732/GHSA-5c5f-7vfq-3732.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5c5f-7vfq-3732
Aliases
Related
Published
2022-06-07T00:00:31Z
Modified
2024-02-16T08:23:12.825486Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
JMESPath for Ruby uses unsafe JSON.load when safe JSON.parse is preferable
Details

jmespath.rb (aka JMESPath for Ruby) before 1.6.1 uses JSON.load in a situation where JSON.parse is preferable.

Database specific
{
    "nvd_published_at": "2022-06-06T22:15:00Z",
    "cwe_ids": [
        "CWE-502"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-07T21:14:51Z"
}
References

Affected packages

RubyGems / jmespath

Package

Name
jmespath
Purl
pkg:gem/jmespath

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.1

Affected versions

0.*

0.2.0
0.9.0

1.*

1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2
1.1.3
1.2
1.2.1
1.2.2
1.2.3
1.2.4
1.3.0
1.3.1
1.4.0
1.5.0
1.6.0