GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

OESA-2023-1929 (CVE-2022-40151)

Vulnerability from osv_openeuler – Published: 2023-12-15 11:06 – Updated: 2026-08-06 11:06 – Source website
VLAI
Summary
xstream security update
Details

XStream is a simple library to serialize objects to XML and back again. A high level facade is supplied that simplifies common use cases. Custom objects can be serialized without need for specifying mappings. Speed and low memory footprint are a crucial part of the design, making it suitable for large object graphs or systems with high message throughput. No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and more compact than native Java serialization. XStream serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor. Duplicate references encountered in the object-model will be maintained. Supports circular references. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML). Strategies can be registered allowing customization of how particular types are represented as XML. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.

Security Fix(es):

Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.(CVE-2022-40151)

XStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.(CVE-2022-41966)


{
  "affected": [
    {
      "ecosystem_specific": {
        "noarch": [
          "xstream-hibernate-1.4.20-1.oe1.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe1.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe1.noarch.rpm",
          "xstream-parent-1.4.20-1.oe1.noarch.rpm",
          "xstream-1.4.20-1.oe1.noarch.rpm"
        ],
        "src": [
          "xstream-1.4.20-1.oe1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP1",
        "name": "xstream",
        "purl": "pkg:rpm/openEuler/xstream\u0026distro=openEuler-20.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.20-1.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "xstream-parent-1.4.20-1.oe1.noarch.rpm",
          "xstream-hibernate-1.4.20-1.oe1.noarch.rpm",
          "xstream-1.4.20-1.oe1.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe1.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe1.noarch.rpm"
        ],
        "src": [
          "xstream-1.4.20-1.oe1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP3",
        "name": "xstream",
        "purl": "pkg:rpm/openEuler/xstream\u0026distro=openEuler-20.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.20-1.oe1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "xstream-parent-1.4.20-1.oe2203.noarch.rpm",
          "xstream-hibernate-1.4.20-1.oe2203.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe2203.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe2203.noarch.rpm",
          "xstream-1.4.20-1.oe2203.noarch.rpm",
          "xstream-hibernate-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-parent-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-parent-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-hibernate-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-1.4.20-1.oe2203sp2.noarch.rpm"
        ],
        "src": [
          "xstream-1.4.20-1.oe2203.src.rpm",
          "xstream-1.4.20-1.oe2203sp1.src.rpm",
          "xstream-1.4.20-1.oe2203sp2.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS",
        "name": "xstream",
        "purl": "pkg:rpm/openEuler/xstream\u0026distro=openEuler-22.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.20-1.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "xstream-hibernate-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-benchmark-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-parent-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe2203sp1.noarch.rpm",
          "xstream-1.4.20-1.oe2203sp1.noarch.rpm"
        ],
        "src": [
          "xstream-1.4.20-1.oe2203sp1.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP1",
        "name": "xstream",
        "purl": "pkg:rpm/openEuler/xstream\u0026distro=openEuler-22.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.20-1.oe2203sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "noarch": [
          "xstream-benchmark-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-parent-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-hibernate-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-javadoc-1.4.20-1.oe2203sp2.noarch.rpm",
          "xstream-1.4.20-1.oe2203sp2.noarch.rpm"
        ],
        "src": [
          "xstream-1.4.20-1.oe2203sp2.src.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP2",
        "name": "xstream",
        "purl": "pkg:rpm/openEuler/xstream\u0026distro=openEuler-22.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.4.20-1.oe2203sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "XStream is a simple library to serialize objects to XML and back again. A high level facade is supplied that simplifies common use cases. Custom objects can be serialized without need for specifying mappings. Speed and low memory footprint are a crucial part of the design, making it suitable for large object graphs or systems with high message throughput. No information is duplicated that can be obtained via reflection. This results in XML that is easier to read for humans and more compact than native Java serialization. XStream serializes internal fields, including private and final. Supports non-public and inner classes. Classes are not required to have default constructor. Duplicate references encountered in the object-model will be maintained. Supports circular references. By implementing an interface, XStream can serialize directly to/from any tree structure (not just XML). Strategies can be registered allowing customization of how particular types are represented as XML. When an exception occurs due to malformed XML, detailed diagnostics are provided to help isolate and fix the problem.\r\n\r\nSecurity Fix(es):\r\n\r\nThose using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.(CVE-2022-40151)\r\n\r\nXStream serializes Java objects to XML and back again. Versions prior to 1.4.20 may allow a remote attacker to terminate the application with a stack overflow error, resulting in a denial of service only via manipulation the processed input stream. The attack uses the hash code implementation for collections and maps to force recursive hash calculation causing a stack overflow. This issue is patched in version 1.4.20 which handles the stack overflow and raises an InputManipulationException instead. A potential workaround for users who only use HashMap or HashSet and whose XML refers these only as default map or set, is to change the default implementation of java.util.Map and java.util per the code example in the referenced advisory. However, this implies that your application does not care about the implementation of the map and all elements are comparable.(CVE-2022-41966)",
  "id": "OESA-2023-1929",
  "modified": "2026-08-06T11:06:22Z",
  "published": "2023-12-15T11:06:22Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1929"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-40151"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41966"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "xstream security update",
  "upstream": [
    "CVE-2022-40151",
    "CVE-2022-41966"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…