Skip to content

Commit 572bb88

Browse files
1 parent a902af9 commit 572bb88

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-9fjq-45qv-pcm7",
4+
"modified": "2025-12-26T18:55:53Z",
5+
"published": "2025-12-26T18:55:53Z",
6+
"aliases": [],
7+
"summary": "ruint affected by unsoundness of safe `reciprocal_mg10`",
8+
"details": "The function `reciprocal_mg10` is marked as safe but can trigger undefined behavior (out-of-bounds access) because it relies on `debug_assert!` for safety checks instead of `assert!`.\n\nWhen compiled in release mode, the `debug_assert!` is optimized out, potentially allowing invalid inputs to cause memory corruption.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "crates.io",
19+
"name": "ruint"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"last_affected": "1.17.0"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/recmo/uint/issues/550"
40+
},
41+
{
42+
"type": "PACKAGE",
43+
"url": "https://github.com/recmo/uint"
44+
},
45+
{
46+
"type": "WEB",
47+
"url": "https://github.com/recmo/uint/blob/17c9b3e9062f74a39701e68dec358375595d33d7/src/algorithms/div/reciprocal.rs#L79-L87"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0137.html"
52+
}
53+
],
54+
"database_specific": {
55+
"cwe_ids": [
56+
"CWE-119"
57+
],
58+
"severity": "MODERATE",
59+
"github_reviewed": true,
60+
"github_reviewed_at": "2025-12-26T18:55:53Z",
61+
"nvd_published_at": null
62+
}
63+
}

0 commit comments

Comments
 (0)