GHSA-mmwx-cp2j-wjh2

GHSA-mmwx-cp2j-wjh2 · RUSTSEC-2026-0596 · published 23 Nov 2026 · updated 24 Nov 2026

Out-of-bounds read when iterating over IPv6 extension headers of laxly parsed packets

5.0Medium

No exploitation in the wild has been reported. Fixed in etherparse 0.21.1.

Iterating over malformed or truncated IPv6 extension headers can cause out-of-bounds reads when the packet was parsed using one of the lax parsing functions (e.g. via `Ipv6ExtensionsSlice::from_slice_lax` or `LaxSlicedPacket`). Lax parsing stops at the first invalid or truncated extension header and returns the headers parsed up to that point. The "next header" field of the last returned header can then refer to a header that is not part of the slice. `Ipv6ExtensionSliceIter` followed it without checking the remaining length. A crafted or truncated IPv6 packet can cause a crash or expose memory located behind the packet to the application. Users who do not iterate over the IPv6 extension headers of laxly parsed packets are not affected. As a workaround, do not iterate over the IPv6 extension headers if lax parsing reported an error.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cargo: etherparse>=0.21.0-0 <0.21.10.21.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

GHSA-mmwx-cp2j-wjh2 severity on Zeptric[![GHSA-mmwx-cp2j-wjh2](https://zeptric.io/badge/cve/GHSA-mmwx-cp2j-wjh2.svg)](https://zeptric.io/cve/GHSA-mmwx-cp2j-wjh2)