CVE-2022-23459 Double free or Use after Free in Value class of Jsonxx

High 8.1 Published Updated

A double free or use-after-free vulnerability in the Jsonxx C++ library allows attackers to cause memory corruption, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-23459?

CVE-2022-23459 is a high-severity use after free vulnerability in hjiang Jsonxx, published on 19 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jsonxx or Json++ is a JSON parser, writer and reader written in C++. In affected versions of jsonxx use of the Value class may lead to memory corruption via a double free or via a use after free. The value class has a default assignment operator which may be used with pointer types which may point to alterable data where the pointer itself is not updated. This issue exists on the current commit of the jsonxx project. The project itself has been archived and updates are not expected. Users are advised to find a replacement.

Weakness: CWE-416, CWE-415

Which versions are affected by CVE-2022-23459?

It affects 1 product.

Products include Hjiang Json\+\+.

How do I fix CVE-2022-23459?

No fix has been published for CVE-2022-23459 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-23459 being exploited?

There is no known exploitation of CVE-2022-23459 in the wild and no public exploit code.

Sources

Also known as GHSA-8662-6hf9-cr47.

Is CVE-2022-23459 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free