{"id":"GHSA-5873-6fwq-463f","revision":"336e0b3f563b4ddcb7a979fe46602cf7","records":[{"revision":"336e0b3f563b4ddcb7a979fe46602cf7","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-5873-6fwq-463f","aliases":["CVE-2023-46135"],"title":"stellar-strkey vulnerable to panic in SignedPayload::from_payload","description":"### 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\n","state":0,"publishedAt":"2023-10-25T14:09:10+00:00","modifiedAt":"2026-09-10T03:49:58.4541044+00:00","affected":[{"ecosystem":"crates.io","name":"stellar-strkey","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.8"}]}],"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:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/stellar/rs-stellar-strkey/security/advisories/GHSA-5873-6fwq-463f","https://nvd.nist.gov/vuln/detail/CVE-2023-46135","https://github.com/stellar/rs-stellar-strkey/issues/58","https://github.com/stellar/rs-stellar-strkey/pull/59","https://github.com/stellar/rs-stellar-strkey/commit/83adad0f5b1cda693c7ba8524d395add8077865f","https://github.com/stellar/rs-stellar-strkey","https://github.com/stellar/rs-stellar-strkey/releases/tag/v0.0.8"],"sourceUrl":"https://github.com/advisories/GHSA-5873-6fwq-463f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5873-6fwq-463f","identifiers":["GHSA-5873-6fwq-463f","CVE-2023-46135"]},"retained":false,"historicalAffected":[]}],"coverage":[]}