GHSA-CF4G-FCF8-3CR9
Vulnerability from github – Published: 2023-02-09 19:27 – Updated: 2023-02-09 19:27
VLAI?
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.
Severity ?
6.0 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "crates.io",
"name": "pnet_packet"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.27.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [],
"github_reviewed": true,
"github_reviewed_at": "2023-02-09T19:27:57Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "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.\n\nFixed in the `packet` macro by [this](https://github.com/libpnet/libpnet/pull/455) PR.\n",
"id": "GHSA-cf4g-fcf8-3cr9",
"modified": "2023-02-09T19:27:57Z",
"published": "2023-02-09T19:27:57Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/libpnet/libpnet/issues/449"
},
{
"type": "PACKAGE",
"url": "https://github.com/libpnet/libpnet"
},
{
"type": "WEB",
"url": "https://rustsec.org/advisories/RUSTSEC-2020-0167.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "`pnet_packet` buffer overrun in `set_payload` setters"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…