Vulnerabilities in pkg:maven/com.fasterxml.jackson.dataformat/jackson-dataformat-toml

PACKAGE
Advisory Identifier: GHSA-rg2c-cfxv-qp6f
Advisory Summary

CVE-2023-3894 is a HIGH (CVSS 8.6) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Jackson dataformat toml libraries in the Maven ecosystem. The issue involves denial of service in jackson-dataformat-toml. Remediation is available by upgrading affected packages to version 2.15.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.fasterxml.jackson.dataformat/jackson-dataformat-toml

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.fasterxml.jackson.dataformat/jackson-dataformat-toml. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rg2c-cfxv-qp6f CVE-2023-3894 HIGH Denial of service in jackson-dataformat-toml

CVE-2023-3894 at a Glance

CVE Identifier CVE-2023-3894
GHSA Identifier GHSA-rg2c-cfxv-qp6f
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Jackson dataformat toml
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-3894

To remediate this vulnerability, upgrade all affected Jackson dataformat toml 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.dataformat:jackson-dataformat-toml fixed: 2.15.0
<dependency>
    <groupId>com.fasterxml.jackson.dataformat</groupId>
    <artifactId>jackson-dataformat-toml</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.dataformat

How to Check if You Are Affected

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

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

Analyze the terminal output to locate any version of Jackson dataformat toml 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.dataformat 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Jackson dataformat toml, 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

Those using jackson-dataformats-text to parse TOML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.

CVE-2023-3894 Affected Jackson dataformat toml Versions

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

References

Frequently Asked Questions

What is CVE-2023-3894?
CVE-2023-3894 is a security vulnerability in Jackson dataformat toml involving Denial of service in jackson-dataformat-toml under CWE-400: Uncontrolled Resource Consumption.
Which Jackson dataformat toml versions are affected?
Affected versions include releases prior to 2.15.0 across affected packages: com.fasterxml.jackson.dataformat:jackson-dataformat-toml.
What version fixes CVE-2023-3894?
Upgrading to 2.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jackson-dataformat-toml affected?
Yes, com.fasterxml.jackson.dataformat:jackson-dataformat-toml is affected in releases prior to 2.15.0. Upgrade your dependency to 2.15.0 or later.
What is the CVSS score of CVE-2023-3894?
CVE-2023-3894 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2023-3894?
CVE-2023-3894 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2023-3894?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.fasterxml.jackson.dataformat'. 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-rg2c-cfxv-qp6f",
  "modified" : "2025-10-10T17:37:56Z",
  "published" : "2023-08-08T18:30:37Z",
  "aliases" : [ "CVE-2023-3894" ],
  "summary" : "Denial of service in jackson-dataformat-toml",
  "details" : "Those using jackson-dataformats-text to parse TOML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.fasterxml.jackson.dataformat:jackson-dataformat-toml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-3894"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-dataformats-text/pull/398"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-dataformats-text/commit/5dd5f740aedcf37adad7ffece460e75e54abb0ed"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50083"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FasterXML/jackson-dataformats-text"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FasterXML/jackson-dataformats-text/blob/2.16/release-notes/VERSION-2.x"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-400", "CWE-787" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-09T12:52:21Z",
    "nvd_published_at" : "2023-08-08T18:15:24Z"
  }
}