Skip to main content

json-patch EUVDEUVD-2026-72464

| CVE-2026-86318 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-09-07 VulDB GHSA-8hxc-hjmg-w3c7
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with deeply-nested JSON body
  2. Delivery
    Application invokes JsonMergePatch.fromJson
  3. Exploit
    Deserializer recurses without depth limit
  4. Execution
    JVM thread stack exhausted
  5. Persist
    StackOverflowError crashes request thread
  6. Impact
    Service degradation or denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerable application must expose an endpoint that accepts attacker-controlled JSON input and passes it to JsonMergePatch.fromJson for deserialization. No authentication is required (PR:N). The attacker only needs network access to the endpoint and the ability to submit a POST body or JSON parameter containing deeply-nested JSON objects. The PoC is public. Exploitation is limited by: (1) impact is availability-only - no code execution or data disclosure; (2) Java StackOverflowError is typically thread-scoped and may be caught by the application framework, limiting blast radius to individual request threads rather than the entire JVM; (3) the application must be using the json-patch library's JSON Merge Patch functionality specifically - applications using only RFC 6902 JSON Patch operations may not invoke the vulnerable code path.

Impact

The CVSS 4.0 base score of 6.9 with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N reflects a network-reachable, unauthenticated denial-of-service with LOW availability impact at the vulnerable system. The E:P modifier confirms a publicly available proof-of-concept. Despite the PR:N/UI:N attack surface, the VA:L rating is the critical limiting factor - in Java, stack exhaustion causes a recoverable StackOverflowError rather than process-level crash, and the application may recover or restart automatically. Real-world prioritization should therefore be moderate: applications exposing JSON Merge Patch deserialization to anonymous internet traffic face genuine DoS risk, but the absence of C or I impact eliminates RCE and data-exfiltration scenarios entirely. There is a material conflict in the source data: the description states the project had not responded to the disclosure at reporting time, yet the intelligence metadata lists the patch as available - this discrepancy means the patch availability claim should not be trusted without independent verification against the upstream repository. The EPSS score is not provided; given the library's niche footprint and availability-only impact, widespread automated exploitation is unlikely but targeted DoS against exposed Java services is plausible.

Exploit ScenarioDerived

An unauthenticated attacker sends a single HTTP request containing a JSON Merge Patch document with hundreds of levels of nested JSON objects to any application endpoint that processes it with JsonMergePatch.fromJson. The recursive deserializer exhausts the JVM thread stack, throwing a StackOverflowError that crashes the request-handling thread and returns an error to the caller. If repeated rapidly or if the application does not isolate thread pools, this can degrade or halt service availability. The PoC is publicly documented in GitHub issue #168.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 07, 2026

Stack exhaustion in java-json-tools json-patch ≤1.13 enables remote unauthenticated denial of service by submitting a crafted deeply-nested JSON Merge Patch document to any application endpoint that invokes JsonMergePatch.fromJson. The vulnerability triggers an uncontrolled recursive deserialization path in JsonMergePatchDeserializer.java, causing JVM thread stack exhaustion. The CVSS 4.0 vector (VC:N/VI:N/VA:L) confirms the impact is limited to availability; no confidentiality or integrity impact has been identified. A public exploit/proof-of-concept exists in the GitHub issue tracker, and no patched release version has been independently confirmed.

RemediationAI

Check the upstream repository at https://github.com/java-json-tools/json-patch/ for any tagged release or merged pull request addressing this issue, as no specific patched version number is confirmed in current data. If no fix is available, the primary compensating control is to validate JSON input depth before invoking JsonMergePatch.fromJson - limit nesting depth at the API gateway or application layer (e.g., using Jackson's MapperFeature.ALLOW_COERCION_OF_SCALARS or a custom depth counter in a pre-processing step) so deeply nested payloads are rejected with HTTP 400 before reaching the vulnerable code path. Rate-limiting endpoints that accept JSON Patch or Merge Patch documents reduces the attacker's ability to sustain a DoS. If the application does not require JSON Merge Patch functionality from external callers, removing or restricting access to those endpoints eliminates exposure entirely. Monitor the GitHub issue #168 (https://github.com/java-json-tools/json-patch/issues/168) for maintainer response and patch availability.

Affected VersionsENISA

JSON-Patch 1.9
JSON-Patch 1.7
JSON-Patch 1.13
JSON-Patch 1.1
JSON-Patch 1.12
JSON-Patch 1.0
JSON-Patch 1.5
JSON-Patch 1.4
JSON-Patch 1.3
JSON-Patch 1.2
JSON-Patch 1.11
JSON-Patch 1.6
JSON-Patch 1.10
JSON-Patch 1.8

Affected Packages

euvd json_patch no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

java-json-tools/json-patch is an open-source Java library implementing RFC 6902 (JSON Patch) and RFC 7396 (JSON Merge Patch). The affected component is JsonMergePatchDeserializer.java, specifically the JsonMergePatch.fromJson deserialization entry point. CWE-121 (Stack-based Buffer Overflow) in a pure Java context most likely manifests as uncontrolled recursion - deeply nested JSON input causes the deserializer to recurse without depth-bounding, exhausting the JVM thread's stack memory and throwing a StackOverflowError. Unlike native code, this does not permit arbitrary code execution via classic stack smashing because the JVM enforces memory safety, but it does allow an attacker to crash any thread servicing the malicious request. Affected product per CPE: cpe:2.3:a:java-json-tools:json-patch:*:*:*:*:*:*:*:* (all versions through 1.13).

Know when Json Patch gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Network-reachable with no auth or user interaction; Java stack exhaustion yields only low availability impact with no C or I consequence.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 07, 2026 - 15:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Sep 07, 2026 - 14:30 cve.org
MEDIUM 6.9

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Low
niche Java JSON-patching library, not a core dependency
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy