{"id":"CVE-2023-46135","aliases":["GHSA-5873-6fwq-463f"],"url":"https://o3.security/vulnerability/CVE-2023-46135","summary":"Panic in SignedPayload::from_payload","details":"### 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","published":"2023-10-25T00:38:03.159Z","modified":"2026-08-12T03:51:16.717947481Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":{"score":0.00762,"percentile":0.53682,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"crates.io","name":"stellar-strkey","fixedVersion":"0.0.8"}],"fix":{"url":"https://github.com/stellar/rs-stellar-strkey/pull/59","label":"stellar/rs-stellar-strkey#59"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46135.json"},{"type":"ADVISORY","url":"https://github.com/stellar/rs-stellar-strkey/security/advisories/GHSA-5873-6fwq-463f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46135"},{"type":"REPORT","url":"https://github.com/stellar/rs-stellar-strkey/issues/58"},{"type":"WEB","url":"https://github.com/stellar/rs-stellar-strkey/pull/59"},{"type":"WEB","url":"https://github.com/stellar/rs-stellar-strkey/commit/83adad0f5b1cda693c7ba8524d395add8077865f"},{"type":"PACKAGE","url":"https://github.com/stellar/rs-stellar-strkey"},{"type":"WEB","url":"https://github.com/stellar/rs-stellar-strkey/releases/tag/v0.0.8"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:16.717947481Z"}}