ESB-2017.2345.2 - UPDATE [Win][UNIX/Linux] Ruby JSON: Access confidential data - Existing account 2017-09-18

Printable version
PGP/GPG verifiable version

Hash: SHA256

             AUSCERT External Security Bulletin Redistribution

      CVE-2017-14064: Heap exposure vulnerability in generating JSON
                             18 September 2017


        AusCERT Security Bulletin Summary

Product:           Ruby JSON
Publisher:         Ruby
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Access Confidential Data -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-14064  

Reference:         ESB-2017.2224

Original Bulletin:

Revision History:  September 18 2017: Corrected product name.
                   September 15 2017: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

CVE-2017-14064: Heap exposure vulnerability in generating JSON

Posted by usa on 14 Sep 2017

There is a heap exposure vulnerability in JSON bundled by Ruby. This 
vulnerability has been assgined the CVE identifier CVE-2017-14064.


The generate method of JSON module optionally accepts an instance of 
JSON::Ext::Generator::State class. If a malcious instance is passed, the 
result may include contents of heap.

All users running an affected release should either upgrade or use one of the
workarounds immediately.

Affected Versions

Ruby 2.2 series: 2.2.7 and earlier

Ruby 2.3 series: 2.3.4 and earlier

Ruby 2.4 series: 2.4.1 and earlier

prior to trunk revision 58323


The JSON library is also distributed as a gem. If you cant upgrade Ruby 
itself, install JSON gem newer than version 2.0.4.


Thanks to ahmadsherif for reporting this issue.


Originally published at 2017-09-14 12:00:00 (UTC)

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email:
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.


« Back to bulletins