We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-5878

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



Description

EN DE

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.

Reserved 2025-06-08 | Published 2025-06-29 | Updated 2025-06-29 | Assigner VulDB


MEDIUM: 6.9CVSS: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
HIGH: 7.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
HIGH: 7.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
7.5AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C

Problem types

Improper Neutralization of Special Elements

Improper Input Validation

Product status

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

Timeline

2025-06-28:Advisory disclosed
2025-06-28:VulDB entry created
2025-06-29:VulDB entry last update

Credits

Longlong Gong finder

uglory (VulDB User) reporter

References

vuldb.com/?id.314321 (VDB-314321 | ESAPI esapi-java-legacy SQL Injection Defense Encoder.encodeForSQL special element) vdb-entry technical-description

vuldb.com/?ctiid.314321 (VDB-314321 | CTI Indicators (IOB, IOC, IOA)) signature permissions-required

vuldb.com/?submit.590149 (Submit #590149 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass1) third-party-advisory

vuldb.com/?submit.590150 (Submit #590150 | ESAPI esapi-java-legacy 2.6.2.0 SQL injection filtering bypass2 (Duplicate)) third-party-advisory

github.com/uglory-gll/javasec/blob/main/ESAPI.md related

github.com/...op/documentation/ESAPI-security-bulletin13.pdf related

github.com/...ommit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512 patch

github.com/...I/esapi-java-legacy/releases/tag/esapi-2.7.0.0 patch

github.com/...ommit/e2322914304d9b1c52523ff24be495b7832f6a56 patch

cve.org (CVE-2025-5878)

nvd.nist.gov (CVE-2025-5878)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-5878

Support options

Helpdesk Chat, Email, Knowledgebase