JSON gem has Improper Input Validation vulnerability
Published 24 Oct 2017 · Updated 5 Dec 2024
Is your project on an affected json?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <1.5.5
- Fixed in
- 1.5.5
bundle update --conservative json # Gemfile: '>= 1.5.5'- Affected
- >=1.6.0 <1.6.8
- Fixed in
- 1.6.8
bundle update --conservative json # Gemfile: '>= 1.6.8'- Affected
- >=1.7.0 <1.7.7
- Fixed in
- 1.7.7
bundle update --conservative json # Gemfile: '>= 1.7.7'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."
Is GHSA-x457-cw4h-hq5f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected json, and gives you the command that fixes it.
More advisories for json
- LowCVE-2026-71847Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams · 7 Aug 2026
- LowCVE-2026-54696Ruby json: JSON generator heap buffer overflow when streaming to an IO · 23 Jul 2026
- HighCVE-2026-33210Ruby JSON has a format string injection vulnerability · 19 Mar 2026
- HighCVE-2025-27788Out-of-bounds Read in Ruby JSON Parser · 12 Mar 2025
- HighCVE-2020-10663Unsafe object creation in json RubyGem · 27 Jul 2020
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2013-0269
- Linkexchange.xforce.ibmcloud.com/vulnerabilities/82010
- Packagegithub.com/flori/json
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/json/CVE-2013-0269.yml
- Linkgroups.google.com/group/rubyonrails-security/msg/d8e0db6e08c81428?dmode=source&output=gplain
- Linkweb.archive.org/web/20130228082541/http://www.securityfocus.com/bid/57899
- Linkweb.archive.org/web/20160331131233/http://spreecommerce.com/blog/multiple-security-vulnerabilities-fixed
- Linkweb.archive.org/web/20160808163226/https://puppet.com/security/cve/cve-2013-0269
- Linklists.apple.com/archives/security-announce/2013/Oct/msg00006.html
- Linklists.opensuse.org/opensuse-security-announce/2013-04/msg00001.html
- Linklists.opensuse.org/opensuse-security-announce/2013-04/msg00015.html
- Linklists.opensuse.org/opensuse-updates/2013-04/msg00034.html
- Linkrhn.redhat.com/errata/RHSA-2013-0686.html
- Linkrhn.redhat.com/errata/RHSA-2013-0701.html
- Linkrhn.redhat.com/errata/RHSA-2013-1028.html
- Linkrhn.redhat.com/errata/RHSA-2013-1147.html
- Linkweblog.rubyonrails.org/2013/2/11/SEC-ANN-Rails-3-2-12-3-1-11-and-2-3-17-have-been-released
- Linkwww.openwall.com/lists/oss-security/2013/02/11/7
- Linkwww.openwall.com/lists/oss-security/2013/02/11/8
- Linkwww.slackware.com/security/viewer.php?l=slackware-security&y=2013&m=slackware-security.426862
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.