CVE-2026-86318 java-json-tools json-patch JsonMergePatchDeserializer.java JsonMergePatch.fromJson stack-based overflow

Medium 6.9 Published Updated

Remote attackers can trigger a stack-based buffer overflow in the json-patch library via crafted JSON, potentially leading to code execution or denial of service.

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-2026-86318?

CVE-2026-86318 is a medium-severity memory corruption vulnerability in java-json-tools json-patch, published on 7 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw has been found in java-json-tools json-patch up to 1.13. Affected is the function JsonMergePatch.fromJson of the file JsonMergePatchDeserializer.java. Executing a manipulation can lead to stack-based buffer overflow. The attack may be performed from remote. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Weakness: CWE-121, CWE-119

Which versions are affected by CVE-2026-86318?

How do I fix CVE-2026-86318?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-86318 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-86318 exists.

Sources

Also known as GHSA-8hxc-hjmg-w3c7.

Is CVE-2026-86318 in your software?

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

Check your SBOMs for free