{"id":"RUSTSEC-2026-0220","revision":null,"records":[{"revision":"bcb210386c3a4b5782a3a1bbf767272c","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0220","aliases":[],"title":"Uint shift operations: incorrect overflow flags and truncated shift amounts","description":"`Uint::overflowing_shl`/`overflowing_shr` returned false-negative overflow\nflags. `overflowing_shl` missed bits shifted above `BITS` but within the top\nlimb (non-limb-aligned widths such as `U160`), and limbs wholly discarded by\nshifts >= 64; `overflowing_shr` missed wholly discarded low limbs. Shifted\nvalues were correct; only the flag was wrong.\n\nThe wrong flag propagates: `checked_shl`/`checked_shr` return `Some` instead\nof `None`, `strict_*` fail to panic, and `saturating_*` return a wrapped\nvalue instead of saturating. The incorrect `checked_shl` result causes\n`to_base_be` (and string formatting) to loop forever on no-alloc builds for\nnon-limb-aligned widths — a denial of service if formatting is reachable\nfrom untrusted input.\n\nSeparately, `wrapping_shl`/`wrapping_shr` on 64/128/256-bit types truncated\nthe shift amount modulo 2^32, so shifts >= 2^32 returned an incorrectly\nwrapped value instead of zero; on 32-bit targets the generic path also\ntruncated 64-bit shift amounts.\n\nCallers using checked or saturating shift semantics on untrusted shift\namounts may compute incorrect results.","state":0,"publishedAt":"2026-07-08T12:00:00+00:00","modifiedAt":"2026-07-30T19:15:04.025918+00:00","affected":[{"ecosystem":"crates.io","name":"ruint","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"1.20.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/ruint","https://rustsec.org/advisories/RUSTSEC-2026-0220.html","https://github.com/alloy-rs/ruint/pull/603"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0220","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0220","identifiers":["RUSTSEC-2026-0220"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-23T15:27:08.3778450+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T15:27:08.377845+00:00","lastSuccessAt":"2026-11-23T15:27:08.5591409+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:08.5591412+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d008fb8e7e5a0f37166ee57a6d9d22b27e49b9d9438b4ce80c4c6c326ac5d75a-b59c12a24a88ee6db0e4ad8107ac737603aa4ddc6d8960be680352e274f1a637","complete":true,"records":430641,"lastAttemptAt":"2026-11-23T15:25:28.0267416+00:00","lastSuccessAt":"2026-11-23T14:25:33.2501432+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:25:28.0267416+00:00","snapshotPublishedAt":"2026-11-23T14:23:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-98cc034d529f48ac9534e1a4ce9a97a4","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T15:36:48.5164164+00:00","lastSuccessAt":"2026-11-23T15:36:48.512+00:00","error":"298 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T15:36:48.512+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13667,"expectedIdentifiers":13976,"failedIdentifiers":298},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-23T15:27:08.3778450+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T15:27:08.377845+00:00","lastSuccessAt":"2026-11-23T15:27:08.5599272+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:08.5599274+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-dd5cfceec1694766bbb29d0239e21f97","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T15:27:09.6201037+00:00","lastSuccessAt":"2026-11-23T15:27:09.616+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:09.616+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13976,"expectedIdentifiers":13976,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-23T15:27:08.3323825+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:08.3323825+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-23T15:25:28.095061+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:25:28.095061+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-9035327876399d833ccd89428db993d67e1ee675265fd15c191a68c5fa77f5a4","complete":true,"records":3216,"lastAttemptAt":"2026-11-23T15:27:08.3460457+00:00","lastSuccessAt":"2026-11-23T10:27:16.8439398+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:08.3460457+00:00","snapshotPublishedAt":"2026-11-23T09:49:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-3340b862eb26c691d3c6f12d5b7bdaf5cb7b1594a75a2c43c36611e34a1d7547","complete":true,"records":232896,"lastAttemptAt":"2026-11-23T15:27:08.1988373+00:00","lastSuccessAt":"2026-11-23T15:27:07.1405359+00:00","error":null,"lastVerifiedAt":"2026-11-23T15:27:08.1988373+00:00","snapshotPublishedAt":"2026-11-23T14:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}