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.
Published: 2026-09-07
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw resides in the JsonMergePatch.fromJson function of the json-patch library (up to version 1.13). A crafted JSON merge patch payload causes a stack-based buffer overflow in JsonMergePatchDeserializer.java. This overflow can lead to control‑flow hijacking or memory corruption, enabling an attacker to execute arbitrary code or crash the application. The vulnerability is classed as a buffer overflow (CWE‑119) and stack buffer overflow (CWE‑121).

Affected Systems

The affected product is java-json-tools’ json-patch library, versions up to and including 1.13. No other vendors or products are listed, and the CPE specification cites this library specifically.

Risk and Exploitability

The CVSS score of 6.9 indicates significant severity, and the exploit has already been published, suggesting real‑world use. The EPSS score is not provided, but the existence of a public exploit and the ability to attack remotely point to a non‑negligible risk of actual exploitation. Because the library is open source and likely used by many projects that process external JSON data, organizations that employ it are at risk of remote code execution if the flaw remains unpatched.

Generated by OpenCVE AI on September 7, 2026 at 15:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check the json‑patch project’s releases for a patched version (≥1.14) and upgrade if available.
  • If no patch exists, avoid using json‑patch to parse untrusted JSON data; instead, either replace the library with a vetted alternative or sanitize the payload to block malicious structures before invoking json‑patch.
  • Add network or application‑level controls to restrict access to components that invoke json‑patch, ensuring that only authenticated internal requests can trigger the function.

Generated by OpenCVE AI on September 7, 2026 at 15:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 07 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title java-json-tools json-patch JsonMergePatchDeserializer.java JsonMergePatch.fromJson stack-based overflow
First Time appeared Java-json-tools
Java-json-tools json-patch
Weaknesses CWE-119
CWE-121
CPEs cpe:2.3:a:java-json-tools:json-patch:*:*:*:*:*:*:*:*
Vendors & Products Java-json-tools
Java-json-tools json-patch
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Java-json-tools Json-patch
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-07T14:30:14.737Z

Reserved: 2026-09-07T05:32:59.436Z

Link: CVE-2026-86318

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-07T15:17:34.040

Modified: 2026-09-07T15:17:34.040

Link: CVE-2026-86318

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T17:30:06Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-121

    Stack-based Buffer Overflow