VDB
Sign up
HIGH

GHSA-x457-cw4h-hq5f

JSON gem has Improper Input Validation vulnerability

Quick fix

GHSA-x457-cw4h-hq5f — json: upgrade to the fixed version with the command below.

bundle update json

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."

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/json
Introduced in: 0Fixed in: 1.5.5
Fixbundle update json
RubyGems/json
Introduced in: 1.6.0Fixed in: 1.6.8
Fixbundle update json
RubyGems/json
Introduced in: 1.7.0Fixed in: 1.7.7
Fixbundle update json

References