libowasp-esapi-java — security advisory
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.
- Products
- libowasp-esapi-java
- Affected versions
- 2.1.0-2, 2.1.0-3, 2.1.0-3.1, 2.2.3.1-1, 2.4.0.0-2, 2.4.0.0-2.1
- Fixed versions
- 2.1.0-2ubuntu0.1~esm1, 2.1.0-3ubuntu0.18.04.1~esm1, 2.1.0-3ubuntu0.20.04.1~esm1, 2.2.3.1-1ubuntu0.1~esm1, 2.4.0.0-2ubuntu0.1
- CVEs
- CVE-2025-5878
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:39 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-5878
libowasp-esapi-java
Fixed versions: 2.1.0-2ubuntu0.1~esm1
libowasp-esapi-java
Fixed versions: 2.1.0-3ubuntu0.18.04.1~esm1
libowasp-esapi-java
Fixed versions: 2.1.0-3ubuntu0.20.04.1~esm1
libowasp-esapi-java
Fixed versions: 2.2.3.1-1ubuntu0.1~esm1
libowasp-esapi-java
Fixed versions: 2.4.0.0-2ubuntu0.1
libowasp-esapi-java
Fixed versions: Not specified
libowasp-esapi-java
Fixed versions: Not specified
libowasp-esapi-java
Fixed versions: Not specified
Complete source record
{
"id": "2651a9795664b4413648320a537771d873c5c6256a123c085b882107dc3b1539",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-5878",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-5878",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2025-5878",
"products": [
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0-2ubuntu0.1~esm1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0-3ubuntu0.18.04.1~esm1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0-3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0-3ubuntu0.20.04.1~esm1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0-3",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.2.3.1-1ubuntu0.1~esm1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0-3.1",
"evidence": "/affected/3/versions"
},
{
"value": "2.2.3.1-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.4.0.0-2ubuntu0.1",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "2.4.0.0-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.0.0-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.4.0.0-2.1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.0.0-2.1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libowasp-esapi-java",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.4.0.0-2.1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2025-5878",
"aliases": [
"UBUNTU-CVE-2025-5878"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0-2ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.1.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.1.0-2ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0-3ubuntu0.18.04.1~esm1"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"2.1.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.1.0-3ubuntu0.18.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0-3ubuntu0.20.04.1~esm1"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"2.1.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.1.0-3ubuntu0.20.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.3.1-1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.1.0-3.1",
"2.2.3.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.2.3.1-1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.0.0-2ubuntu0.1"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.4.0.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.4.0.0-2ubuntu0.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.4.0.0-2",
"2.4.0.0-2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.4.0.0-2.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.4.0.0-2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.4.0.0-2.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libowasp-esapi-java",
"purl": "pkg:deb/ubuntu/libowasp-esapi-java?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.4.0.0-2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5878.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libowasp-esapi-java",
"binary_version": "2.4.0.0-2.1"
}
]
}
}
],
"modified": "2026-10-17T12:55:54.910595921Z",
"provider": "osv",
"upstream": [
"CVE-2025-5878"
],
"references": [
"https://ubuntu.com/security/CVE-2025-5878",
"https://www.cve.org/CVERecord?id=CVE-2025-5878",
"https://github.com/ESAPI/esapi-java-legacy/commit/f75ac2c2647a81d2cfbdc9c899f8719c240ed512",
"https://github.com/ESAPI/esapi-java-legacy/commit/e2322914304d9b1c52523ff24be495b7832f6a56",
"https://ubuntu.com/security/notices/USN-8181-1"
]
},
"related_cves": [
{
"value": "CVE-2025-5878",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354281,
"published_at": "2025-06-29T12:15:00+00:00"
}