// Detect dark theme var iframe = document.getElementById('tweet-2128357822161092918-784'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2128357822161092918&theme=dark" }
OpenTelemetry Collector fixed a high-severity bug (GHSA-vf52-ppm4-c35w, CVSS 7.5): its OTLP receivers decoded zstd requests without capping the decoder window.
A zstd frame declares its window in one header byte. This 10-byte frame asks for 512 MiB: 28 b5 2f fd 00 98 09 00 00 41. The Go decoder (klauspost/compress) allocated that buffer before writing any output. On gRPC it happened before authentication.
Request size limits did not help: they cap the output, not the decoder's buffer. Version 0.165.0 caps the window at the server's own size limit, never below 8 MiB.
I tried the frame with python-zstandard 0.25 (libzstd 1.5.7). By default its streaming decoder refuses: "Frame requires too much memory for decoding". With a 512 MiB limit it decodes to one byte, "A".
Do your services cap the zstd window on network input?
Sources:
https://github.com/advisories/GHSA-vf52-ppm4-c35w
https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.165.0
AI-assisted, checked by the author.