Loading...
Skip to main content

CVE-2022-37454 — Buffer overflow in sha3 — CVE Details

CRITICAL

Buffer overflow in sponge queue functions

Published April 26, 2023Updated September 10, 2026Source: osv

Summary

### 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](https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a). ### 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](https://github.com/XKCP/XKCP/issues/105) for more details.

Advisory Timeline

  • First published April 26, 2023 (1265 days ago).
  • Last revised September 10, 2026 — 1232 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update sha3 to 1.0.5 or later
gem install sha3 -v 1.0.5

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 2 ecosystems: pypi (1), rubygems (1).

PackageEcosystemAffectedFixed In
sha3
rubygems
0.1.0, 0.1.1, 0.2.0, 0.2.2 (+7 more)1.0.5
pysha3
pypi
0.1, 0.2, 0.2.1, 0.2.2 (+6 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Frequently Asked Questions

What is CVE-2022-37454?
Buffer overflow in sponge queue functions This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2022-37454?
CVE-2022-37454 affects sha3 and pysha3. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-37454 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

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 CVEs

  • CVE-2026-61447
    CRITICAL

    PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies