CVE-2025-5878 ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
A vulnerability was found in ESAPI esapi-java-legacy and classified as problematic. This issue affects the interface Encoder.encodeForSQL of the SQL Injection Defense. An attack leads to an improper neutralization of special elements. The attack may be initiated remotely and an exploit has been disclosed to the public. The project was contacted early about this issue and handled it with an exceptional level of professionalism. Upgrading to version 2.7.0.0 is able to address this issue. Commit ID f75ac2c2647a81d2cfbdc9c899f8719c240ed512 is disabling the feature by default and any attempt to use it will trigger a warning. And commit ID e2322914304d9b1c52523ff24be495b7832f6a56 is updating the misleading Java class documentation to warn about the risks.
Upgrade path
7 packages: 2 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libowasp-esapi-java(Debian 12) | = 2.4.0.0-2; = 2.4.0.0-2.1; All versions | No fix listed | No fix yet |
| debian/libowasp-esapi-java(Debian 13) | = 2.4.0.0-2.1; All versions | No fix listed | No fix yet |
| ubuntu/libowasp-esapi-java(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libowasp-esapi-java(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/libowasp-esapi-java(Ubuntu 22.04) | < 2.2.3.1-1ubuntu0.1~esm1 | 2.2.3.1-1ubuntu0.1~esm1 | Fixed |
| ubuntu/libowasp-esapi-java(Ubuntu 24.04) | < 2.4.0.0-2ubuntu0.1 | 2.4.0.0-2ubuntu0.1 | Fixed |
| esapi-java-legacy | = 2.0-rc10; = 2.0-rc11; = 2.0.1; = 2.0GA1 +24 more | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libowasp-esapi-java(Debian:12) | All versions | No fix listed |
| debian/libowasp-esapi-java(Debian:12) | = 2.4.0.0-2 | No fix listed |
| debian/libowasp-esapi-java(Debian:12) | = 2.4.0.0-2.1 | No fix listed |
| debian/libowasp-esapi-java(Debian:13) | All versions | No fix listed |
| debian/libowasp-esapi-java(Debian:13) | = 2.4.0.0-2.1 | No fix listed |
| esapi-java-legacy | = 2.0-rc10 | No fix listed |
| esapi-java-legacy | = 2.0-rc11 | No fix listed |
| esapi-java-legacy | = 2.0.1 | No fix listed |
| esapi-java-legacy | = 2.0GA1 | No fix listed |
| esapi-java-legacy | = 2.1.0 | No fix listed |
| esapi-java-legacy | = 2.1.0.1 | No fix listed |
| esapi-java-legacy | = 2.2.0.0 | No fix listed |
| esapi-java-legacy | = 2.2.0.0-RC1 | No fix listed |
| esapi-java-legacy | = 2.2.0.0-RC2 | No fix listed |
| esapi-java-legacy | = 2.2.0.0-RC3 | No fix listed |
| esapi-java-legacy | = 2.2.1.0 | No fix listed |
| esapi-java-legacy | = 2.2.1.0-RC1 | No fix listed |
| esapi-java-legacy | = 2.2.1.1 | No fix listed |
| esapi-java-legacy | = 2.2.2.0 | No fix listed |
| esapi-java-legacy | = 2.2.3.0 | No fix listed |
| esapi-java-legacy | = 2.2.3.1 | No fix listed |
| esapi-java-legacy | = 2.3.0.0 | No fix listed |
| esapi-java-legacy | = 2.4.0.0 | No fix listed |
| esapi-java-legacy | = 2.5.0.0 | No fix listed |
| esapi-java-legacy | = 2.5.1.0 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| esapi-java-legacy | = 2.5.2.0 | No fix listed |
| esapi-java-legacy | = 2.5.3.0 | No fix listed |
| esapi-java-legacy | = 2.5.3.1 | No fix listed |
| esapi-java-legacy | = 2.5.4.0 | No fix listed |
| esapi-java-legacy | = 2.5.5.0 | No fix listed |
| esapi-java-legacy | = 2.6.0.0 | No fix listed |
| esapi-java-legacy | = 2.6.1.0 | No fix listed |
| esapi-java-legacy | = 2.6.2.0 | No fix listed |
| ubuntu/libowasp-esapi-java(Ubuntu:22.04) | < 2.2.3.1-1ubuntu0.1~esm1 | 2.2.3.1-1ubuntu0.1~esm1 |
| ubuntu/libowasp-esapi-java(Ubuntu:24.04) | < 2.4.0.0-2ubuntu0.1 | 2.4.0.0-2ubuntu0.1 |
| ubuntu/libowasp-esapi-java(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libowasp-esapi-java(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-5878 vendor-advisory
- VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element technical-description vdb-entry
- VDB-314321 | CTI Indicators (IOB, IOC, IOA) permissions-required signature
- Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1 third-party-advisory
- Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate) third-party-advisory
- github.com related
- github.com related
- github.com patch
- github.com patch
- github.com patch
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-8181-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking