CVE-2025-5878
ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
- Published
- Updated
- Reserved
- Assigned by
- VulDB
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
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| VulDBCNA (assigner) | 4.0 | Medium6.9 | 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 |
| VulDBCNA (assigner) | 3.1 | High7.3 | 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 |
| VulDBCNA (assigner) | 3.0 | High7.3 | 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 |
| VulDBCNA (assigner) | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C |
| NVDNVD · Deferred | 4.0 | Medium5.5 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
- EPSS (exploitation in 30 days)
- 0.49% · top 57% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.9.
Weakness
Affected products
- affected 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
- unaffected 2.7.0.0
References (10)
- VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element (opens in a new tab)vdb-entrytechnical-description
- VDB-314321 | CTI Indicators (IOB, IOC, IOA) (opens in a new tab)signaturepermissions-required
- Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1 (opens in a new tab)third-party-advisory
- Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate) (opens in a new tab)third-party-advisory
- https://github.com/uglory-gll/javasec/blob/main/ESAPI.md (opens in a new tab)related
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin13.pdf (opens in a new tab)related
- https://github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512 (opens in a new tab)patch
- https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.7.0.0 (opens in a new tab)patch
- https://github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495b7832f6a56 (opens in a new tab)patch
- https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-5878)Record last updated .