# CVE-2025-5878: libowasp-esapi-java: A vulnerability was found in ESAPI esapi-java-legacy and classified as problematic

CVE-2025-5878 is fixed in libowasp-esapi-java on 1 platform, first by libowasp-esapi-java 2.1.0-3ubuntu0.18.04.1~esm1, released June 29, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-5878
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0049
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 29, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libowasp-esapi-java Ubuntu 18.04.6 LTS (bionic) | 2.1.0-3ubuntu0.18.04.1~esm1 | [libowasp-esapi-java 2.1.0-3ubuntu0.18.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libowasp-esapi-java-2.1.0-3ubuntu0.18.04.1-esm1.md) | Jun 29, 2025 |
| Linux | libowasp-esapi-java Ubuntu 20.04 LTS (focal) | 2.1.0-3ubuntu0.20.04.1~esm1 | [libowasp-esapi-java 2.1.0-3ubuntu0.20.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libowasp-esapi-java-2.1.0-3ubuntu0.20.04.1-esm1.md) | Jun 29, 2025 |
| Linux | libowasp-esapi-java Ubuntu 22.04.1 LTS (jammy) | 2.2.3.1-1ubuntu0.1~esm1 | [libowasp-esapi-java 2.2.3.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libowasp-esapi-java-2.2.3.1-1ubuntu0.1-esm1.md) | Jun 29, 2025 |
| Linux | libowasp-esapi-java Ubuntu 24.04.5 LTS (noble) | 2.4.0.0-2ubuntu0.1 | [libowasp-esapi-java 2.4.0.0-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libowasp-esapi-java-2.4.0.0-2ubuntu0.1.md) | Jun 29, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
