DHI-trwq-ulqr-7eh2-chyq
`InBuffer`'s fields are public, so safe code can set `pos` past the end of
Unscored
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-19
- Age
- 14d old
- Modified
- 2026-12-03
- Product
- nvflare
Description
`InBuffer`'s fields are public, so safe code can set `pos` past the end of `src`. The position was passed to the C library unchecked, and `ZSTD_seekable_compressStream`, unlike the other streaming functions, does not validate it: it read past the end of the input slice, by up to the frame size, and compressed that memory into the output. The flaw was corrected by checking the position before every call into the C library.
Sources
- OSV · first seen 14d ago · CC-BY 4.0
References
- https://scout.docker.com/v/DHI-trwq-ulqr-7eh2-chyq advisory
- https://rustsec.org/advisories/RUSTSEC-2026-0405 advisory
- https://rustsec.org/advisories/RUSTSEC-2026-0405.html advisory
- https://github.com/gyscos/zstd-rs/pull/384 fix
- https://github.com/gyscos/zstd-rs/commit/20d397c0d68d8b4300c5493875ebfa10e355fcdd fix