ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element

Summary

CVECVE-2025-5878
StatePUBLISHED
AssignerVulDB
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-06-29 12:15:23 UTC
Updated2026-04-29 01:00:01 UTC
DescriptionA 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


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary5.5MEDIUMCVSS: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.0CNADECLARED6.9MEDIUMCVSS: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]Secondary7.3HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
3.1CNADECLARED7.3HIGHCVSS: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.0CNADECLARED7.3HIGHCVSS: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]Secondary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P
2.0CNADECLARED7.5AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

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

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

SourceTimeEvent
CNA2025-06-28T00:00:00.000ZAdvisory disclosed
CNA2025-06-28T02:00:00.000ZVulDB entry created
CNA2025-06-29T13:13:22.000ZVulDB entry last update

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report