GHSA-x457-cw4h-hq5f

Suggest an improvement
Source
https://github.com/advisories/GHSA-x457-cw4h-hq5f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-x457-cw4h-hq5f/GHSA-x457-cw4h-hq5f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x457-cw4h-hq5f
Aliases
Published
2017-10-24T18:33:37Z
Modified
2024-12-05T05:39:59.197079Z
Summary
JSON gem has Improper Input Validation vulnerability
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."

Database specific
{
    "nvd_published_at": "2013-02-13T01:55:05Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T22:01:58Z"
}
References

Affected packages

RubyGems / json

Package

Name
json
Purl
pkg:gem/json

Affected ranges

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

Affected versions

0.*

0.4.0
0.4.1
0.4.2
0.4.3

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4

RubyGems / json

Package

Name
json
Purl
pkg:gem/json

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.6.0
Fixed
1.6.8

Affected versions

1.*

1.6.0
1.6.0.1
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.6.7

RubyGems / json

Package

Name
json
Purl
pkg:gem/json

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.7.0
Fixed
1.7.7

Affected versions

1.*

1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.5
1.7.6