This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate pnet_bandwhich_fork

Dependencies

(6 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 ipnetwork^0.15.00.21.1out of date
 pnet_base_bandwhich_fork^0.23.00.23.0up to date
 pnet_datalink_bandwhich_fork^0.23.10.23.1up to date
 pnet_packet ⚠️^0.23.00.35.0out of date
 pnet_sys_bandwhich_fork^0.23.00.23.0up to date
 pnet_transport^0.23.00.35.0out of date

Dev dependencies

(1 total, 1 possibly insecure)

CrateRequiredLatestStatus
 time ⚠️>=0.10.3.47maybe insecure

Security Vulnerabilities

pnet_packet: `pnet_packet` buffer overrun in `set_payload` setters

RUSTSEC-2020-0167

As indicated by this issue, a buffer overrun is possible in the set_payload setter of the various mutable "Packet" struct setters. The offending set_payload functions were defined within the struct impl blocks in earlier versions of the package, and later by the packet macro.

Fixed in the packet macro by this PR.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.