GHSA-cf4g-fcf8-3cr9
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 package | Versions | Reported by |
|---|---|---|
| pnet_packet (crates.io) | before 0.27.2, from 0.0.0-0 before 0.27.2 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| GitHub | 6.0medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| RustSec Advisory Database | 6.0medium CVSS:3.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-cf4g-fcf8-3cr9 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0167 changed 2023-11-08 | CC0-1.0 |