GHSA-cf4g-fcf8-3cr9

Suggest an improvement
Source
https://github.com/advisories/GHSA-cf4g-fcf8-3cr9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-cf4g-fcf8-3cr9/GHSA-cf4g-fcf8-3cr9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cf4g-fcf8-3cr9
Aliases
Published
2023-02-09T19:27:57Z
Modified
2023-11-08T04:18:24.874397Z
Severity
  • 6.0 (Medium) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
`pnet_packet` buffer overrun in `set_payload` setters
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-02-09T19:27:57Z"
}
References

Affected packages

crates.io / pnet_packet

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.27.2