CVE-2022-37454
Buffer overflow in sponge queue functions
Reported by mitre · Published October 21, 2022
sha3 is fixed in 1.0.5 (RubyGems)
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sha3 | RubyGems | 1.0.5 |
| php81 | Alpine | 8.1.12-r0 |
| php | Bitnami | 8.1.12, 8.0.25, 7.4.33 |
| python | Bitnami | 3.10.9, 3.9.16, 3.8.16, 3.7.16 |
| php8.1-opcache | Amazon Linux | 8.1.14-1.amzn2023.0.2 |
| php-min | Bitnami | 8.1.12, 8.0.25, 7.4.33 |
| php8.1-ldap | Amazon Linux | 8.1.14-1.amzn2023.0.2 |
| python3-libs | Amazon Linux | 3.7.15-1.amzn2.0.2 |
| php8.1-mysqlnd | Amazon Linux | 8.1.14-1.amzn2023.0.2 |
| php8.1-soap | Amazon Linux | 8.1.14-1.amzn2023.0.2 |
| python-min | Bitnami | 3.10.9, 3.9.16, 3.8.16, 3.7.16 |
| php8.1-gd | Amazon Linux | 8.1.14-1.amzn2023.0.2 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | pypy-3.11 | * |
| alpine | php81 | 0 |
| amazon:2023 | php8.1-opcache | 0 |
| amazon:2023 | php8.1-ldap | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3-libs | 0 |
| amazon:2023 | php8.1-mysqlnd | 0 |
| RubyGems | sha3 | 0 |
| amazon:2023 | php8.1-soap | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | php8.1-gd | 0 |
| amazon:2 | python3-test | 0 |
| amazon:2023 | php8.1-enchant | 0 |
| amazon:2023 | php8.1-pgsql | 0 |
| alpine | php8 | 0 |
| wolfi | pypy-3.11 | * |
| n/a | n/a | * |
| amazon:2023 | php8.1-intl | 0 |
| Siemens | RUGGEDCOM APE1808 | 0 |
…and 29 more
Timeline
- Oct 21, 2022 CVE Published
- Oct 22, 2022 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Mar 9, 2026 Security Advisory (17 in total, the first dated here)
- Jun 19, 2026 Coalition ESS Score
- Nov 18, 2026 Distribution Patch (14 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-37454
vulnetix vdb fixes CVE-2022-37454
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-37454/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://csrc.nist.gov/projects/hash-functions/sha-3-project
- https://mouha.be/sha-3-buffer-overflow/
- https://news.ycombinator.com/item?id=33281106
- https://github.com/XKCP/XKCP/security/advisories/GHSA-6w4m-2xhg-2658
- https://lists.debian.org/debian-lts-announce/2022/10/msg00041.html
- https://lists.debian.org/debian-lts-announce/2022/11/msg00000.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4/
- https://www.debian.org/security/2022/dsa-5267
- https://www.debian.org/security/2022/dsa-5269
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ/
- https://nvd.nist.gov/vuln/detail/CVE-2022-37454 advisory
- https://github.com/advisories/GHSA-6w4m-2xhg-2658 advisory
- https://github.com/XKCP/XKCP/issues/105 url
- https://github.com/johanns/sha3/issues/17 url
- https://github.com/tiran/pysha3/issues/29 url
- https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a patch
- https://github.com/johanns/sha3/commit/5f2e8118a62831911703c8753ff2435c3b5d7312 patch
…and 13 more