`pnet_packet` buffer overrun in `set_payload` setters
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
As indicated by this [issue](https://github.com/libpnet/libpnet/issues/449#issuecomment-663355987), 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](https://github.com/libpnet/libpnet/pull/455) PR.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pnet_packet (crates.io) | before 0.27.2 | 0.27.2 | Patch available | GHSA-cf4g-fcf8-3cr9 |
- pnet_packet (crates.io) Vendor— Affected before 0.27.2 Fixed in 0.27.2 Patch available GHSA-cf4g-fcf8-3cr9
Remediation
- Fix · GHSA-cf4g-fcf8-3cr9 pnet_packet (crates.io) Fixed in 0.27.2 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-cf4g-fcf8-3cr9
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences