# CVE-2025-52999: jackson-core Has Potential for StackoverflowError if user parses an input file that contains very deeply nested data

> Attackers can cause a denial of service via stack overflow by providing deeply nested JSON input to applications using jackson-core.

- **Severity:** High 8.7 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 25 Jun 2025
- **Updated:** 25 Jun 2025
- **Also known as:** ALSA-2025:12280, ALSA-2025:14126, CLEANSTART-2026-FL97476, CLEANSTART-2026-FY33285, CLEANSTART-2026-SP08423, CLEANSTART-2026-UR77351, CLSA-2025-1764235184, CLSA-2025-1764771605, CLSA-2025-1764772111, CLSA-2025-1764847045, CLSA-2026-1777941827, CLSA-2026-1788351524, CLSA-2026-1793087591, CLSA-2026-1793087965, CLSA-2026-1793196465, CLSA-2026-1793196739, CLSA-2026-1793196973, DEBIAN-CVE-2025-52999, ECHO-1a63-3a9a-3457, GHSA-h46c-h94j-95f3, MINI-3xg4-r43w-gr2h, MINI-5rf6-g4hx-qwp2, MINI-67jv-x3cp-rpp4, MINI-6m8c-7q94-465h, MINI-74jh-j8jm-pw7p, MINI-fhp2-389q-2cxm, MINI-gjhf-hc7m-pmx9, MINI-jg9j-rgmx-mrj8, MINI-r487-49q9-x8c2, MINI-r86m-8j38-mqq8, MINI-wh9g-7gg2-mww9, MINI-xw32-7768-j22g, RHSA-2025:11473, RHSA-2025:12280, RHSA-2025:12281, RHSA-2025:12282, RHSA-2025:12283, RHSA-2025:14116, RHSA-2025:14117, RHSA-2025:14118, RHSA-2025:14126, RHSA-2025:14127, RLSA-2025:12280, RLSA-2025:14126, ROOT-APP-MAVEN-CVE-2025-52999, UBUNTU-CVE-2025-52999

## What is CVE-2025-52999?

CVE-2025-52999 is a high-severity denial of service vulnerability in FasterXML jackson-core, published on 25 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

jackson-core contains core low-level incremental ("streaming") parser and generator abstractions used by Jackson Data Processor. In versions prior to 2.15.0, if a user parses an input file and it has deeply nested data, Jackson could end up throwing a StackoverflowError if the depth is particularly large. jackson-core 2.15.0 contains a configurable limit for how deep Jackson will traverse in an input document, defaulting to an allowable depth of 1000. jackson-core will throw a StreamConstraintsException if the limit is reached. jackson-databind also benefits from this change because it uses jackson-core to parse JSON inputs. As a workaround, users should avoid parsing input files from untrusted sources.

Weakness: CWE-121 (Stack-based Buffer Overflow)

## Which versions are affected by CVE-2025-52999?

