Skip to content
Heist/ feed
Back to feed
HighFix available

libxstream-java — security advisory

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

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

Products
libxstream-java
Affected versions
Not specified
Fixed versions
1.4.18-1
CVEs
CVE-2021-39139
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:35 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-39139

core-osv · Original source

Published 23 Aug 2021, 18:15 UTC

XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.

osv:DEBIAN-CVE-2021-39139

libxstream-java

Fixed versions: 1.4.18-1

libxstream-java

Fixed versions: 1.4.18-1

libxstream-java

Fixed versions: 1.4.18-1

Complete source record
{
  "id": "238bc91c4de54c91b5727c1bfed0c1a6c0716c43e1bdf8ee92098e770dee0e1c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-39139",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-39139",
    "summary": "XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to load and execute arbitrary code from a remote host only by manipulating the processed input stream. A user is only affected if using the version out of the box with JDK 1.7u21 or below. However, this scenario can be adjusted easily to an external Xalan that works regardless of the version of the Java runtime. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. XStream 1.4.18 uses no longer a blacklist by default, since it cannot be secured for general purpose.",
    "evidence": "osv:DEBIAN-CVE-2021-39139",
    "products": [
      {
        "name": {
          "value": "libxstream-java",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.18-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libxstream-java",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.18-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libxstream-java",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.4.18-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-39139",
      "aliases": [
        "DEBIAN-CVE-2021-39139"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.18-1"
                }
              ]
            }
          ],
          "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-39139.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.18-1"
                }
              ]
            }
          ],
          "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-39139.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.4.18-1"
                }
              ]
            }
          ],
          "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-39139.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:27.227200721Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-39139"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-39139"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-39139",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421564,
  "published_at": "2021-08-23T18:15:10.54+00:00"
}