cve.bz

CVE-2025-5878 esapi esapi-java-legacy: Improper Input Validation

5.5 mediumEPSS 0.5%

Medium (5.5) in esapi esapi-java-legacy. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.5 medium
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

CVSS 3.1

7.3 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-06-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-138 Improper Neutralization of Special Elements
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-5878 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5878?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5878?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-5878 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
esapi-java-legacy2.0-rc10
esapi-java-legacy2.0-rc11
esapi-java-legacy2.0.1
esapi-java-legacy2.0GA1
esapi-java-legacy2.1.0
esapi-java-legacy2.1.0.1
esapi-java-legacy2.2.0.0
esapi-java-legacy2.2.0.0-RC1
esapi-java-legacy2.2.0.0-RC2
esapi-java-legacy2.2.0.0-RC3
esapi-java-legacy2.2.1.0
esapi-java-legacy2.2.1.0-RC1
esapi-java-legacy2.2.1.1
esapi-java-legacy2.2.2.0
esapi-java-legacy2.2.3.0
esapi-java-legacy2.2.3.1
esapi-java-legacy2.3.0.0
esapi-java-legacy2.4.0.0
esapi-java-legacy2.5.0.0
esapi-java-legacy2.5.1.0
esapi-java-legacy2.5.2.0
esapi-java-legacy2.5.3.0
esapi-java-legacy2.5.3.1
esapi-java-legacy2.5.4.0
esapi-java-legacy2.5.5.0
esapi-java-legacy2.6.0.0
esapi-java-legacy2.6.1.0
esapi-java-legacy2.6.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libowasp-esapi-java2.4.0.0-0+deb11u1DLA-4246-1
Debian12, 13libowasp-esapi-javano fix listedDEBIAN-CVE-2025-5878
Ubuntu24.04:LTSlibowasp-esapi-java2.4.0.0-2ubuntu0.1UBUNTU-CVE-2025-5878
Ubuntu25.10, 26.04:LTS, 26.10libowasp-esapi-javano fix listedUBUNTU-CVE-2025-5878
UbuntuPro:16.04:LTSlibowasp-esapi-java2.1.0-2ubuntu0.1~esm1UBUNTU-CVE-2025-5878
UbuntuPro:18.04:LTSlibowasp-esapi-java2.1.0-3ubuntu0.18.04.1~esm1UBUNTU-CVE-2025-5878
UbuntuPro:20.04:LTSlibowasp-esapi-java2.1.0-3ubuntu0.20.04.1~esm1UBUNTU-CVE-2025-5878
UbuntuPro:22.04:LTSlibowasp-esapi-java2.2.3.1-1ubuntu0.1~esm1UBUNTU-CVE-2025-5878

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-34 HTTP Response Splitting Likelihood: Medium · Severity: High
  • CAPEC-105 HTTP Request Splitting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON