New Zstandard Security Vulnerability CVE-2026-124851 Disclosed �
Zstandard versions 1.5.1 through 1.5.7 contain an information disclosure flaw where specially crafted compressed data causes the decompressor to leak the contents of an internal memory buffer into its output. An attacker could therefore obtain memory contents that should not appear in decompressed data.
Published on medium.com
Cybersecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Zstandard is a compression technology built for fast compression and decompression. It is used in software applications, development environments, data processing systems and infrastructure projects, so a weakness in the library can reach every application that depends on it. The vulnerability discussed here is tracked as CVE-2026-124851 and was listed on 24 November 2026. It is an information disclosure issue: during decompression of specially crafted compressed data, the process can expose the contents of an internal memory buffer through its decompressed output.
The affected range is Zstandard versions 1.5.1 through 1.5.7. The report does not give a CVSS score, a weakness classification beyond "information disclosure", or a bounty amount.
Setup
The report does not describe a test environment, tooling, build flags or a proof-of-concept harness. It states only the affected version range (1.5.1 to 1.5.7) and the trigger condition: decompressing specially crafted compressed data. No sample input, command or code is provided.
Finding it
The report describes the issue as an information disclosure during decompression. What makes it notable is the position of the flaw: it sits in a compression library rather than in a single application, so the same defect is inherited by every product that embeds the affected versions.
Exploitation
The report gives no step-by-step exploitation. The only described behaviour is that specially crafted compressed data, when decompressed by an affected version, causes the decompression process to expose the contents of an internal memory buffer through its decompressed output. There are no requests, payloads, commands or responses to reproduce, and no worked example of what the leaked output looks like.
What can be said about the shape of the attack is limited to that condition: the attacker supplies the compressed input, and the victim (or the victim's service) performs the decompression.
Root cause
The report does not analyse the code path. It states the effect, that an internal memory buffer's contents can appear in the decompressed output, but not which function mishandles the crafted input, nor which defence failed. Any explanation of the underlying mistake would be speculation, so it is left out here.
Impact
An attacker who can get crafted compressed data decompressed by a vulnerable version can cause internal memory contents to be disclosed in the output. Because Zstandard is embedded in many applications and infrastructure projects, the reach of the flaw is wider than any single product, but the report does not quantify affected deployments.
Fix
It only records that versions 1.5.1 through 1.5.7 are affected. Readers running those versions should treat the range as the thing to check against their dependency tree, but the report itself gives no remediation guidance.
Variants to test
These are general directions suggested by the nature of the bug, not steps from the report.
- Other decompressors in the same dependency tree. Identify every library and application that bundles Zstandard 1.5.1 to 1.5.7, including language bindings and vendored copies. A positive result is a decompression path that accepts attacker-controlled input and returns output containing bytes that were never part of the original compressed stream.
- Round-trip checks on decompressed output. Compress known data, decompress it, and compare the result byte for byte with the input. A positive result is output longer than, or different from, the original, especially with trailing bytes that look like structured memory rather than compressed content.
- Boundary and malformed frames. Feed truncated, oversized or inconsistent frame headers and block descriptors to the decompressor. A positive result is output that includes data beyond the declared content size, or a crash that dumps buffer contents.
- Repeated decompression in one process. Decompress a benign payload, then a crafted one, in the same process. A positive result is the second output containing fragments of the first payload, which would indicate buffer reuse rather than fresh allocation.
- Service-level exposure. Where decompression happens server-side (upload handling, archive processing, API bodies), check whether the decompressed output is returned to the caller or logged. A positive result is leaked buffer contents reaching a response, a log file or an error message that the attacker can read.
What happened, in plain words
On 24 November 2026, a security vulnerability in a piece of software called Zstandard was listed and disclosed. It is tracked under the identifier CVE-2026-124851. A CVE is a public catalogue number for a known security flaw, so that everyone talking about the same bug uses the same name.
The flaw is an information disclosure. In everyday terms: when a program is asked to unpack some compressed data, it can accidentally include pieces of its own private working memory in the result it hands back. Think of a photocopier that, besides copying your page, sometimes prints a faint copy of the previous document that was still lying on the glass. You asked for your page; you got your page plus something you were never meant to see.
The affected versions are Zstandard 1.5.1 through 1.5.7. The report gives no CVSS score (a standard 0 to 10 severity rating), no more specific weakness classification than "information disclosure", and no bounty amount.
Context
What Zstandard is
Zstandard is a compression technology. Compression means storing data in fewer bytes than the original, so it takes less space on disk and less time to send over a network. When you need the data back, you decompress it, which restores the original bytes. You use compression constantly without noticing: web pages arrive compressed, installers are compressed, backups are compressed.
Zstandard was built to be fast at both compressing and decompressing. Because it is fast and open source (its code is freely available for anyone to use), it has been adopted widely: in software applications, in development environments (the tools programmers work in), in data processing systems, and in infrastructure projects (the plumbing that runs servers and networks).
That wide adoption is the important part. A compression library is not a standalone product you install and forget. It is a building block that other programs embed, the way a car engine is used in many different car models. If the engine has a fault, every model using it inherits the fault, even though the fault was designed in one place.
The vulnerability itself
CVE-2026-124851 is an information disclosure issue. During decompression of specially crafted compressed data, the process can expose the contents of an internal memory buffer through its decompressed output.
Two ideas need unpacking here.
- Memory buffer: a program's memory is like a desk covered in trays. A buffer is one tray set aside to hold data temporarily while it is being worked on. When the program is finished with a tray, it may reuse it for something else. If it forgets to wipe the tray first, whatever was left behind can end up mixed into the next job.
- Specially crafted compressed data: input built on purpose to trigger the bug, rather than ordinary data that happens to be compressed. The attacker controls the input; the victim, or the victim's service, performs the decompression.
The affected range is Zstandard versions 1.5.1 through 1.5.7. The report does not give a CVSS score, a weakness classification beyond "information disclosure", or a bounty amount.
Setup
The report does not describe a test environment, tooling, build flags or a proof-of-concept harness. It states only the affected version range (1.5.1 to 1.5.7) and the trigger condition: decompressing specially crafted compressed data. No sample input, command or code is provided.
For a beginner, "setup" in a security report normally means the lab: which machine, which version of the software, which tools were used to send the malicious input. None of that is here, so there is nothing to reproduce step by step. What you can take away is the checklist item: if a program you rely on bundles Zstandard between 1.5.1 and 1.5.7, that is the range to check against.
Finding it
The report describes the issue as an information disclosure during decompression. What makes it notable is the position of the flaw: it sits in a compression library rather than in a single application, so the same defect is inherited by every product that embeds the affected versions.
Why does the position matter so much? Imagine a faulty lock fitted to one office door. You fix one door. Now imagine the same lock design is fitted to thousands of doors in thousands of buildings. Fixing the design is one job, but finding every door that uses it is a much bigger one. That is the situation with a library: the fix happens once, in the library, but every application that embedded it needs to pick up the new version. Vulnerability management is the ongoing work of keeping track of which of your doors use which lock.
Exploitation
The report gives no step-by-step exploitation. The only described behaviour is that specially crafted compressed data, when decompressed by an affected version, causes the decompression process to expose the contents of an internal memory buffer through its decompressed output. There are no requests, payloads, commands or responses to reproduce, and no worked example of what the leaked output looks like.
What can be said about the shape of the attack is limited to that condition: the attacker supplies the compressed input, and the victim (or the victim's service) performs the decompression.
In plain words, the attack has two roles. The attacker prepares a file that looks like compressed data but is built to misbehave. The victim's software unpacks it, as it would unpack any legitimate file, and the unpacked result carries extra bytes that came from the program's own memory rather than from the file. The attacker then reads those extra bytes wherever the output ends up.
Root cause
The report does not analyse the code path. It states the effect, that an internal memory buffer's contents can appear in the decompressed output, but not which function mishandles the crafted input, nor which defence failed. Any explanation of the underlying mistake would be speculation, so it is left out here.
"Root cause" means the actual mistake in the code: the line or logic that is wrong. Knowing the effect (memory contents leak into output) is not the same as knowing the cause (why the program copies more than it should, or reads from a tray it never filled). Without the cause, defenders can still recognise the symptom, but they cannot reason precisely about which other code paths might share the same mistake.
Impact
An attacker who can get crafted compressed data decompressed by a vulnerable version can cause internal memory contents to be disclosed in the output. Because Zstandard is embedded in many applications and infrastructure projects, the reach of the flaw is wider than any single product, but the report does not quantify affected deployments.
Why does leaked memory matter, even without details? Program memory is where a running program keeps the data it is currently handling: parts of files, configuration, session information, sometimes credentials. A leak of a few bytes is not automatically serious, but a leak that can be repeated or aimed can add up. The report is careful not to claim any of that, and neither should we.
Fix
It only records that versions 1.5.1 through 1.5.7 are affected. Readers running those versions should treat the range as the thing to check against their dependency tree, but the report itself gives no remediation guidance.
A dependency tree is the list of all the building blocks your software pulls in, directly and indirectly. You may never have installed Zstandard yourself; a program you use may have brought it along. Checking the tree means asking, for each program you run, which version of each library it contains. That is the practical action the affected range supports, even though the report stops short of prescribing it.
Variants to test
These are general directions suggested by the nature of the bug, not steps from the report.
- Other decompressors in the same dependency tree. Identify every library and application that bundles Zstandard 1.5.1 to 1.5.7, including language bindings and vendored copies. A positive result is a decompression path that accepts attacker-controlled input and returns output containing bytes that were never part of the original compressed stream.
- Round-trip checks on decompressed output. Compress known data, decompress it, and compare the result byte for byte with the input. A positive result is output longer than, or different from, the original, especially with trailing bytes that look like structured memory rather than compressed content.
- Boundary and malformed frames. Feed truncated, oversized or inconsistent frame headers and block descriptors to the decompressor. A positive result is output that includes data beyond the declared content size, or a crash that dumps buffer contents.
- Repeated decompression in one process. Decompress a benign payload, then a crafted one, in the same process. A positive result is the second output containing fragments of the first payload, which would indicate buffer reuse rather than fresh allocation.
- Service-level exposure. Where decompression happens server-side (upload handling, archive processing, API bodies), check whether the decompressed output is returned to the caller or logged. A positive result is leaked buffer contents reaching a response, a log file or an error message that the attacker can read.
A few of these terms deserve a plain explanation before you read the list.
- Language binding: a wrapper that lets programmers use a library written in one language from another language. The wrapper is a separate piece of code, so it may bundle its own copy of the library.
- Vendored copy: a copy of a library pasted directly into another project's source code instead of being installed from a package manager. Vendored copies are easy to forget when updating, because they do not show up as a normal dependency.
- Round-trip check: compress something, decompress it, and confirm you got exactly the same bytes back. It is the simplest sanity test for any compression tool, and it is also a way to spot a leak: if the output is longer than the input, something extra came along for the ride.
- Frame header and block descriptor: compressed data is not one undifferentiated blob. It is organised into a frame with a header describing it, and into blocks with descriptors. Feeding malformed versions of these structures is a standard way to test how robustly a decompressor handles bad input.
- Server-side: the decompression happens on a server rather than on your own computer. Upload handling, archive processing and API bodies are all places where a server accepts data from outside and may unpack it.
- API: an interface that lets one program ask another for something. When you use a website, your browser is calling the site's API behind the scenes. If an API accepts compressed data in a request body, the server may decompress it, which is exactly the situation this bug needs.
Each variant is a way of asking the same question in a different place: can I get this decompressor to hand back bytes that were not in my input? The list is a set of directions, not a recipe, and none of it comes from the report itself.
Glossary
- Zstandard: a fast compression technology, used as a building block inside many other programs.
- Compression: storing data in fewer bytes so it takes less space or less time to send.
- Decompression: turning compressed data back into its original form.
- CVE: a public catalogue number for a known security vulnerability, so the same flaw has one shared name.
- CVE-2026-124851: the identifier for the Zstandard information disclosure described here.
- Information disclosure: a flaw where a program reveals data it was not supposed to reveal.
- Memory buffer: a temporary area of a program's memory set aside to hold data while it is being worked on.
- Specially crafted data: input built on purpose to trigger a bug, rather than ordinary data.
- CVSS score: a standard 0 to 10 rating of how severe a vulnerability is.
- Library: reusable code that other programs embed instead of writing the same functionality themselves.
- Open source: software whose code is freely available to read and use.
- Infrastructure: the underlying systems and services that run applications and networks.
- Vulnerability management: the ongoing work of tracking which software you use, which flaws affect it, and keeping it updated.
- Dependency tree: the full list of libraries a program pulls in, directly and indirectly.
- Language binding: a wrapper that lets code in one programming language use a library written in another.
- Vendored copy: a copy of a library pasted directly into another project rather than installed as a normal dependency.
- Round-trip check: compress data, decompress it, and compare the result byte for byte with the original.
- Frame header: the part of compressed data that describes the frame it belongs to.
- Block descriptor: the part of compressed data that describes an individual block within it.
- Server-side: happening on a server rather than on the user's own computer.
- API: an interface that lets one program request something from another.
- Root cause: the actual mistake in the code that produces a vulnerability.
- Patch: a change to software that fixes a flaw.
- Workaround: a temporary way to avoid a flaw without a proper fix.
- Proof of concept: a small demonstration that a vulnerability can actually be triggered.