{"id":"GHSA-cf4g-fcf8-3cr9","summary":"`pnet_packet` buffer overrun in `set_payload` setters","details":"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.\n\nFixed in the `packet` macro by [this](https://github.com/libpnet/libpnet/pull/455) PR.\n","aliases":["RUSTSEC-2020-0167"],"modified":"2023-11-08T04:18:24.874397Z","published":"2023-02-09T19:27:57Z","database_specific":{"github_reviewed_at":"2023-02-09T19:27:57Z","nvd_published_at":null,"cwe_ids":[],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/libpnet/libpnet/issues/449"},{"type":"PACKAGE","url":"https://github.com/libpnet/libpnet"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0167.html"}],"affected":[{"package":{"name":"pnet_packet","ecosystem":"crates.io","purl":"pkg:cargo/pnet_packet"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.27.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-cf4g-fcf8-3cr9/GHSA-cf4g-fcf8-3cr9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H"}]}