{"id":"CVE-2022-37454","aliases":["CVE-2022-37454","GHSA-6w4m-2xhg-2658","BIT-LIBPHP-2022-37454","BIT-LIBPYTHON-2022-37454","BIT-PHP-2022-37454","BIT-PHP-MIN-2022-37454","BIT-PYTHON-2022-37454","BIT-PYTHON-MIN-2022-37454","PSF-2022-11","PYSEC-2026-504"],"related":[],"kind":"vulnerability","state":"published","title":"Buffer overflow in sponge queue functions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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.\n\n### Patches\n\nYes, see commit [fdc6fef0](https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a).\n\n### Workarounds\n\nThe 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.\n\n### References\n\nSee [issue #105](https://github.com/XKCP/XKCP/issues/105) for more details.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-10-21T00:00:00.000Z","modified":"2026-11-16T16:15:06.806Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"unknown"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.0.2"}],"ecosystem":"PyPI","package":"pysha3","purl":"pkg:pypi/pysha3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.5"}],"ecosystem":"RubyGems","package":"sha3","purl":"pkg:gem/sha3","source":"ghsa"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0e4e058602d93b88256ff90bbef501ba20be9dd3"},{"type":"git","status":"affected","fixed":"8088c90044ba04cd5624b278340ebf934dbee4a5"},{"type":"git","status":"affected","fixed":"857efee6d2d43c5c12fc7e377ce437144c728ab8"},{"type":"git","status":"affected","fixed":"948c6794711458fd148a3fa62296cadeeb2ed631"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[],"vendor":"extended_keccak_code_package_project","product":"extended_keccak_code_package","cpe":"cpe:2.3:a:extended_keccak_code_package_project:extended_keccak_code_package:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.2.0","fixed":"7.4.33"},{"status":"affected","introduced":"8.0.0","fixed":"8.0.25"},{"status":"affected","introduced":"8.1.0","fixed":"8.1.12"}],"vendor":"php","product":"php","cpe":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"3.6.0","fixed":"3.7.16"},{"status":"affected","introduced":"3.8.0","fixed":"3.8.16"},{"status":"affected","introduced":"3.9.0","fixed":"3.9.16"},{"status":"affected","introduced":"3.10.0","fixed":"3.10.9"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0.5"}],"vendor":"sha3_project","product":"sha3","cpe":"cpe:2.3:a:sha3_project:sha3:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[],"vendor":"pysha3_project","product":"pysha3","cpe":"cpe:2.3:a:pysha3_project:pysha3:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.0.0"}],"vendor":"pypy","product":"pypy","cpe":"cpe:2.3:a:pypy:pypy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.0.2"}],"ecosystem":"PyPI","package":"pysha3","purl":"pkg:pypi/pysha3","source":"pysec"},{"ranges":[{"type":"semver","introduced":"7.2.0","status":"affected","fixed":"7.4.33"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.25"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.12"}],"ecosystem":"Bitnami","package":"libphp","purl":"pkg:bitnami/libphp","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.6.0","status":"affected","fixed":"3.7.16"},{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"3.8.16"},{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.16"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.9"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"7.2.0","status":"affected","fixed":"7.4.33"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.25"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.12"}],"ecosystem":"Bitnami","package":"php","purl":"pkg:bitnami/php","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"7.2.0","status":"affected","fixed":"7.4.33"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.25"},{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.1.12"}],"ecosystem":"Bitnami","package":"php-min","purl":"pkg:bitnami/php-min","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.6.0","status":"affected","fixed":"3.7.16"},{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"3.8.16"},{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.16"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.9"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.6.0","status":"affected","fixed":"3.7.16"},{"type":"semver","introduced":"3.8.0","status":"affected","fixed":"3.8.16"},{"type":"semver","introduced":"3.9.0","status":"affected","fixed":"3.9.16"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.9"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://csrc.nist.gov/projects/hash-functions/sha-3-project","tags":["advisory","third-party-advisory","us-government-resource","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://mouha.be/sha-3-buffer-overflow/","tags":["advisory","exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://news.ycombinator.com/item?id=33281106","tags":["advisory","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/XKCP/XKCP/security/advisories/GHSA-6w4m-2xhg-2658","tags":["advisory","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","psf","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00041.html","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00000.html","tags":["advisory","mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.debian.org/security/2022/dsa-5267","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.debian.org/security/2022/dsa-5269","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://eprint.iacr.org/2023/331","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://news.ycombinator.com/item?id=35050307","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://security.gentoo.org/glsa/202305-02","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20230203-0001/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-806742.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-455250.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37454","tags":["advisory","web"],"sources":["ghsa","pysec","bitnami"]},{"url":"https://github.com/tiran/pysha3/issues/29","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/XKCP/XKCP/issues/105","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/johanns/sha3/issues/17","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/johanns/sha3/commit/5f2e8118a62831911703c8753ff2435c3b5d7312","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://mouha.be/sha-3-buffer-overflow","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pysha3","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20230203-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sha3/CVE-2022-37454.yml","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pysha3/PYSEC-2026-504.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python/cpython/issues/98517","tags":["report"],"sources":["psf"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=CVE-2022-37454","tags":["web"],"sources":["psf"]},{"url":"https://github.com/advisories/GHSA-6w4m-2xhg-2658","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-05-08T15:03:12.969Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-37454","url":"https://www.cve.org/CVERecord?id=CVE-2022-37454","licence":"CVE Terms of Use","modified":"2026-10-14T17:30:50.581Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6w4m-2xhg-2658","url":"https://github.com/advisories/GHSA-6w4m-2xhg-2658","licence":"CC-BY-4.0","modified":"2026-11-16T16:15:06.806Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2022-11","url":"https://osv.dev/vulnerability/PSF-2022-11","licence":"CC-BY-4.0","modified":"2026-06-29T12:26:13.691Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-37454","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37454","licence":"Public domain","modified":"2026-10-14T18:17:03.997Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-504","url":"https://osv.dev/vulnerability/PYSEC-2026-504","licence":"CC-BY-4.0","modified":"2026-07-01T20:23:03.122Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPHP-2022-37454","url":"https://osv.dev/vulnerability/BIT-LIBPHP-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:45:14.549Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2022-37454","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:48:08.977Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-2022-37454","url":"https://osv.dev/vulnerability/BIT-PHP-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.134Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PHP-MIN-2022-37454","url":"https://osv.dev/vulnerability/BIT-PHP-MIN-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.730Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2022-37454","url":"https://osv.dev/vulnerability/BIT-PYTHON-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.938Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2022-37454","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2022-37454","licence":"Apache-2.0","modified":"2026-09-08T08:47:30.029Z"}],"updatedAt":"2026-11-25T22:58:15.941Z","epss":{"score":0.07413,"percentile":0.94564,"date":"2026-12-01T12:00:22.000Z"}}