CVE-2025-5878
ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
- State
- Published
- Severity
- 6.9 Medium
- Published
- Jun 29, 2025
- Updated
- Nov 3, 2025
- Reserved
- Jun 8, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 7.3 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 3.0 | 7.3 High | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 7.5 High | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
esapi-java-legacyESAPI |
|
References
- VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special elementvdb-entrytechnical-description
- VDB-314321 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1third-party-advisory
- Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate)third-party-advisory
- https://github.com/uglory-gll/javasec/blob/main/ESAPI.mdrelated
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin13.pdfrelated
- https://github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512patch
- https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.7.0.0patch
- https://github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495b7832f6a56patch
- https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.