VDB

CVE-2025-5878

CVE-2025-5878 PUBLISHED CVSS 6.9 MEDIUM

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

Reported by vuldb · Published June 29, 2025

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.

Risk scores

CVSS 4.0
6.9
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

Affected products

VendorProductVersions
ESAPIesapi-java-legacy2.0-rc10, 2.0-rc11, 2.0.1
ESAPIesapi-java-legacy2.0-rc10, 2.0-rc11, 2.0.1

Timeline

  • Jun 29, 2025 EPSS Score (30 in total, the first dated here)
  • Jun 29, 2025 CVE Published
  • Nov 3, 2025 CVE Updated
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Jun 2, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-5878
vulnetix vdb fixes CVE-2025-5878

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-5878/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›