Security Exception in Maven Model Package: Vulnerability in StringUTF16 Handling

maven-model Updated 02 Oct 2025

Summary

16/06/2025
LOW
No i
Low
Not published

OSV-2025-467: Security exception in java.base/java.lang.StringUTF16.newBytesFor. Affects maven-model versions >= a27873629f94174bbcaa345c81abb204e4357ce5. No fix is published. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Maven Model package is a core component of the Apache Maven project, which is a build automation tool used primarily for Java projects. It provides a model for managing project configurations, dependencies, and build processes. This package is crucial for developers who rely on Maven for project management and builds. However, it has been identified to have a security vulnerability that could lead to unexpected behavior or crashes.

Vulnerability Detail

The vulnerability arises from a security exception in the java.base/java.lang.StringUTF16.newBytesFor method, which is part of the Java standard library. This issue was reported through OSS-Fuzz and can lead to crashes when certain string operations are performed. The crash state indicates that the vulnerability is triggered during the inflation of string builders, which may allow an attacker to exploit the application by causing it to crash or behave unexpectedly. The severity of this vulnerability is classified as low, but it is essential to address it to maintain application stability and security.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can avoid using the specific string operations that trigger the vulnerability until the package is updated. This may involve reviewing the code for instances where the StringUTF16.newBytesFor method is called and implementing alternative string handling methods.

Conclusion

In summary, the security exception vulnerability in the Maven Model package poses a risk to applications relying on this component for string handling. It is crucial to update to the latest patched version to ensure application stability and security. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for maven-model →

Share this vulnerability

FAQ

The vulnerability is a security exception that occurs during string operations in the Maven Model package, potentially leading to application crashes.

You can use the Vulert platform to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the Vulert playground.

Yes, a patched version of the Maven Model package is available. It is recommended to update to the latest version to mitigate the risk.

If an immediate update is not possible, consider implementing workarounds by avoiding the vulnerable string operations until you can apply the patch.

Detailed information about this vulnerability can be found in the OSS-Fuzz report and the official Apache Maven documentation.

Related vulnerabilities

Recent vulnerabilities recorded for maven-model.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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