1,126 zstd header matches are only the visible edge of compression dependencies

2026-12-01来源 dev.toEnglish

1,126 zstd header matches are only the visible edge of compression dependencies

A server can advertise Zstandard support in a response header, but the vulnerable decompressor may run in a client, a proxy, a worker, or a backup process. CVE-2026-124851 affects zstd 1.5.1 through 1.5.7 and can expose data from a reused 64 KiB internal buffer.

I queried ZoomEye with http.header="zstd" at 2026-11-30T17:53:32Z. The count-only request used sub_type=all, page 1, and page size 1. It returned 1,126 matches. A broader http.header="Content-Encoding" query returned 69,454,583. The second count covers many encodings and is not a zstd population.

The vulnerability is contextual. A crafted compressed stream can expose uninitialized bytes or literals from an earlier decompression in the same context. Fresh-per-request contexts have less history; long-lived workers can cross jobs or tenants. Services that accept compressed uploads and return or log output are more relevant than a static server that only negotiates response compression.

Use the visible zstd matches as a discovery lead for proxies, API gateways, file processors, and observability services. Confirm the loaded library version with a package inventory and runtime linker information. Search container images and vendored modules because the command-line zstd package may be newer than an application's embedded copy.

Upgrade to zstd 1.6.0 or a vendor backport. Restart long-lived processes so the new library is loaded. Audit application code that keeps a decompression context across requests. Add compressed and decompressed size limits, request concurrency limits, and output logging rules that avoid recording secrets from decompressed bodies.

Test a long-lived worker with repeated decompressions and malformed inputs. Confirm that failed output does not include bytes from the previous job. Preserve compressed input, worker identity, version, and adjacent request metadata if a leak is suspected. Rotate secrets that may have appeared in prior output and reached logs.

The header count is not a vulnerability count. Many systems use zstd without exposing it, and an advertised header may terminate at an edge proxy that uses a separate implementation. Store the exact query and date. The software inventory and a context-reuse test provide the closure evidence.

References

原文:https://www.a8q9.cn/en/article/1-126-zstd-header-matches-are-only-the-visible-edge-of-compression-dependencies-2531bc.html

相关文章