RUSTSEC-2020-0167
MEDIUM 6.0CVSS 3.0`pnet_packet` buffer overrun in `set_payload` setters
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.
- Published
- 19 Jun 2020
- Last modified
- 8 Nov 2023
- Also known as
- GHSA-cf4g-fcf8-3cr9
- Sources
- OSV GHSA-cf4g-fcf8-3cr9JSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| OSV | RustSec | CVSS 3.0 | MEDIUM 6.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | pnet_packet | < 0.27.2 | 0.27.2 |
| OSV | crates.io | pnet_packet | >= 0.0.0-0, < 0.27.2 | 0.27.2 |
References
- https://github.com/libpnet/libpnet/issues/449 · WEB, REPORT
- https://github.com/libpnet/libpnet · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2020-0167.html · WEB, ADVISORY
- https://crates.io/crates/pnet_packet · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Jun 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Feb 2023)