9.8critical
Buffer overflow in sponge queue functions
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 7.41% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-6w4m-2xhg-2658BIT-LIBPHP-2022-37454BIT-LIBPYTHON-2022-37454BIT-PHP-2022-37454BIT-PHP-MIN-2022-37454BIT-PYTHON-2022-37454BIT-PYTHON-MIN-2022-37454PSF-2022-11PYSEC-2026-504
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pysha3 (PyPI) | up to 1.0.2 | GitHub Advisory Database, PyPA Advisory Database |
| sha3 (RubyGems) | before 1.0.5 | GitHub Advisory Database |
| https://github.com/python/cpython | before 0e4e058602d93b88256ff90bbef501ba20be9dd3, before 8088c90044ba04cd5624b278340ebf934dbee4a5, before 857efee6d2d43c5c12fc7e377ce437144c728ab8, before 948c6794711458fd148a3fa62296cadeeb2ed631 | Python Software Foundation |
| extended_keccak_code_package_project extended_keccak_code_package | Not specified | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| fedoraproject fedora | 35, 36 | NVD |
| php php | from 7.2.0 before 7.4.33, from 8.0.0 before 8.0.25, from 8.1.0 before 8.1.12 | NVD |
| python python | from 3.6.0 before 3.7.16, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16, from 3.10.0 before 3.10.9 | NVD |
| sha3_project sha3 | before 1.0.5 | NVD |
| pysha3_project pysha3 | Not specified | NVD |
| pypy pypy | from 7.0.0 | NVD |
| libphp (Bitnami) | from 7.2.0 before 7.4.33, from 8.0.0 before 8.0.25, from 8.1.0 before 8.1.12 | Bitnami Vulnerability Database |
| libpython (Bitnami) | from 3.6.0 before 3.7.16, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16, from 3.10.0 before 3.10.9 | Bitnami Vulnerability Database |
| php (Bitnami) | from 7.2.0 before 7.4.33, from 8.0.0 before 8.0.25, from 8.1.0 before 8.1.12 | Bitnami Vulnerability Database |
| php-min (Bitnami) | from 7.2.0 before 7.4.33, from 8.0.0 before 8.0.25, from 8.1.0 before 8.1.12 | Bitnami Vulnerability Database |
| python (Bitnami) | from 3.6.0 before 3.7.16, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16, from 3.10.0 before 3.10.9 | Bitnami Vulnerability Database |
| python-min (Bitnami) | from 3.6.0 before 3.7.16, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16, from 3.10.0 before 3.10.9 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The Keccak sponge function interface accepts partial inputs to be absorbed and partial outputs to be squeezed. A buffer can overflow when partial data with some specific sizes are queued, where at least one of them has a length of 2^32 - 200 bytes or more.
Patches
Yes, see commit fdc6fef0.
Workarounds
The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes. Multiple calls to the queue system can be chained at a higher level to retain the original functionality. Alternatively, one can process the entire input (or produce the entire output) at once, avoiding the queuing functions altogether.
References
See issue #105 for more details.
NVD (es)
La implementación de referencia de Keccak XKCP SHA-3 versiones anteriores a fdc6fef, presenta un desbordamiento de enteros y un desbordamiento de búfer resultante que permite a atacantes ejecutar código arbitrario o eliminar las propiedades criptográficas esperadas. Esto ocurre en la interfaz de la función sponge
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-37454 changed 2026-10-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6w4m-2xhg-2658 changed 2026-11-16 | CC-BY-4.0 |
| Python Software Foundation | PSF-2022-11 changed 2026-06-29 | CC-BY-4.0 |
| NVD | CVE-2022-37454 changed 2026-10-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-504 changed 2026-07-01 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-LIBPHP-2022-37454 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2022-37454 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2022-37454 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2022-37454 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2022-37454 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2022-37454 changed 2026-09-08 | Apache-2.0 |