Loading HuntDB...

GHSA-x457-cw4h-hq5f

GitHub Security Advisory

JSON gem has Improper Input Validation vulnerability

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

The JSON gem before 1.5.5, 1.6.x before 1.6.8, and 1.7.x before 1.7.7 for Ruby allows remote attackers to cause a denial of service (resource consumption) or bypass the mass assignment protection mechanism via a crafted JSON document that triggers the creation of arbitrary Ruby symbols or certain internal objects, as demonstrated by conducting a SQL injection attack against Ruby on Rails, aka "Unsafe Object Creation Vulnerability."

Affected Packages

RubyGems json
Affected versions: 0 (fixed in 1.5.5)
RubyGems json
Affected versions: 1.6.0 (fixed in 1.6.8)
RubyGems json
Affected versions: 1.7.0 (fixed in 1.7.7)

Related CVEs

Key Information

GHSA ID
GHSA-x457-cw4h-hq5f
Published
October 24, 2017 6:33 PM
Last Modified
June 1, 2023 7:55 PM
CVSS Score
7.5 /10
Primary Ecosystem
RubyGems
Primary Package
json
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 30, 2025 6:30 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.