{"id":"GHSA-cf4g-fcf8-3cr9","aliases":["GHSA-cf4g-fcf8-3cr9","RUSTSEC-2020-0167"],"related":[],"kind":"vulnerability","state":"published","title":"`pnet_packet` buffer overrun in `set_payload` setters","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.\n\nFixed in the `packet` macro by [this](https://github.com/libpnet/libpnet/pull/455) PR.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-06-19T12:00:00.000Z","modified":"2023-11-08T04:18:24.874Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.27.2"}],"ecosystem":"crates.io","package":"pnet_packet","purl":"pkg:cargo/pnet_packet","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.27.2"}],"ecosystem":"crates.io","package":"pnet_packet","purl":"pkg:cargo/pnet_packet","source":"rustsec"}],"references":[{"url":"https://github.com/libpnet/libpnet/issues/449","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/libpnet/libpnet","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0167.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/pnet_packet","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cf4g-fcf8-3cr9","url":"https://github.com/advisories/GHSA-cf4g-fcf8-3cr9","licence":"CC-BY-4.0","modified":"2023-11-08T04:18:24.874Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0167","url":"https://rustsec.org/advisories/RUSTSEC-2020-0167.html","licence":"CC0-1.0","modified":"2023-11-08T04:18:24.874Z"}],"updatedAt":"2026-11-25T22:56:43.011Z"}