Skip to content

CVE-2026-124851 #78

Done
Done

Description

@CurtHagenlocher

Malformed compressed data can make streaming decompression copy uninitialized memory, or data from an earlier decompression on the same context, into its output. The CVE record doesn't name the fix, but #5023 (commit 0c9d29753) is almost certainly it, since its changelog entry describes exactly this bug. ZstdSharp's ZSTD_checkContinuity (Unsafe/ZstdDecompressBlock.cs:2055) is unchanged from 1.5.7, and the second half of the fix, zeroing the padding after the literal buffers, is also missing. Anyone feeding untrusted data through DecompressionStream is exposed. It leaks data rather than causing a crash.

It looks like some of the other fixes in 1.6.0 would also be pertinent to this code.

Activity

  1. oleg-st commented on Nov 24, 2026

    @oleg-st
    Owner

    Hi, I will port 1.6.0

  2. oleg-st commented on Nov 24, 2026

    @oleg-st
    Owner

    Released in 0.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions