logo

GHSA-cf4g-fcf8-3cr9 pnet_packet

Package

Manager: cargo
Name: pnet_packet
Vulnerable Version: >=0 <0.27.2

Severity

Level: Medium

CVSS v3.1: CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: N/A pctlN/A

Details

`pnet_packet` buffer overrun in `set_payload` setters 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.

Metadata

Created: 2023-02-09T19:27:57Z
Modified: 2023-02-09T19:27:57Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-cf4g-fcf8-3cr9/GHSA-cf4g-fcf8-3cr9.json
CWE IDs: []
Alternative ID: N/A
Finding: F316
Auto approve: 1