CVE-2025-52999: Jackson core Jackson-core Can Throw A StackoverflowError Vulnerability

HIGH
Advisory Identifier: GHSA-h46c-h94j-95f3
CWE-121
Published
Advisory Summary

CVE-2025-52999 is a HIGH jackson-core can throw a stackoverflowerror vulnerability (CWE-121: Stack-based Buffer Overflow) affecting Jackson core libraries in the Maven ecosystem. The issue involves jackson-core can throw a stackoverflowerror when processing deeply nested data. Remediation is available by upgrading affected packages to version 2.15.0.

CVE-2025-52999 at a Glance

CVE Identifier CVE-2025-52999
GHSA Identifier GHSA-h46c-h94j-95f3
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-121: Stack-based Buffer Overflow
Affected Product Jackson core
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-52999

To remediate this vulnerability, upgrade all affected Jackson core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.fasterxml.jackson.core:jackson-core fixed: 2.15.0
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.15.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.fasterxml.jackson.core

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-52999, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.fasterxml.jackson.core

Analyze the terminal output to locate any version of Jackson core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.15.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.fasterxml.jackson.core command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In Jackson core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact With older versions of jackson-core, if you parse an input file and it has deeply nested data, Jackson could end up throwing a StackoverflowError if the depth is particularly large. ### Patches 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. Change is in https://github.com/FasterXML/jackson-core/pull/943. 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. ### Workarounds Users should avoid parsing input files from untrusted sources.

CVE-2025-52999 Affected Jackson core Versions

1 component(s)
Fixed Versions:
2.15.0
Product / Package Ecosystem Affected Versions Fixed Version
com.fasterxml.jackson.core:jackson-core
Maven
< 2.15.0
2.15.0

References

Frequently Asked Questions

What is CVE-2025-52999?
CVE-2025-52999 is a security vulnerability in Jackson core involving jackson-core can throw a StackoverflowError when processing deeply nested data under CWE-121: Stack-based Buffer Overflow.
Which Jackson core versions are affected?
Affected versions include releases prior to 2.15.0 across affected packages: com.fasterxml.jackson.core:jackson-core.
What version fixes CVE-2025-52999?
Upgrading to 2.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jackson-core affected?
Yes, com.fasterxml.jackson.core:jackson-core is affected in releases prior to 2.15.0. Upgrade your dependency to 2.15.0 or later.
What CWE is associated with CVE-2025-52999?
CVE-2025-52999 is classified under CWE-121: Stack-based Buffer Overflow (A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).).
How can I check Maven dependencies for CVE-2025-52999?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.fasterxml.jackson.core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h46c-h94j-95f3",
  "modified" : "2025-06-27T15:22:22Z",
  "published" : "2025-06-27T15:22:22Z",
  "aliases" : [ "CVE-2025-52999" ],
  "summary" : "jackson-core can throw a StackoverflowError when processing deeply nested data",
  "details" : "### Impact\nWith older versions  of jackson-core, if you parse an input file and it has deeply nested data, Jackson could end up throwing a StackoverflowError if the depth is particularly large.\n\n### Patches\njackson-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. Change is in https://github.com/FasterXML/jackson-core/pull/943. jackson-core will throw a StreamConstraintsException if the limit is reached.\njackson-databind also benefits from this change because it uses jackson-core to parse JSON inputs.\n\n### Workarounds\nUsers should avoid parsing input files from untrusted sources.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.core:jackson-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-core/security/advisories/GHSA-h46c-h94j-95f3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-52999"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-core/pull/943"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FasterXML/jackson-core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-121" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-27T15:22:22Z",
    "nvd_published_at" : "2025-06-25T17:15:39Z"
  }
}