Skip to content
Heist/ feed
Back to feed
HighFix available

libxstream-java — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-21343

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in the deletion of a file on the local host. 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-21343
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:20 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-21343

core-osv · Original source

Published 23 Mar 2021, 00:15 UTC

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in the deletion of a file on the local host. 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-21343

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": "dfb0f70c269ead65163e4aff7a8b631906792aa79d127122e4e82c78e1ff6787",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-21343",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-21343",
    "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 where the processed stream at unmarshalling time contains type information to recreate the formerly written objects. XStream creates therefore new instances based on these type information. An attacker can manipulate the processed input stream and replace or inject objects, that result in the deletion of a file on the local host. 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-21343",
    "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": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-21343",
      "aliases": [
        "DEBIAN-CVE-2021-21343"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "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-21343.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-21343.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-21343.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:11.521476603Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-21343"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-21343"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-21343",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 420751,
  "published_at": "2021-03-23T00:15:12.6+00:00"
}