CVE-2025-5878ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
- 6.9MediumCVSS base score
- 0.49%Exploitation in 30 daysEPSS · top 57% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By VulDB
- 21 days later
· 21 days later
Published
- 4 months later
· 4 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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 (15 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.
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
References10
- 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)
- EUVD EUVD-2025-28693 (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://cveledger.app/cve/CVE-2025-5878)Record last updated .