ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element
Summary
| CVE | CVE-2025-5878 |
|---|---|
| State | PUBLISHED |
| Assigner | VulDB |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-06-29 12:15:23 UTC |
| Updated | 2026-04-29 01:00:01 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 5.5 MEDIUM from [email protected]
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
Problem Types: CWE-20 | CWE-138 | CWE-138 Improper Neutralization of Special Elements | CWE-20 Improper Input Validation
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 5.5 | 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/C... |
| 4.0 | CNA | DECLARED | 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 |
| 3.1 | [email protected] | Secondary | 7.3 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| 3.1 | CNA | DECLARED | 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 |
| 3.0 | CNA | DECLARED | 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 |
| 2.0 | [email protected] | Secondary | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P | |
| 2.0 | CNA | DECLARED | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
NonePrivileges Required
NoneUser Interaction
NoneConfidentiality
LowIntegrity
LowAvailability
LowSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS: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
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | ESAPI | Esapi-java-legacy | affected 2.0-rc10 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.0-rc11 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.0.1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.0GA1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.1.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.1.0.1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.0.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.0.0-RC1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.0.0-RC2 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.0.0-RC3 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.1.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.1.0-RC1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.1.1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.2.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.3.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.2.3.1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.3.0.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.4.0.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.0.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.1.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.2.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.3.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.3.1 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.4.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.5.5.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.6.0.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.6.1.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | affected 2.6.2.0 | Not specified |
| CNA | ESAPI | Esapi-java-legacy | unaffected 2.7.0.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| vuldb.com | [email protected] | vuldb.com | |
| lists.debian.org/debian-lts-announce/2025/07/msg00010.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.7.0.0 | [email protected] | github.com | |
| github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f871... | [email protected] | github.com | |
| vuldb.com | [email protected] | vuldb.com | |
| vuldb.com | [email protected] | vuldb.com | |
| github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495... | [email protected] | github.com | |
| github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-secu... | [email protected] | github.com | |
| github.com/uglory-gll/javasec/blob/main/ESAPI.md | [email protected] | github.com | |
| vuldb.com | [email protected] | vuldb.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Longlong Gong (en)
CNA: uglory (VulDB User) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2025-06-28T00:00:00.000Z | Advisory disclosed |
| CNA | 2025-06-28T02:00:00.000Z | VulDB entry created |
| CNA | 2025-06-29T13:13:22.000Z | VulDB entry last update |
There are currently no legacy QID mappings associated with this CVE.