CVE-2025-5878
published medium CVSS 4.0 · 6.9ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ESAPI | — | esapi-java-legacy2.0-rc10 (affected) · 2.0-rc11 (affected) · 2.0.1 (affected) · 2.0GA1 (affected) · 2.1.0 (affected) · 2.1.0.1 (affected) · 2.2.0.0 (affected) · 2.2.0.0-RC1 (affected) · 2.2.0.0-RC2 (affected) · 2.2.0.0-RC3 (affected) · 2.2.1.0 (affected) · 2.2.1.0-RC1 (affected) · 2.2.1.1 (affected) · 2.2.2.0 (affected) · 2.2.3.0 (affected) · 2.2.3.1 (affected) · 2.3.0.0 (affected) · 2.4.0.0 (affected) · 2.5.0.0 (affected) · 2.5.1.0 (affected) · 2.5.2.0 (affected) · 2.5.3.0 (affected) · 2.5.3.1 (affected) · 2.5.4.0 (affected) · 2.5.5.0 (affected) · 2.6.0.0 (affected) · 2.6.1.0 (affected) · 2.6.2.0 (affected) · 2.7.0.0 (unaffected) | Version-specific | Not stated | VulDB |
| Debian | bullseye | libowasp-esapi-java | Advisory build | 2.4.0.0-0+deb11u1 | DLA-4246-1 |
| Ubuntu | bionic | libowasp-esapi-java | Advisory build | 2.1.0-3ubuntu0.18.04.1~esm1 | USN-8181-1 |
| Ubuntu | focal | libowasp-esapi-java | Advisory build | 2.1.0-3ubuntu0.20.04.1~esm1 | USN-8181-1 |
| Ubuntu | jammy | libowasp-esapi-java | Advisory build | 2.2.3.1-1ubuntu0.1~esm1 | USN-8181-1 |
| Ubuntu | noble | libowasp-esapi-java | Advisory build | 2.4.0.0-2ubuntu0.1 | USN-8181-1 |
| Ubuntu | xenial | libowasp-esapi-java | Advisory build | 2.1.0-2ubuntu0.1~esm1 | USN-8181-1 |
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.
Eine problematische Schwachstelle wurde in ESAPI esapi-java-legacy gefunden. Es geht hierbei um die Funktion Encoder.encodeForSQL der Komponente SQL Injection Defense. Durch das Manipulieren mit unbekannten Daten kann eine improper neutralization of special elements-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 2.7.0.0 vermag dieses Problem zu lösen. Der Patch wird als f75ac2c2647a81d2cfbdc9c899f8719c240ed512 bezeichnet. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.3 | high | VulDB · cna | 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 | — |
| 3.0 | 7.3 | high | VulDB · cna | 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 | — |
| 2.0 | 7.5 | high | VulDB · cna | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ESAPI | esapi-java-legacy | 2.0-rc10 (affected)2.0-rc11 (affected)2.0.1 (affected)2.0GA1 (affected)2.1.0 (affected)2.1.0.1 (affected)2.2.0.0 (affected)2.2.0.0-RC1 (affected)2.2.0.0-RC2 (affected)2.2.0.0-RC3 (affected)2.2.1.0 (affected)2.2.1.0-RC1 (affected)2.2.1.1 (affected)2.2.2.0 (affected)2.2.3.0 (affected)2.2.3.1 (affected)2.3.0.0 (affected)2.4.0.0 (affected)2.5.0.0 (affected)2.5.1.0 (affected)2.5.2.0 (affected)2.5.3.0 (affected)2.5.3.1 (affected)2.5.4.0 (affected)2.5.5.0 (affected)2.6.0.0 (affected)2.6.1.0 (affected)2.6.2.0 (affected)2.7.0.0 (unaffected) | VulDB · cna |
Weaknesses
2- CWE-138 Improper Neutralization of Special Elements
- CWE-20 Improper Input Validation
References
10- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin13.pdf
- https://github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495b7832f6a56
- https://github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512
- https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.7.0.0
- https://github.com/uglory-gll/javasec/blob/main/ESAPI.md
- https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html
- VDB-314321 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/?ctiid.314321
- VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element https://vuldb.com/?id.314321
- Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1 https://vuldb.com/?submit.590149
- Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate) https://vuldb.com/?submit.590150
Provider assertions
3VulDB · cna
ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b3bc8d889f32682e377221499cf4f0f309b77131aee8fdfeda588c25611ac869
- Ingested
- 23 Sep 2026, 08:54:47 UTC
- Source record
- Official CVE record