Skip to content
Heist/ feed
Back to feed
Medium

Stack Buffer Overflow in xstream

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-40151
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:30 UTC · Revision 1

Source evidence

Stack Buffer Overflow in xstream

core-osv · Original source

Published 16 Sept 2022, 10:00 UTC

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.

osv:CVE-2022-40151
Complete source record
{
  "id": "937676873c6b86e0229461a6c003da90bcc91e119c45908630002907e3869576",
  "url": "https://osv.dev/vulnerability/CVE-2022-40151",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Stack Buffer Overflow in xstream",
    "summary": "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.",
    "evidence": "osv:CVE-2022-40151",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-40151",
      "aliases": [
        "CVE-2022-40151",
        "GHSA-f8cc-g7j8-xxpm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/x-stream/xstream",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f124f777fb8831430f930816a9e18813788c69cb"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.4.19"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "SplitRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:xstream:xstream:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.4.20"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "XSTREAM_1_4_19",
            "XSTREAM_1_4_18",
            "XSTREAM_1_4_17",
            "XSTREAM_1_4_16",
            "XSTREAM_1_4_15",
            "XSTREAM_1_4_14",
            "XSTREAM_1_4_13",
            "XSTREAM_1_4_12",
            "XSTREAM_1_4_11_1",
            "XSTREAM_1_4_11",
            "XSTREAM_1_4_10",
            "XSTREAM_1_4_9",
            "XSTREAM_1_4_5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-40151.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.169599088Z",
      "provider": "osv",
      "references": [
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47367",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40151.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-40151",
        "https://github.com/x-stream/xstream/issues/304"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-121"
        ],
        "cna_assigner": "Google",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40151.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-40151",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517377,
  "published_at": "2022-09-16T10:00:20.584+00:00"
}