Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. pnet_packet
  4. ›
  5. GHSA-cf4g-fcf8-3cr9

GHSA-cf4g-fcf8-3cr9: `pnet_packet` buffer overrun in `set_payload` setters

February 9, 2023

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.

References

  • github.com/advisories/GHSA-cf4g-fcf8-3cr9
  • github.com/libpnet/libpnet
  • github.com/libpnet/libpnet/issues/449
  • rustsec.org/advisories/RUSTSEC-2020-0167.html

Code Behaviors & Features

Detect and mitigate GHSA-cf4g-fcf8-3cr9 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.27.2

Fixed versions

  • 0.27.2

Solution

Upgrade to version 0.27.2 or above.

Impact 6 MEDIUM

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

Learn more about CVSS

Source file

cargo/pnet_packet/GHSA-cf4g-fcf8-3cr9.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:36 +0000.