GHSA-cf4g-fcf8-3cr9 json
`pnet_packet` buffer overrun in `set_payload` setters
published 6y ago modified 3y ago also RUSTSEC-2020-0167
- cvss
- 6.0
- version 3.0, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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.
Fixed in the `packet` macro by [this](https://github.com/libpnet/libpnet/pull/455) PR.
Patch / fix
- crates.io pnet_packet 0.27.2
Is GHSA-cf4g-fcf8-3cr9 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.0 | 6.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| OSV | 3.0 | 6.0 | CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | pnet_packet | <0.27.2 >=0.0.0-0, <0.27.2 |
0.27.2 |
References
-
github.com
/libpnet/libpnet/issues/449
web, report
-
github.com
/libpnet/libpnet
package
-
rustsec.org
/advisories/RUSTSEC-2020-0167.html
web, advisory
-
crates.io
/crates/pnet_packet
package
Sources
- GitHub Advisory GHSA-cf4g-fcf8-3cr9
- OSV RUSTSEC-2020-0167
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.