2 open source packages ship an affected version, including com.fasterxml.jackson.core:jackson-core.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `com.fasterxml.jackson.core:jackson-core` | Maven | All versions | 2.15.0 |
| `com.fasterxml.jackson.core:jackson-core` | Maven | All versions | 2.15.0 |
| `apache-commons-collections` | AlmaLinux:8 | All versions | 3.2.2-10.module_el8.5.0+2577+9e95fe00 |
| `apache-commons-lang` | AlmaLinux:8 | All versions | 2.6-21.module_el8.5.0+2577+9e95fe00 |
| `apache-commons-net` | AlmaLinux:8 | All versions | 3.6-3.module_el8.5.0+2577+9e95fe00 |
| `bea-stax-api` | AlmaLinux:8 | All versions | 1.2.0-16.module_el8.5.0+2577+9e95fe00 |
| `fasterxml-oss-parent` | AlmaLinux:8 | All versions | 69-1.module_el8.10.0+4034+20822525 |
| `glassfish-fastinfoset` | AlmaLinux:8 | All versions | 1.2.13-9.module_el8.5.0+2577+9e95fe00 |
| `glassfish-jaxb-api` | AlmaLinux:8 | All versions | 2.2.12-8.module_el8.5.0+2577+9e95fe00 |
| `glassfish-jaxb-core` | AlmaLinux:8 | All versions | 2.2.11-12.module_el8.10.0+3791+e0637953 |
| `glassfish-jaxb-runtime` | AlmaLinux:8 | All versions | 2.2.11-12.module_el8.10.0+3791+e0637953 |
| `glassfish-jaxb-txw2` | AlmaLinux:8 | All versions | 2.2.11-12.module_el8.10.0+3791+e0637953 |
| `jackson-annotations` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-bom` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-core` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-databind` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-jaxrs-json-provider` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-jaxrs-providers` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-module-jaxb-annotations` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-modules-base` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jackson-parent` | AlmaLinux:8 | All versions | 2.19.1-1.module_el8.10.0+4034+20822525 |
| `jakarta-commons-httpclient` | AlmaLinux:8 | All versions | 1:3.1-28.module_el8.5.0+2577+9e95fe00 |
| `javassist` | AlmaLinux:8 | All versions | 3.18.1-8.module_el8.5.0+2577+9e95fe00 |
| `javassist-javadoc` | AlmaLinux:8 | All versions | 3.18.1-8.module_el8.5.0+2577+9e95fe00 |
| `pki-servlet-engine` | AlmaLinux:8 | All versions | 1:9.0.62-1.module_el8.10.0+3791+e0637953 |
| `relaxngDatatype` | AlmaLinux:8 | All versions | 2011.1-7.module_el8.5.0+2577+9e95fe00 |
| `slf4j` | AlmaLinux:8 | All versions | 1.7.25-4.module_el8.5.0+2577+9e95fe00 |
| `slf4j-jdk14` | AlmaLinux:8 | All versions | 1.7.25-4.module_el8.5.0+2577+9e95fe00 |
| `stax-ex` | AlmaLinux:8 | All versions | 1.7.7-8.module_el8.5.0+2577+9e95fe00 |
| `velocity` | AlmaLinux:8 | All versions | 1.7-24.module_el8.5.0+2577+9e95fe00 |
| `xalan-j2` | AlmaLinux:8 | All versions | 2.7.1-38.module_el8.5.0+2577+9e95fe00 |
| `xerces-j2` | AlmaLinux:8 | All versions | 2.11.0-34.module_el8.5.0+2577+9e95fe00 |
| `xml-commons-apis` | AlmaLinux:8 | All versions | 1.4.01-25.module_el8.5.0+2577+9e95fe00 |
| `xml-commons-resolver` | AlmaLinux:8 | All versions | 1.2-26.module_el8.5.0+2577+9e95fe00 |
| `xmlstreambuffer` | AlmaLinux:8 | All versions | 1.5.4-8.module_el8.5.0+2577+9e95fe00 |
| `xsom` | AlmaLinux:8 | All versions | 0-19.20110809svn.module_el8.5.0+2577+9e95fe00 |
| `pki-jackson-annotations` | AlmaLinux:9 | All versions | 2.19.1-1.el9_6 |
| `pki-jackson-core` | AlmaLinux:9 | All versions | 2.19.1-1.el9_6 |
| `pki-jackson-databind` | AlmaLinux:9 | All versions | 2.19.1-1.el9_6 |
| `pki-jackson-jaxrs-json-provider` | AlmaLinux:9 | All versions | 2.19.1-1.el9_6 |

## How do I fix CVE-2025-52999?

Upgrade com.fasterxml.jackson.core:jackson-core to 2.15.0 or later.

## Is CVE-2025-52999 being exploited?

There is no known exploitation of CVE-2025-52999 in the wild and no public exploit code.

Public exploit code:

- This repository provides a comprehensive security remediation of denial-of-service and allocation of resources without limits or throttling security vulnerabilities reported in CVE-2025-52999, GHSA-2m67-wjpj-xhg9 and sonatype-2022-6438 while maintaining full compatibility with jackson‑core 2.13.5. (github_poc): https://github.com/sassoftware/jackson

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-52999 and fix it if it is affected.

What it is: CVE-2025-52999 is a high-severity denial of service vulnerability in FasterXML jackson-core, published on 25 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-52999 in the wild and no public exploit code.

Affected packages and fixed versions:
- com.fasterxml.jackson.core:jackson-core (Maven): affected all versions; fixed in 2.15.0
- com.fasterxml.jackson.core:jackson-core (Maven): affected all versions; fixed in 2.15.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-52999/ (Markdown: https://insights.sbomify.com/CVE-2025-52999/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-52999
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-52999
- OSV: https://osv.dev/vulnerability/CVE-2025-52999

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-52999/
Summaries are generated and may contain mistakes; the official description above is the record.
