libxstream-java — security advisory
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
- Products
- libxstream-java
- Affected versions
- Not specified
- Fixed versions
- 1.4.15-2
- CVEs
- CVE-2021-21351
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:32 UTC · Revision 1
Source evidence
XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.
osv:DEBIAN-CVE-2021-21351
libxstream-java
Fixed versions: 1.4.15-2
libxstream-java
Fixed versions: 1.4.15-2
libxstream-java
Fixed versions: 1.4.15-2
Complete source record
{
"id": "bf5c9cbaa827c77552ac39dafc987a5ff47465c78f3cd4e47189175c00f09926",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-21351",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-21351",
"summary": "XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.",
"evidence": "osv:DEBIAN-CVE-2021-21351",
"products": [
{
"name": {
"value": "libxstream-java",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.15-2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libxstream-java",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.15-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libxstream-java",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.4.15-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2021-21351",
"aliases": [
"DEBIAN-CVE-2021-21351"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.15-2"
}
]
}
],
"package": {
"name": "libxstream-java",
"purl": "pkg:deb/debian/libxstream-java?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21351.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.15-2"
}
]
}
],
"package": {
"name": "libxstream-java",
"purl": "pkg:deb/debian/libxstream-java?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21351.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.4.15-2"
}
]
}
],
"package": {
"name": "libxstream-java",
"purl": "pkg:deb/debian/libxstream-java?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-21351.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:24.901991603Z",
"provider": "osv",
"upstream": [
"CVE-2021-21351"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-21351"
]
},
"related_cves": [
{
"value": "CVE-2021-21351",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 421429,
"published_at": "2021-03-23T00:15:13.367+00:00"
}