Ruby/json/2.0.1


This is a JSON implementation as a Ruby extension in C.

https://rubygems.org/gems/json
Ruby

2 Security Vulnerabilities

Unsafe object creation in json RubyGem

Published date: 2020-07-27T18:08:21Z
CVE: CVE-2020-10663
Links:

The JSON gem through 2.2.0 for Ruby, as used in Ruby 2.4 through 2.4.9, 2.5 through 2.5.7, and 2.6 through 2.6.5, has an Unsafe Object Creation Vulnerability. This is quite similar to CVE-2013-0269/GHSA-x457-cw4h-hq5f, but does not rely on poor garbage-collection behavior within Ruby. Specifically, use of JSON parsing methods can lead to creation of a malicious object within the interpreter, with adverse effects that are application-dependent.

Affected versions: ["2.2.0", "2.1.0", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.0", "1.8.6", "1.8.5", "1.8.3", "1.8.2", "1.8.1", "1.8.0", "1.7.7", "1.7.6", "1.7.5", "1.7.4", "1.7.3", "1.7.2", "1.7.1", "1.7.0", "1.6.8", "1.6.7", "1.6.6", "1.6.5", "1.6.4", "1.6.3", "1.6.2", "1.6.1", "1.6.0.1", "1.6.0", "1.5.5", "1.5.4", "1.5.3", "1.5.2", "1.5.1", "1.5.0", "1.4.6", "1.4.5", "1.4.4", "1.4.3", "1.4.2", "1.4.1", "1.4.0", "1.2.4", "1.2.3", "1.2.2", "1.2.1", "1.2.0", "1.1.9", "1.1.8", "1.1.7", "1.1.6", "1.1.5", "1.1.4", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "0.4.3", "0.4.2", "0.4.1", "0.4.0"]
Secure versions: [2.3.1, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.7.0, 2.7.1, 2.7.2]
Recommendation: Update to version 2.7.2.

json Gem for Ruby Unsafe Object Creation Vulnerability (additional fix)

Published date: 2020-03-19
CVE: 2020-10663
CVSS V3: 7.5
Links:

There is an unsafe object creation vulnerability in the json gem bundled with Ruby. This vulnerability has been assigned the CVE identifier CVE-2020-10663. We strongly recommend upgrading the json gem.

Details

When parsing certain JSON documents, the json gem (including the one bundled with Ruby) can be coerced into creating arbitrary objects in the target system.

This is the same issue as CVE-2013-0269. The previous fix was incomplete, which addressed JSON.parse(userinput), but didn’t address some other styles of JSON parsing including JSON(userinput) and JSON.parse(user_input, nil).

See CVE-2013-0269 in detail. Note that the issue was exploitable to cause a Denial of Service by creating many garbage-uncollectable Symbol objects, but this kind of attack is no longer valid because Symbol objects are now garbage-collectable. However, creating arbitrary objects may cause severe security consequences depending upon the application code.

Affected versions: ["2.2.0", "2.1.0", "2.0.4", "2.0.3", "2.0.2", "2.0.1", "2.0.0", "1.8.6", "1.8.5", "1.8.3", "1.8.2", "1.8.1", "1.8.0", "1.7.7", "1.7.6", "1.7.5", "1.7.4", "1.7.3", "1.7.2", "1.7.1", "1.7.0", "1.6.8", "1.6.7", "1.6.6", "1.6.5", "1.6.4", "1.6.3", "1.6.2", "1.6.1", "1.6.0.1", "1.6.0", "1.5.5", "1.5.4", "1.5.3", "1.5.2", "1.5.1", "1.5.0", "1.4.6", "1.4.5", "1.4.4", "1.4.3", "1.4.2", "1.4.1", "1.4.0", "1.2.4", "1.2.3", "1.2.2", "1.2.1", "1.2.0", "1.1.9", "1.1.8", "1.1.7", "1.1.6", "1.1.5", "1.1.4", "1.1.3", "1.1.2", "1.1.1", "1.1.0", "1.0.4", "1.0.3", "1.0.2", "1.0.1", "1.0.0", "0.4.3", "0.4.2", "0.4.1", "0.4.0"]
Secure versions: [2.3.1, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.7.0, 2.7.1, 2.7.2]
Recommendation: Update to version 2.7.2.

81 Other Versions

Version License Security Released
2.7.2 Ruby 2024-04-04 - 03:31 16 days
2.7.1 Ruby 2023-12-05 - 04:13 5 months
2.7.0 Ruby 2023-12-01 - 06:38 5 months
2.6.3 Ruby 2022-12-05 - 11:10 over 1 year
2.6.2 Ruby 2022-05-16 - 22:01 almost 2 years
2.6.1 Ruby 2021-10-24 - 00:23 over 2 years
2.6.0 Ruby 2021-10-14 - 08:03 over 2 years
2.5.1 Ruby 2020-12-22 - 12:49 over 3 years
2.5.0 Ruby 2020-12-22 - 10:45 over 3 years
2.4.1 Ruby 2020-12-17 - 05:16 over 3 years
2.4.0 Ruby 2020-12-15 - 10:49 over 3 years
2.3.1 Ruby 2020-06-30 - 12:17 almost 4 years
2.3.0 Ruby 2019-12-11 - 17:33 over 4 years
2.2.0 Ruby 2 2019-02-21 - 22:28 about 5 years
2.1.0 Ruby 2 2017-04-18 - 09:40 about 7 years
2.0.4 Ruby 2 2017-04-11 - 10:42 about 7 years
2.0.3 Ruby 2 2017-01-12 - 14:21 over 7 years
2.0.2 Ruby 2 2016-07-26 - 11:12 over 7 years
2.0.1 Ruby 2 2016-07-01 - 15:34 almost 8 years
2.0.0 Ruby 2 2016-07-01 - 09:32 almost 8 years
1.8.6 Ruby 2 2017-01-13 - 11:12 over 7 years
1.8.5 Ruby 2 2017-01-12 - 11:47 over 7 years
1.8.3 Ruby 2 2015-06-02 - 07:29 almost 9 years
1.8.2 Ruby 2 2015-01-09 - 00:58 over 9 years
1.8.1 Ruby 2 2013-10-17 - 12:05 over 10 years
1.8.0 Ruby 2 2013-05-13 - 12:57 almost 11 years
1.7.7 Ruby 2 2013-02-11 - 18:12 about 11 years
1.7.6 UNKNOWN 4 2012-12-31 - 00:41 over 11 years
1.7.5 UNKNOWN 4 2012-08-17 - 19:00 over 11 years
1.7.4 UNKNOWN 4 2012-07-26 - 07:47 over 11 years
1.7.3 UNKNOWN 4 2012-05-11 - 22:27 almost 12 years
1.7.2 UNKNOWN 4 2012-05-11 - 19:04 almost 12 years
1.7.1 UNKNOWN 4 2012-05-07 - 11:29 almost 12 years
1.7.0 UNKNOWN 4 2012-04-28 - 01:29 almost 12 years
1.6.8 UNKNOWN 2 2013-02-11 - 18:05 about 11 years
1.6.7 UNKNOWN 3 2012-04-28 - 01:17 almost 12 years
1.6.6 UNKNOWN 3 2012-03-26 - 15:11 about 12 years
1.6.5 UNKNOWN 3 2012-01-15 - 14:50 over 12 years
1.6.4 UNKNOWN 3 2011-12-24 - 14:17 over 12 years
1.6.3 UNKNOWN 3 2011-12-01 - 08:18 over 12 years
1.6.2 UNKNOWN 3 2011-11-28 - 16:05 over 12 years
1.6.1 UNKNOWN 3 2011-09-18 - 13:26 over 12 years
1.6.0.1 UNKNOWN 3 2011-09-13 - 20:19 over 12 years
1.6.0 UNKNOWN 3 2011-09-12 - 23:26 over 12 years
1.5.5 UNKNOWN 2 2013-02-11 - 18:05 about 11 years
1.5.4 UNKNOWN 3 2011-08-31 - 23:26 over 12 years
1.5.3 UNKNOWN 3 2011-06-20 - 12:36 almost 13 years
1.5.2 UNKNOWN 3 2011-06-14 - 22:39 almost 13 years
1.5.1 UNKNOWN 3 2011-01-26 - 01:20 about 13 years
1.5.0 UNKNOWN 3 2011-01-23 - 06:02 about 13 years
1.4.6 UNKNOWN 4 2010-08-12 - 23:16 over 13 years
1.4.5 UNKNOWN 4 2010-08-07 - 16:05 over 13 years
1.4.4 UNKNOWN 4 2010-08-06 - 20:03 over 13 years
1.4.3 UNKNOWN 4 2010-08-03 - 22:54 over 13 years
1.4.2 UNKNOWN 4 2010-04-27 - 22:42 almost 14 years
1.4.1 UNKNOWN 4 2010-04-25 - 13:47 almost 14 years
1.4.0 UNKNOWN 4 2010-04-23 - 21:31 almost 14 years
1.2.4 UNKNOWN 4 2010-04-08 - 07:52 about 14 years
1.2.3 UNKNOWN 4 2010-03-11 - 09:12 about 14 years
1.2.2 UNKNOWN 4 2010-02-28 - 17:17 about 14 years
1.2.1 UNKNOWN 4 2010-02-26 - 21:29 about 14 years
1.2.0 UNKNOWN 4 2009-11-08 - 04:16 over 14 years
1.1.9 UNKNOWN 4 2009-09-24 - 22:13 over 14 years
1.1.8 UNKNOWN 4 2009-09-24 - 22:13 over 14 years
1.1.7 UNKNOWN 4 2009-08-05 - 00:38 over 14 years
1.1.6 UNKNOWN 4 2009-07-25 - 18:11 over 14 years
1.1.5 UNKNOWN 4 2009-07-25 - 18:11 over 14 years
1.1.4 UNKNOWN 4 2009-07-25 - 18:11 over 14 years
1.1.3 UNKNOWN 4 2009-07-25 - 18:11 over 14 years
1.1.2 UNKNOWN 4 2009-07-25 - 18:11 over 14 years
1.1.1 UNKNOWN 4 2009-09-24 - 22:13 over 14 years
1.1.0 UNKNOWN 4 2009-09-24 - 22:13 over 14 years
1.0.4 UNKNOWN 5 2009-09-24 - 22:13 over 14 years
1.0.3 UNKNOWN 5 2009-09-24 - 22:13 over 14 years
1.0.2 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
1.0.1 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
1.0.0 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
0.4.3 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
0.4.2 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
0.4.1 UNKNOWN 5 2009-07-25 - 18:11 over 14 years
0.4.0 UNKNOWN 5 2009-07-25 - 18:11 over 14 years