CVE-2026-86318 Details
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.
A stack-based buffer overflow vulnerability has been identified in java-json-tools json-patch versions through 1.13. The issue arises in the JsonMergePatchDeserializer, specifically within the JsonMergePatch.fromJson() function. The vulnerability allows for remote exploitation by sending a deeply nested JSON object, which causes uncontrolled recursion and ultimately leads to a StackOverflowError, disrupting the processing thread.
To address this vulnerability, it is recommended to add a depth counter parameter to the JsonMergePatchDeserializer's deserialize() method, limiting the recursion depth to a maximum of 1000 levels.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 7, 2026CISA-ADP
Assessed Sep 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/java-json-tools/json-patch/ | [email protected] | ProductSource CodeVendor |
| https://github.com/java-json-tools/json-patch/issues/168 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://vuldb.com/cve/CVE-2026-86318 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/908319 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/399509 | [email protected] | BundlePermission Required |
| https://vuldb.com/vuln/399509/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| java-json-tools json-patch | <= 1.13 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 8, 2026 | CVE Modified | CISA-ADP |
| Sep 7, 2026 | New CVE Received | [email protected] |
Volerion