{"id":"GHSA-cf4g-fcf8-3cr9","aliases":["RUSTSEC-2020-0167"],"status":"published","title":"`pnet_packet` buffer overrun in `set_payload` setters","description":"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.","severity":{"version":"3.0","score":6,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2020-06-19T12:00:00Z","modified":"2023-11-08T04:18:24Z","fixes":[{"ecosystem":"crates.io","package":"pnet_packet","fixed_in":["0.27.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"pnet_packet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"pnet_packet","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.27.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"pnet_packet","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.27.2"}]}]}],"references":[{"url":"https://github.com/libpnet/libpnet/issues/449","tags":["web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0167.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-cf4g-fcf8-3cr9"},{"url":"https://github.com/libpnet/libpnet","tags":["package"]},{"url":"https://crates.io/crates/pnet_packet","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-cf4g-fcf8-3cr9","title":"`pnet_packet` buffer overrun in `set_payload` setters","description":"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","status":"published","published":"2023-02-09T19:27:57Z","modified":"2023-02-09T19:27:58Z","cvss":[{"version":"3.0","score":6,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T14:36:44.81167Z"}],"osv":[{"id":"GHSA-cf4g-fcf8-3cr9","title":"`pnet_packet` buffer overrun in `set_payload` setters","description":"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","status":"published","published":"2023-02-09T19:27:57Z","modified":"2023-11-08T04:18:24.874397Z","cvss":[{"version":"3.0","score":6,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:46:44.927642Z"},{"id":"RUSTSEC-2020-0167","title":"`pnet_packet` buffer overrun in `set_payload` setters","description":"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.","status":"published","published":"2020-06-19T12:00:00Z","modified":"2023-11-08T04:18:24.874397Z","cvss":[{"version":"3.0","score":6,"vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
