DHI-n6fn-uik4-n65l-hlxa

Source
https://scout.docker.com/v/DHI-n6fn-uik4-n65l-hlxa
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n6fn-uik4-n65l-hlxa.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-n6fn-uik4-n65l-hlxa
Upstream
Published
2026-11-13T23:35:14Z
Modified
2026-11-16T02:35:51Z
Severity
  • 6.9 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
`InlineVec::clear()` and `SerVec::clear()` in `rkyv` were not panic-safe. Both functions iterate over their elements…
Details

InlineVec::clear() and SerVec::clear() in rkyv were not panic-safe. Both functions iterate over their elements and call drop_in_place on each, updating self.len only after the loop. If an element's Drop implementation panics during the loop, self.len is left at its original value.

A subsequent invocation of clear() on the same container then re-visits the already-freed elements:

  • InlineVec::clear() is called again from InlineVec's own Drop implementation when the value is later dropped.
  • SerVec::clear() is called again by SerVec::with_capacity() after the user closure returns.

Technical Impact

  • CWE-415 (Double Free): Heap corruption when element type holds Box<T>
  • CWE-416 (Use-After-Free): Memory corruption when element reads from heap during Drop

Both vulnerabilities are triggerable entirely from safe Rust via std::panic::catch_unwind and require no special privileges.

References

Affected packages

Docker Hardened Images:Alpine:3.23 / rust

Package

Name
rust
Purl
pkg:apk/dhi/rust

Affected ranges

Affected versions

1.*
1.91.1-r0
1.91.1-r2
1.91.1-r3
1.91.1-r4
1.93.1-r0
1.93.1-r1
1.94.0-r0
1.94.0-r1
1.94.1-r0
1.94.1-r1
1.95.0-r0
1.96.0-r0
1.96.1-r0
1.97.0-r0
1.97.0-r1
1.98.1-r0
1.99.0-r2
1.99.1-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-n6fn-uik4-n65l-hlxa.json"