{"id":"RUSTSEC-2026-0216","revision":null,"records":[{"revision":"19cfae5814094749945ca57dc231e50d","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0216","aliases":["GHSA-hrqp-8w79-gwgw"],"title":"Remote Denial of Service via malformed NIP‑44 v2 payload","description":"The NIP-44 v2 decryption path in the `nostr` crate contains a reachable panic\nwhen processing a short or empty ciphertext. After the HMAC check passes and the\nciphertext is decrypted via ChaCha20, the code reads a 2‑byte unpadded‑length\nprefix via `buffer[0..2]` without first verifying that the decrypted buffer\ncontains at least 2 bytes. A malicious sender who holds the symmetric\nconversation key (e.g., a direct‑message sender) can craft a payload that\nproduces a 0 or 1‑byte decrypted buffer, causing an index‑out‑of‑bounds panic.\nThis can be triggered remotely through any relay that delivers the crafted\nevent to the victim's client, resulting in a denial of service. No key material,\nplaintext, or memory corruption occurs.\n\nThe vulnerability is present in all versions from `0.26.0` up to `0.44.4`\n(inclusive) and in the alpha releases `0.45.0‑alpha.1` through `0.45.0‑alpha.4`.\nVersions `0.44.5` and `0.45.0‑alpha.5` contain the fix.\n\n## Credit\n\nDiscovered and responsibly disclosed by **Muhammed Shekho** ([mhd-shekho.com](https://mhd-shekho.com)).","state":0,"publishedAt":"2026-07-25T12:00:00+00:00","modifiedAt":"2026-08-01T11:45:04.3915369+00:00","affected":[{"ecosystem":"crates.io","name":"nostr","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.44.5"},{"kind":"introduced","version":"0.45.0-alpha.1"},{"kind":"fixed","version":"0.45.0-alpha.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/nostr","https://rustsec.org/advisories/RUSTSEC-2026-0216.html","https://github.com/nostrdevkit/nostr/commit/73bdd677b872641d57a2ebcc5afc23ee0e5f0d2d"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0216","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0216","identifiers":["RUSTSEC-2026-0216","GHSA-hrqp-8w79-gwgw"]},"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-23T12:25:38.3858409+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-23T12:25:38.3858409+00:00","lastSuccessAt":"2026-11-23T12:25:38.5925898+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.59259+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-e0474ecdd1dd034df26f6498aad3fe02582afc82fa78d21d9858b0a85325cb21","complete":true,"records":430618,"lastAttemptAt":"2026-11-23T12:25:37.6251781+00:00","lastSuccessAt":"2026-11-23T12:25:37.5663199+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:37.6251781+00:00","snapshotPublishedAt":"2026-11-23T11:30:07+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-839ba126593245bd8641a64afc2e2642","complete":false,"records":13928,"lastAttemptAt":"2026-11-23T12:35:18.6984334+00:00","lastSuccessAt":"2026-11-23T12:35:18.694+00:00","error":"247 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-23T12:35:18.694+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13705,"expectedIdentifiers":13976,"failedIdentifiers":247},{"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-23T12:25:38.3858409+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-23T12:25:38.3858409+00:00","lastSuccessAt":"2026-11-23T12:25:38.5933337+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.593334+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-93e5580208494f94820efc1fb6fd9471","complete":true,"records":13940,"lastAttemptAt":"2026-11-23T12:25:40.0629638+00:00","lastSuccessAt":"2026-11-23T12:25:40.059+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:40.059+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-23T12:25:38.2508855+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.2508855+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-23T12:25:37.7829703+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:37.7829703+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-23T12:25:38.3509395+00:00","lastSuccessAt":"2026-11-23T10:27:16.8439398+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.3509395+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-eff9dfb7fcad562c432f16aeb11b612e17ad078a4a4304d91b73dafe94cec5c7","complete":true,"records":232881,"lastAttemptAt":"2026-11-23T12:25:38.1500978+00:00","lastSuccessAt":"2026-11-23T11:27:05.0429339+00:00","error":null,"lastVerifiedAt":"2026-11-23T12:25:38.1500978+00:00","snapshotPublishedAt":"2026-11-23T10:48:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}