{"id":"CVE-2023-46135","aliases":["CVE-2023-46135","GHSA-5873-6fwq-463f"],"related":[],"kind":"vulnerability","state":"published","title":"Panic in SignedPayload::from_payload","summary":"rs-stellar-strkey is a Rust lib for encode/decode of Stellar Strkeys. A panic vulnerability occurs when a specially crafted payload is used.`inner_payload_len` should not above 64. This vulnerability has been patched in version 0.0.8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rs-stellar-strkey is a Rust lib for encode/decode of Stellar Strkeys. A panic vulnerability occurs when a specially crafted payload is used.`inner_payload_len` should not above 64. This vulnerability has been patched in version 0.0.8.","source":"cvelist"},{"lang":"en","text":"### Impact\nPanic vulnerability when a specially crafted payload is used. \nThis is because of the following calculation:\n```rust\ninner_payload_len + (4 - inner_payload_len % 4) % 4\n```\nIf `inner_payload_len` is `0xffffffff`, `(4 - inner_payload_len % 4) % 4 = 1` so\n```rust\ninner_payload_len + (4 - inner_payload_len % 4) % 4 = u32::MAX + 1\n```\nwhich overflow.\n\n### Patches\nCheck that `inner_payload_len` is not above 64 which should never be the case.\nPatched in version 0.0.8\n\n### Workarounds\nSanitize input payload before it is passed to the vulnerable function so that bytes in `payload[32..32+4]` and parsed as a `u32` is not above 64.\n\n### References\nGitHub issue #58","format":"markdown","source":"ghsa"},{"lang":"es","text":"rs-stellar-strkey es una librería de Rust para codificar/decodificar Stellar Strkeys. Se produce una vulnerabilidad de pánico cuando se utiliza un payload especialmente manipulado. `inner_payload_len` no debe ser superior a 64. Esta vulnerabilidad se ha parcheado en la versión 0.0.8.","source":"nvd"}],"published":"2023-10-25T00:38:03.159Z","modified":"2026-09-10T03:49:58.454Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 0.0.8","status":"affected"}],"vendor":"stellar","product":"rs-stellar-strkey","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.0.8","status":"affected"}],"vendor":"stellar","product":"rs-stellar-strkey","cpe":"cpe:2.3:a:stellar:rs-stellar-strkey:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.8"}],"ecosystem":"crates.io","package":"stellar-strkey","purl":"pkg:cargo/stellar-strkey","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.0.8"}],"vendor":"stellar","product":"rs-stellar-strkey","cpe":"cpe:2.3:a:stellar:rs-stellar-strkey:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/stellar/rs-stellar-strkey/security/advisories/GHSA-5873-6fwq-463f","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/stellar/rs-stellar-strkey/issues/58","tags":["exploit","issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46135","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/stellar/rs-stellar-strkey/pull/59","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/stellar/rs-stellar-strkey/commit/83adad0f5b1cda693c7ba8524d395add8077865f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/stellar/rs-stellar-strkey","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/stellar/rs-stellar-strkey/releases/tag/v0.0.8","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-09-10T15:01:35.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-46135","url":"https://www.cve.org/CVERecord?id=CVE-2023-46135","licence":"CVE Terms of Use","modified":"2024-09-10T15:06:21.577Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5873-6fwq-463f","url":"https://github.com/advisories/GHSA-5873-6fwq-463f","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:58.454Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-46135","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46135","licence":"Public domain","modified":"2026-06-17T06:30:13.567Z"}],"updatedAt":"2026-11-25T22:58:29.090Z","epss":{"score":0.00951,"percentile":0.6229,"date":"2026-12-01T12:00:22.000Z"}}