CVE-2022-37454
Buffer overflow in sponge queue functions
Also known as 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, GHSA-6w4m-2xhg-2658, PSF-2022-11, PYSEC-2026-504
Mitigation
- Upgrade sha3 to 1.0.5 or later.
Who should check
- Projects that depend on PyPI package pysha3 (<= 1.0.2)
- Projects that depend on RubyGems package sha3 (< 1.0.5)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running Siemens RUGGEDCOM APE1808 < *
- Anyone running Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5
- Anyone running Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5
- Anyone running Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5
Vulnerability facts
- Affected
- pysha3 <= 1.0.2; sha3 < 1.0.5
- Fixed in
- 1.0.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 6.07% chance of exploitation in 30 days (percentile 94, 2026-11-26)
- CWE
- CWE-190
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pysha3 | <= 1.0.2 | — | osv |
| RubyGems sha3 | < 1.0.5 | 1.0.5 | osv |
| n/a | — | — | nvd |
| Siemens RUGGEDCOM APE1808 | < * | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-37454. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-37454.md Affected: pysha3 <= 1.0.2; sha3 < 1.0.5 Fixed in: 1.0.5 Steps: 1. Search this machine and project for pysha3 (PyPI), sha3 (RubyGems), n/a, Siemens RUGGEDCOM APE1808, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://csrc.nist.gov/projects/hash-functions/sha-3-project
- https://news.ycombinator.com/item?id=33281106
- 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://eprint.iacr.org/2023/331
- https://news.ycombinator.com/item?id=35050307
- https://security.gentoo.org/glsa/202305-02
- https://security.netapp.com/advisory/ntap-20230203-0001/
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html
- https://cert-portal.siemens.com/productcert/html/ssa-455250.html
- https://github.com/XKCP/XKCP/issues/105
- https://github.com/johanns/sha3/issues/17
- https://github.com/tiran/pysha3/issues/29
- https://mouha.be/sha-3-buffer-overflow
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMIEXLMTW5GO36HTFFWIPB3OHZXCT3G4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3ALQ6BDDPX5HU5YBQOBMDVAA2TSGDKIJ
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sha3/CVE-2022-37454.yml
- https://pypi.org/project/pysha3
- https://security.netapp.com/advisory/ntap-20230203-0001
- https://github.com/pypa/advisory-database/tree/main/vulns/pysha3/PYSEC-2026-504.yaml
FAQ
Is CVE-2022-37454 being exploited?
There is no confirmed exploitation: CVE-2022-37454 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 6.07% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-37454?
Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-37454?
pysha3 <= 1.0.2; sha3 < 1.0.5.
Is there a fix for CVE-2022-37454?
Yes. Fixed in 1.0.5. Upgrade sha3 to 1.0.5 or later.
How do I check if I'm affected by CVE-2022-37454?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.