{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "last_affected": "5.3.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "original_tag": "5.3.1",
                "range": [
                  {
                    "fixed": "4827417fa82091915f490c8ef97c7692dcc9b1b8"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "range": [
                  {
                    "fixed": "9839ffd2ccc038d453e38b545750a5ed2d589dea"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "45885c0c8c0807bb9480886d60ca7042000a4c43"
            },
            {
              "fixed": "4827417fa82091915f490c8ef97c7692dcc9b1b8"
            },
            {
              "fixed": "9839ffd2ccc038d453e38b545750a5ed2d589dea"
            }
          ],
          "repo": "https://github.com/apache/datasketches-cpp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "apache",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123338.json"
  },
  "details": "Out-of-bounds Write vulnerability in Apache DataSketches C++. An\n  application that deserializes a REQ sketch from an untrusted source\n  can have heap memory corrupted by a crafted sketch, because the\n  serialized compactor headers were not validated.\n\n  This issue affects Apache DataSketches C++: from 3.0.0 through 5.3.0.\n\n  Users are recommended to upgrade to version 5.3.1, which fixes the\n  issue.",
  "id": "CVE-2026-123338",
  "modified": "2026-11-15T02:30:33.258588971Z",
  "published": "2026-11-13T10:32:43.404Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/11/13/2"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123338.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/apache/datasketches-cpp/releases/tag/5.3.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://lists.apache.org/thread/wjsso4wl0f0nczwh7gd74kc5wckn1635"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123338"
    },
    {
      "type": "FIX",
      "url": "https://github.com/apache/datasketches-cpp/commit/9839ffd2ccc038d453e38b545750a5ed2d589dea"
    },
    {
      "type": "FIX",
      "url": "https://github.com/apache/datasketches-cpp/pull/568"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "Apache DataSketches C++: Out-of-bounds write in REQ sketch deserialization allows memory corruption via a crafted sketch"
}