SQL Injection Defense Vulnerability in libowasp-esapi-java: Improper Neutralization of Special Elements

libowasp-esapi-java Updated 02 Oct 2025

Summary

29/06/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-5878: A vulnerability was found in ESAPI esapi-java-legacy and classified as problematic. Affects libowasp-esapi-java versions < 2.4.0.0-0+deb11u1. Fixed in 2.4.0.0-0+deb11u1. 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

libowasp-esapi-java is a Java library that provides a robust framework for security controls, including encoding and decoding functions to prevent various types of attacks, such as SQL injection. The library is widely used in applications that require secure data handling. However, a recent vulnerability has been identified in the Encoder.encodeForSQL interface, which could potentially expose applications to SQL injection attacks if not addressed.

Vulnerability Detail

A vulnerability was discovered in the ESAPI esapi-java-legacy library that affects the SQL Injection Defense mechanism. Specifically, the Encoder.encodeForSQL method does not properly neutralize special elements, allowing attackers to exploit this weakness remotely. This could lead to unauthorized access to sensitive data or manipulation of the database. The issue has been publicly disclosed, and the project has acknowledged it, demonstrating a commitment to security by addressing it promptly.

How To Fix

Minimum fixed version

2.4.0.0-0+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libowasp-esapi-java

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

Workaround

As a temporary workaround, developers can avoid using the Encoder.encodeForSQL method until the package is updated. Additionally, ensure that proper input validation and parameterized queries are implemented to mitigate the risk of SQL injection attacks.

Conclusion

The vulnerability in the libowasp-esapi-java package poses a significant risk due to improper handling of SQL injection defenses. It is crucial for developers to upgrade to the patched version to mitigate this risk and ensure the security of their applications.

See every vulnerability recorded for libowasp-esapi-java →

Share this vulnerability

FAQ

The vulnerability involves improper neutralization of special elements in the SQL Injection Defense mechanism, which can lead to SQL injection attacks.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability could allow attackers to gain unauthorized access to sensitive data or manipulate the database, leading to data breaches or loss.

Yes, upgrading to version 2.4.0.0-0+deb11u1 or later will address the vulnerability.

If an immediate update is not possible, avoid using the vulnerable method and implement additional security measures such as input validation and parameterized queries.

Related vulnerabilities

Recent vulnerabilities recorded for libowasp-esapi-java.

How To Fix

Minimum fixed version

2.4.0.0-0+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libowasp-esapi-java

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