CVE-2025-5878Public exploitNetwork attack vector

SQL injection via backslash quote escaping bypass

Published Jun 29, 2025 · Updated Nov 3, 2025

SQL injection in Encoder.encodeForSQL in OWASP ESAPI for Java (Legacy) 2.0-rc10 through 2.6.2.0 allows remote attackers to execute SQL. The OracleCodec and MySQLCodec ANSI-mode encoders double single quotes without neutralizing a preceding backslash, letting crafted input escape the intended string literal. Reachability requires a consuming application to pass attacker-controlled data through encodeForSQL and concatenate the result into a database query; the demonstrated consequence includes execution of database time-delay functions.

CVSS severity7.3
High
EPSS probability0.44%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

SQL injection in Encoder.encodeForSQL in OWASP ESAPI for Java (Legacy) 2.0-rc10 through 2.6.2.0 allows remote attackers to execute SQL. The OracleCodec and MySQLCodec ANSI-mode encoders double single quotes without neutralizing a preceding backslash, letting crafted input escape the intended string literal. Reachability requires a consuming application to pass attacker-controlled data through encodeForSQL and concatenate the result into a database query; the demonstrated consequence includes execution of database time-delay functions.

The record

CVE
CVE-2025-5878
Published
Jun 29, 2025
Updated
Nov 3, 2025
Vendor
OWASP ESAPI
Product
ESAPI for Java (Legacy)
Classifications
CWE-20, T1190
Attack vector
network
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jun 29, 2025CVE publishedPublication date reported by the CVE source.
  2. Nov 3, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=2.0.1
  2. Affected versionversion=2.0GA1
  3. Affected versionversion=2.0-rc10
  4. Affected versionversion=2.0-rc11
  5. Affected versionversion=2.1.0
  6. Affected versionversion=2.1.0.1
  7. Affected versionversion=2.2.0.0
  8. Affected versionversion=2.2.0.0-RC1
  9. Affected versionversion=2.2.0.0-RC2
  10. Affected versionversion=2.2.0.0-RC3
  11. Affected versionversion=2.2.1.0
  12. Affected versionversion=2.2.1.0-RC1
  13. Affected versionversion=2.2.1.1
  14. Affected versionversion=2.2.2.0
  15. Affected versionversion=2.2.3.0
  16. Affected versionversion=2.2.3.1
  17. Affected versionversion=2.3.0.0
  18. Affected versionversion=2.4.0.0
  19. Affected versionversion=2.5.0.0
  20. Affected versionversion=2.5.1.0
  21. Affected versionversion=2.5.2.0
  22. Affected versionversion=2.5.3.0
  23. Affected versionversion=2.5.3.1
  24. Affected versionversion=2.5.4.0
  25. Affected versionversion=2.5.5.0
  26. Affected versionversion=2.6.0.0
  27. Affected versionversion=2.6.1.0
  28. Affected versionversion=2.6.2.0

What conditions does exploitation require?

Attack vectornetwork
Required privilegesunauthenticated

What is affected?

OWASP ESAPI · ESAPI for Java (Legacy)version=2.0.1; version=2.0GA1; version=2.0-rc10; version=2.0-rc11; version=2.1.0; version=2.1.0.1; version=2.2.0.0; version=2.2.0.0-RC1; version=2.2.0.0-RC2; version=2.2.0.0-RC3; version=2.2.1.0; version=2.2.1.0-RC1; version=2.2.1.1; version=2.2.2.0; version=2.2.3.0; version=2.2.3.1; version=2.3.0.0; version=2.4.0.0; version=2.5.0.0; version=2.5.1.0; version=2.5.2.0; version=2.5.3.0; version=2.5.3.1; version=2.5.4.0; version=2.5.5.0; version=2.6.0.0; version=2.6.1.0; version=2.6.2.0

Published CVSS scores

7.3UbuntuCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectornetwork
Privilegesunauthenticated
Known exploitationUnconfirmed
Public exploitPublished

Weakness, pattern, technique

CWE-20Improper Input Validation
T1190Exploit Public-Facing Application

Public exploit references

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo