Code execution via queued sponge length overflow
Published Oct 21, 2022 · Updated May 8, 2025
Integer-to-buffer overflow in the XKCP SHA-3 reference implementation before commit fdc6fef allows attackers to execute arbitrary code. SpongeAbsorb and SpongeSqueeze cast a queued size_t length to unsigned int and add it to byteIOIndex, allowing the bounds comparison to wrap before an oversized buffer operation. Reaching the flaw requires a queued partial input or output of at least 2^32 - 200 bytes; demonstrated outcomes include a crash or infinite loop, while crafted files can enable code execution or invalidate hash properties.
Summary
What happened
Integer-to-buffer overflow in the XKCP SHA-3 reference implementation before commit fdc6fef allows attackers to execute arbitrary code. SpongeAbsorb and SpongeSqueeze cast a queued size_t length to unsigned int and add it to byteIOIndex, allowing the bounds comparison to wrap before an oversized buffer operation. Reaching the flaw requires a queued partial input or output of at least 2^32 - 200 bytes; demonstrated outcomes include a crash or infinite loop, while crafted files can enable code execution or invalidate hash properties.
The record
- CVE
- CVE-2022-37454
- Published
- Oct 21, 2022
- Updated
- May 8, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-680, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 21, 2022CVE publishedPublication date reported by the CVE source.
- May 8, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Python and PHP segmentation-fault proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo