Skip to content
OpenAdvisories
High Public exploit CVE-2013-0269 EUVD-2017-0327GHSA-x457-cw4h-hq5f

JSON gem has Improper Input Validation vulnerability

Published Feb 13, 2013 · Updated Aug 6, 2024 · Assigned by redhat

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-json 1.7.3-3 —
Debian 13 ruby-json 1.7.3-3 —
Debian 12 ruby-json 1.7.3-3 —
Debian 6.0 libjson-ruby 1.1.9-1+deb6u1 DLA-215-1
Debian 6.0 ruby1.9.1 1.9.2.0-2+deb6u5 DLA-263-1
ReleasePackageFixed inAdvisory
Red Hat OpenShift 1 ruby193-ruby +5 1.9.3.327-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-bigdecimal 1.1.0-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-io-console 0.3-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-json 1.5.4-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-minitest 2.5.1-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-rake 0.9.2.2-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygem-rdoc 3.9.4-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 ruby193-rubygems +1 1.8.23-28.el6 RHSA-2013:0701
Red Hat OpenShift 1 rubygem-json +1 1.7.3-2.el6op RHSA-2013:0701
Red Hat OpenShift 1 rubygem-rdoc +1 3.8-9.el6op RHSA-2013:0701

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems json < 1.5.5 1.5.5 GHSA-x457-cw4h-hq5f
RubyGems json >= 1.6.0, < 1.6.8 1.6.8 GHSA-x457-cw4h-hq5f
RubyGems json >= 1.7.0, < 1.7.7 1.7.7 GHSA-x457-cw4h-hq5f

Advisories 4

References