CVE-2025-5878
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 7.5
- CVSS vector
- 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
- EPSS probability
- 0.44%
- CWE
- CWE-138, CWE-20
- Published
- 2025-06-29
- Last modified
- 2026-03-13
Affected products
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
- ESAPI esapi-java-legacy
Weakness type
Related vulnerabilities
- CVE-2026-55841 — Graylog: Fortigate syslog message parser can be exploited to modify or delete fields from the original message
- CVE-2026-26129 — M365 Copilot Information Disclosure Vulnerability
- CVE-2026-32178 — .NET Spoofing Vulnerability
- CVE-2026-20009 — Cisco Secure Firewall Adaptive Security Appliance SSH Partial Private Key Authentication Bypass Vulnerability
- CVE-2025-48939 — tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript
- CVE-2024-51500 — Failure to check for packets from the broadcast address allows potential DDoS amplification attack in Meshtastic firmware
- CVE-2024-38133 — Windows Kernel Elevation of Privilege Vulnerability
- CVE-2023-42117 — Exim Improper Neutralization of Special Elements Remote Code Execution Vulnerability