{"id":"CVE-2026-103635","state":"PUBLISHED","title":"Apache DataSketches: datasketches-cpp: Out-of-bounds read in compact Theta sketch deserialization allows denial of service via a crafted sketch","description":"Out-of-bounds read in the compact Theta sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp).\n\ncompact_theta_sketch::deserialize() and wrapped_compact_theta_sketch::wrap() read header fields before checking that the input was long enough. For the compressed format, the size check could be defeated by a 32-bit overflow, and two header fields that control decoding were not validated; this also affected deserialization from a stream. A crafted or truncated sketch could cause a read past the end of the input. In the compressed case the over-read can be large, and the bytes read can become part of the deserialized sketch. This can cause a crash (denial of service) and could expose adjacent memory contents.\n\nThis issue affects Apache DataSketches C++: from 3.1.0 before 5.3.0. Only applications that deserialize Theta sketches from untrusted sources are affected.\n\nUsers are recommended to upgrade to version 5.3.0, which fixes this issue.","publishedAt":"2026-10-10T10:23:48.598Z","updatedAt":"2026-10-16T15:28:02.277Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache DataSketches"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache DataSketches","packageName":"apache/datasketches-cpp","packageURL":"pkg:github/apache/datasketches-cpp","defaultStatus":"unaffected","versions":[{"version":"3.1.0","status":"affected","lessThanOrEqual":"5.2.0","versionType":"semver"}],"collectionURL":"https://github.com"}],"references":["https://lists.apache.org/thread/15b86y9jstco39kzppjw7l5kvhjvwqvv","https://github.com/apache/datasketches-cpp/releases/tag/5.3.0","http://www.openwall.com/lists/oss-security/2026/10/10/5"],"weaknesses":["CWE-125","CWE-190"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/103xxx/CVE-2026-103635.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-103635","state":"PUBLISHED","datePublished":"2026-10-10T10:23:48.598Z","dateUpdated":"2026-10-16T15:28:02.277Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2026-09-30T23:50:17.136Z"},"containers":{"cna":{"title":"Apache DataSketches: datasketches-cpp: Out-of-bounds read in compact Theta sketch deserialization allows denial of service via a crafted sketch","descriptions":[{"lang":"en","value":"Out-of-bounds read in the compact Theta sketch deserialization of Apache DataSketches C++ (repo: datasketches-cpp).\n\ncompact_theta_sketch::deserialize() and wrapped_compact_theta_sketch::wrap() read header fields before checking that the input was long enough. For the compressed format, the size check could be defeated by a 32-bit overflow, and two header fields that control decoding were not validated; this also affected deserialization from a stream. A crafted or truncated sketch could cause a read past the end of the input. In the compressed case the over-read can be large, and the bytes read can become part of the deserialized sketch. This can cause a crash (denial of service) and could expose adjacent memory contents.\n\nThis issue affects Apache DataSketches C++: from 3.1.0 before 5.3.0. Only applications that deserialize Theta sketches from untrusted sources are affected.\n\nUsers are recommended to upgrade to version 5.3.0, which fixes this issue."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache DataSketches","packageName":"apache/datasketches-cpp","packageURL":"pkg:github/apache/datasketches-cpp","defaultStatus":"unaffected","versions":[{"version":"3.1.0","status":"affected","lessThanOrEqual":"5.2.0","versionType":"semver"}],"collectionURL":"https://github.com"}],"references":[{"url":"https://lists.apache.org/thread/15b86y9jstco39kzppjw7l5kvhjvwqvv","tags":["vendor-advisory"]},{"url":"https://github.com/apache/datasketches-cpp/releases/tag/5.3.0","tags":["release-notes"]}],"metrics":[{"other":{"type":"Textual description of severity","content":{"text":"low"}},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds read","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-190","description":"CWE-190 Integer overflow or wraparound","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2026-10-10T10:23:48.598Z"},"source":{"discovery":"EXTERNAL"},"credits":[{"lang":"en","value":"He Huang","type":"finder"},{"lang":"en","value":"NexusSan","type":"tool"}],"x_generator":{"engine":"Vulnogram 1.0.3"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/10/10/5"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-10-10T12:10:54.553Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-10-16T15:27:43.270802Z","id":"CVE-2026-103635","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T15:28:02.277Z"}}]}}}