GHSA-cf4g-fcf8-3cr9
JSON

6.0medium

`pnet_packet` buffer overrun in `set_payload` setters

Severity
6.0medium CVSS:3.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2020-0167

Description

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.

Affected

Product or packageVersionsReported by
pnet_packet (crates.io)before 0.27.2, from 0.0.0-0 before 0.27.2GitHub Advisory Database, RustSec Advisory Database

All scores

GitHub6.0medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
RustSec Advisory Database6.0medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-cf4g-fcf8-3cr9 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0167 changed 2023-11-08CC0-1.0