Skip to content

Commit 1d9b1f8

Browse files
1 parent c1db39f commit 1d9b1f8

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-xcpm-76hf-c9cc",
4+
"modified": "2025-10-22T16:35:08Z",
5+
"published": "2025-10-22T16:35:08Z",
6+
"aliases": [],
7+
"summary": "Borrowck Scarifices exposes uninitialized memory in any_as_u8_slice",
8+
"details": "The safe function `any_as_u8_slice` can create byte slices that reference uninitialized memory when used with types containing padding bytes.\n\nThe function uses `slice::from_raw_parts` to create a `&[u8]` covering the entire size of a type, including padding bytes. According to Rust's documentation, `from_raw_parts` requires all bytes to be properly initialized, but padding bytes in structs are not guaranteed to be initialized. This violates the safety contract and causes undefined behavior.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "crates.io",
19+
"name": "borrowck_sacrifices"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "0.2.0"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/alexpyattaev/borrowck_sacrifices/issues/1"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/alexpyattaev/borrowck_sacrifices/commit/1bdaa14da68a6e8207f9e81359116f53139800f2"
44+
},
45+
{
46+
"type": "PACKAGE",
47+
"url": "https://github.com/alexpyattaev/borrowck_sacrifices"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0107.html"
52+
}
53+
],
54+
"database_specific": {
55+
"cwe_ids": [
56+
"CWE-824"
57+
],
58+
"severity": "LOW",
59+
"github_reviewed": true,
60+
"github_reviewed_at": "2025-10-22T16:35:08Z",
61+
"nvd_published_at": null
62+
}
63+
}

0 commit comments

Comments
 (0)