Vulnerabilities

CVE-2025-5878

Medium 5.5 CVSS 4.0

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.

Description as published by the source, in English.

Key facts

Published
2025-06-29
Last modified
2026-06-17
Assigned by
cna@vuldb.com
CVSS vector
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/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:
Scored by
cna@vuldb.com
Probability of exploitation
0.4 % higher than 33 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
ESAPI esapi-java-legacy 2.0-rc10 Affected
ESAPI esapi-java-legacy 2.0-rc11 Affected
ESAPI esapi-java-legacy 2.0.1 Affected
ESAPI esapi-java-legacy 2.0GA1 Affected
ESAPI esapi-java-legacy 2.1.0 Affected
ESAPI esapi-java-legacy 2.1.0.1 Affected
ESAPI esapi-java-legacy 2.2.0.0 Affected
ESAPI esapi-java-legacy 2.2.0.0-RC1 Affected
ESAPI esapi-java-legacy 2.2.0.0-RC2 Affected
ESAPI esapi-java-legacy 2.2.0.0-RC3 Affected
ESAPI esapi-java-legacy 2.2.1.0 Affected
ESAPI esapi-java-legacy 2.2.1.0-RC1 Affected
ESAPI esapi-java-legacy 2.2.1.1 Affected
ESAPI esapi-java-legacy 2.2.2.0 Affected
ESAPI esapi-java-legacy 2.2.3.0 Affected
ESAPI esapi-java-legacy 2.2.3.1 Affected
ESAPI esapi-java-legacy 2.3.0.0 Affected
ESAPI esapi-java-legacy 2.4.0.0 Affected
ESAPI esapi-java-legacy 2.5.0.0 Affected
ESAPI esapi-java-legacy 2.5.1.0 Affected
ESAPI esapi-java-legacy 2.5.2.0 Affected
ESAPI esapi-java-legacy 2.5.3.0 Affected
ESAPI esapi-java-legacy 2.5.3.1 Affected
ESAPI esapi-java-legacy 2.5.4.0 Affected
ESAPI esapi-java-legacy 2.5.5.0 Affected
ESAPI esapi-java-legacy 2.6.0.0 Affected
ESAPI esapi-java-legacy 2.6.1.0 Affected
ESAPI esapi-java-legacy 2.6.2.0 Affected
ESAPI esapi-java-legacy 2.7.0.0 Not affected

Weakness type

  • CWE-138: Improper Neutralization of Special Elements

    The 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 do…

  • CWE-20: Improper Input Validation

    The 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.

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1027: Obfuscated Files or Information stealth
  • T1036.001: Invalid Code Signature stealth
  • T1539: Steal Web Session Cookie credential-access
  • T1553.002: Code Signing defense-impairment
  • T1574.006: Dynamic Linker Hijacking stealth, execution
  • T1574.007: Path Interception by PATH Environment Variable stealth, execution

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities