Medium, CVSS 5.3crates.ioPublished
stellar-strkey vulnerable to panic in SignedPayload::from_payload
CVE-2023-46135 · GHSA-5873-6fwq-463f
- Affected
- crates.io stellar-strkey < 0.0.8
- Fixed in
- 0.0.8· Vendor fix available
- Issue
- Impact Panic vulnerability when a specially crafted payload is used. This is because of the following calculation: If innerpayloadlen is 0xffffffff, (4 - innerpayloadlen % 4) % 4 = 1 so which overflow. Patches Check that innerpayloadlen is not above 64 which should never be the case. Patched in version 0.0.8 Workarounds Sanitize 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. References GitHub issue #58
Recommended action: Upgrade to 0.0.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.