CVE-2025-5878: ESAPI esapi-java-legacy - SQL Injection
- Cve: CVE-2025-5878
- Name: ESAPI esapi-java-legacy - SQL Injection
- 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.
- Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data disclosure or modification.
- Remediation: Upgrade to version 2.7.0.0 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: sql_injection
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.00498
- Epss percentile: 0.43536
- Assignee: [email protected]
- Published at: 2025-06-29T12:15:23Z
- Age in days: 513
- Modified at: 2026-06-17T09:48:56Z
- Public exploits total: 1
- References total: 10
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-5878
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/fantasy-fql/ESAPI-SQLinjection-CVE-2025-5878-Exploit | poc-in-github | 2026-06-08 |
References
Same in every row:
- Source: nvd
- Tags:
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ESAPI/esapi-java-legacy | commit, fix, releases | yes | /v1/repositories/ESAPI/esapi-java-legacy |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-08
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts