CVE-2023-3894: Denial of Service in jackson-dataformats-text

Summary

08/08/2023
Yes i
High
8.6

CVE-2023-3894: Denial of service in jackson-dataformats-text. Affects com.fasterxml.jackson.dataformat:jackson-dataformats-text versions < 2.15.0. Fixed in 2.15.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The jackson-dataformats-text package is a part of the Maven ecosystem and is used for parsing TOML data. It provides functionality to convert TOML data into Java objects. However, this package is vulnerable to a Denial of Service (DOS) attack. If the parser is running on user-supplied input, an attacker can provide malicious content that causes the parser to crash due to a stack overflow. This vulnerability can be exploited to launch a DOS attack, disrupting the availability of the application.

Vulnerability Detail

The vulnerability in jackson-dataformats-text arises from a lack of input validation. When the parser encounters specially crafted TOML data, it fails to handle the input correctly, leading to a stack overflow and subsequent crash. This vulnerability allows an attacker to send malicious TOML data to the application, causing it to become unresponsive and potentially impacting the entire system. The severity of this vulnerability is considered moderate with a CVSS score of 5.8.

How To Fix

Minimum fixed version

2.15.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading the package is not immediately feasible, a temporary workaround is to implement input validation and sanitization on the user-supplied TOML data. By carefully validating and filtering the input, the risk of encountering malicious content can be mitigated. Here is an example of how to sanitize TOML data using a custom function:

public String sanitizeTOML(String input) {
  // Implement input validation and sanitization logic here
  // Return the sanitized TOML data
}

Conclusion

In conclusion, the jackson-dataformats-text package is vulnerable to a Denial of Service (DOS) attack due to a lack of input validation. Upgrading to version 2.15.0 or higher is recommended to fix this vulnerability. If immediate upgrade is not possible, implementing input validation and sanitization can serve as a temporary workaround. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.fasterxml.jackson.dataformat:jackson-dataformats-text →

Share this vulnerability

FAQ

This vulnerability allows an attacker to launch a Denial of Service (DOS) attack by crashing the jackson-dataformats-text parser. This can lead to application unresponsiveness and potential system-wide impact.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, upgrading the jackson-dataformats-text package to version 2.15.0 or higher will fix this vulnerability. It is recommended to update to the latest version to ensure the security of your application.

If upgrading the package is not immediately feasible, you can implement input validation and sanitization on the user-supplied TOML data. This can help mitigate the risk of encountering malicious content and reduce the impact of the vulnerability.

The severity of this vulnerability is considered moderate with a CVSS score of 5.8. While it can lead to a Denial of Service (DOS) attack, it does not pose a high risk of data compromise or remote code execution.

How To Fix

Minimum fixed version

2.15.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback