CVE-2025-5878: esapi esapi-java-legacy Improper Input Validation
Vulnerability summary
CVE-2025-5878 is a high (CVSS 7.5) Improper Input Validation vulnerability in esapi esapi-java-legacy. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 41.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 29-06-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
10 scores · 4 sources · 4 versions- OSV · UbuntuEcosystem advisory · calculated6.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
- OSV · DebianEcosystem advisory · calculated6.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/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
- NVDNIST5.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/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:XDiffers
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- NVDNIST7.3HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- NVDNIST7.5HighAV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
+0.06 pp
From 0.44% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-138Improper Neutralization of Special ElementsThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as control elements or syntactic markers when they are sent to a downstream component.
Affected systems
Debian1 product
- libowasp-esapi-javaAll versions (No fix recorded)
Esapi1 product
- esapi-java-legacy2.0-rc10 | 2.0-rc11 | 2.0.1 | 2.0GA1 | 2.1.0 | 2.1.0.1 | 2.2.0.0 | 2.2.0.0-RC1 | 2.2.0.0-RC2 | 2.2.0.0-RC3 | 2.2.1.0 | 2.2.1.0-RC1 | 2.2.1.1 | 2.2.2.0 | 2.2.3.0 | 2.2.3.1 | 2.3.0.0 | 2.4.0.0 | 2.5.0.0 | 2.5.1.0 | 2.5.2.0 | 2.5.3.0 | 2.5.3.1 | 2.5.4.0 | 2.5.5.0 | 2.6.0.0 | 2.6.1.0 | 2.6.2.0
Ubuntu1 product
- libowasp-esapi-java< 2.1.0-2ubuntu0.1~esm1 | < 2.1.0-3ubuntu0.18.04.1~esm1 | < 2.1.0-3ubuntu0.20.04.1~esm1 | < 2.2.3.1-1ubuntu0.1~esm1 | < 2.4.0.0-2ubuntu0.1 | All versions (No fix recorded)
3 vendors · 3 products
References
14 links- vuldb.com?submit.590149Third Party Advisory
- vuldb.com?submit.590150Third Party Advisory