Skip to content

Commit 8dce4e7

Browse files
1 parent 1a47942 commit 8dce4e7

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-h5j3-crg5-8jqm",
4+
"modified": "2025-10-21T21:54:27Z",
5+
"published": "2025-10-21T21:54:27Z",
6+
"aliases": [],
7+
"summary": "orx-pinned-vec has undefined behavior in index_of_ptr with empty slices",
8+
"details": "The safe function `index_of_ptr` causes undefined behavior when called with an empty slice.\n\nThe issue occurs in the line `ptr.add(slice.len() - 1)` which underflows when `slice.len()` is 0, creating a pointer with a massive offset. According to Rust's safety rules, creating such a pointer causes immediate 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": "orx-pinned-vec"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"fixed": "3.21.0"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/orxfun/orx-pinned-vec/issues/52"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/orxfun/orx-pinned-vec/pull/53"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/orxfun/orx-pinned-vec/commit/4a4007a1aaff25cd417853c76163883a7110e276"
48+
},
49+
{
50+
"type": "PACKAGE",
51+
"url": "https://github.com/orxfun/orx-pinned-vec"
52+
},
53+
{
54+
"type": "WEB",
55+
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0106.html"
56+
}
57+
],
58+
"database_specific": {
59+
"cwe_ids": [
60+
"CWE-119",
61+
"CWE-191"
62+
],
63+
"severity": "LOW",
64+
"github_reviewed": true,
65+
"github_reviewed_at": "2025-10-21T21:54:27Z",
66+
"nvd_published_at": null
67+
}
68+
}

0 commit comments

Comments
 (0)