CVEfocus › CVE database › CVE-2025-5878

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

CVSS 7.3 HighEPSS 0.9% (higher than 58% of CVEs)Published 2025-06-29Updated 2025-11-03Assigner: VulDB

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.

CWE-138CWE-20

What to do

Fixed builds are available from Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
8Fix pending
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libowasp-esapi-javaFix pendingUBUNTU-CVE-2025-5878
Ubuntu 26.04libowasp-esapi-javaFix pendingUBUNTU-CVE-2025-5878
Ubuntu 25.10libowasp-esapi-javaWill not fix
Stand-alone users should review any use of encodeForSQL, DB2Codec, MySQLCodec, or OracleCodec, as these are deprecated and the update does not fully mitigate…
UBUNTU-CVE-2025-5878
Ubuntu 24.04libowasp-esapi-javaFixed2.4.0.0-2ubuntu0.1UBUNTU-CVE-2025-5878
Ubuntu 22.04libowasp-esapi-javaFix pending2.2.3.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5878
Ubuntu 20.04libowasp-esapi-javaFix pending2.1.0-3ubuntu0.20.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5878
Ubuntu 18.04libowasp-esapi-javaFix pending2.1.0-3ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5878
Ubuntu 16.04libowasp-esapi-javaFix pending2.1.0-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5878
Debian 13libowasp-esapi-javaFix pendingDEBIAN-CVE-2025-5878
Debian 12libowasp-esapi-javaFix pendingDEBIAN-CVE-2025-5878

What the vendor says

As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.