Intel

AIKIDO-2024-10261

open-source-parsers.jsoncpp is vulnerable to Out-of-bounds Read

Out-of-bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 12, 2024

20

Low Risk

This Affects:

c++open-source-parsers.jsoncpp
0.7.0 - 1.9.5
Fixed in 1.9.6
Are you affected? Scan for Free

TL;DR

Affected versions of the open-source-parsers.jsoncpp package are vulnerable to an out-of-bounds read. The getLocationLineAndColumn function reads past the end of the provided buffer when generating an error message at the end of the stream, particularly if the final character is \r.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

open-source-parsers.jsoncpp is vulnerable to Out-of-bounds Read in versions 0.7.0 - 1.9.5.

How to fix this

Upgrade the open-source-parsers.jsoncpp library to the patch version.