Apache DataSketches C++ Flaw Lets Crafted REQ Sketches Corrupt Heap Memory
Apache has disclosed CVE-2026-123338, an out-of-bounds write flaw in REQ sketch deserialization in Apache DataSketches C++, rated moderate. According to the report, it is fixed in version 5.3.1.
ApacheWebVulnerabilitiesKey points
- Apache DataSketches C++ versions 3.0.0 through 5.3.0 are affected by CVE-2026-123338.
- The flaw is an out-of-bounds write during REQ sketch deserialization that can corrupt heap memory.
- Exposure is tied to deserializing REQ sketches from untrusted sources.
- The fix is in version 5.3.1, which the project recommends.
According to a post by Lee Rhodes on the oss-security list, dated November 12, Apache DataSketches C++ contains an out-of-bounds write flaw, tracked as CVE-2026-123338 and rated moderate. The problem lies in how the library deserializes REQ sketches. An application that loads such a sketch from an untrusted source can have its heap memory corrupted by a maliciously built sketch, because the serialized compactor headers are not checked. The affected range is versions 3.0.0 through 5.3.0. The National Vulnerability Database entry for the CVE says the project recommends upgrading to version 5.3.1, which fixes the issue. The sources do not describe a workaround for systems that cannot upgrade right away, and they do not mention any observed exploitation. For the full advisory, see the original oss-security posting.
What to do
- Upgrade Apache DataSketches C++ to version 5.3.1.
- Identify applications that deserialize REQ sketches, and prioritise any that accept input from untrusted sources.
- Check the original oss-security posting and NVD entry for further guidance, as the sources give no workaround.
Original report
“CVE-2026-123338: Apache DataSketches C++: Out-of-bounds write in REQ sketch deserialization allows memory corruption via a crafted sketch”
Posted by Lee Rhodes on Nov 12 Severity: moderate Affected versions: - Apache DataSketches C++ 3.0.0 through 5.3.0 Description: Out-of-bounds Write vulnerability in Apache DataSketches C++. An application that deserializes a REQ sketch from an untrusted source can have heap memory corrupted by a crafted sketch, because the serialized compactor headers were not validated. This issue affects Apache…
Vulnerabilities mentioned
- Retired Apache Submarine Has Critical API Authorization Bypass (CVE-2026-129817) With No Fix Planned
- JTL-Shop Backup Files Exposed via .htaccess Misconfiguration
- Contact form plugin for WordPress: unauthenticated arbitrary file upload via copyfiles (CVE-2026-115867)
- Apache Shiro ActiveDirectoryRealm Flaw Allows Login With Empty Username (CVE-2026-137686)
- CVE-2026-120353: Apache Airflow Standard provider, Apache Airflow CNCF Kubernetes provider, Apache Airflow Common SQL provider, Apache Airflow Common Ai provider: Code execution on the worker via Jinja in Dag run conf or task arguments passed to @task.bash and similar TaskFlow decorators