← VULNERABILITIES

RUSTSEC-2026-0596

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

UnscoredFix available
CVSS
—
EPSS
—
Published
2026-11-23
Age
6d old
Modified
2026-11-24
Product
crates.io etherparse
Aliases
GHSA-mmwx-cp2j-wjh2

Description

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.

Fixed in

0.14.4 · 0.15.1 · 0.16.1 · 0.17.1 · 0.18.3 · 0.19.1 · 0.20.4 · 0.21.1

Affected packages

EcosystemPackageRangeFixed
crates.ioetherparse>=0.14.0, <0.14.40.14.4
crates.ioetherparse>=0.15.0-0, <0.15.10.15.1
crates.ioetherparse>=0.16.0-0, <0.16.10.16.1
crates.ioetherparse>=0.17.0-0, <0.17.10.17.1
crates.ioetherparse>=0.18.0-0, <0.18.30.18.3
crates.ioetherparse>=0.19.0-0, <0.19.10.19.1
crates.ioetherparse>=0.20.0-0, <0.20.40.20.4
crates.ioetherparse>=0.21.0-0, <0.21.10.21.1

Sources

  • OSV · first seen 5d ago · CC-BY 4.0

References

JSON