CVE-2025-52999: Jackson core Jackson-core Can Throw A StackoverflowError Vulnerability
HIGHCVE-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
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.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.15.0</version>
</dependency>
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
CVE-2025-52999 Affected Jackson core Versions
1 component(s)| 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?
Which Jackson core versions are affected?
What version fixes CVE-2025-52999?
Is jackson-core affected?
What CWE is associated with CVE-2025-52999?
How can I check Maven dependencies for CVE-2025-52999?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}