NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI💎 RubyGems
Not in CISA KEV
CRITICAL severity

Buffer overflow in sponge queue functionsGHSA-6w4m-2xhg-2658

CRITICALFix: XKCP/XKCP@fdc6fef

GHSA-6w4m-2xhg-2658 is a critical-severity (CVSS 9.8) CWE-190 vulnerability in pysha3. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for pysha3 — see the affected versions and patch details below.

Also known asBIT-libphp-2022-37454BIT-libpython-2022-37454BIT-php-2022-37454BIT-php-min-2022-37454BIT-python-2022-37454BIT-python-min-2022-37454
Published
Updated
Affected
2 pkgs
Patched
1 / 2
Exploits
1 known
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA’s SSVC triage for GHSA-6w4m-2xhg-2658.

EPSS Exploitation Probability

via FIRST.org ↗
7.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs94th percentile — riskier than 94% of all scored CVEsHighest risk
0.00%3.07%6.14%9.22%1.4%7.4%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
🐍pysha3💎sha3

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI, RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

2 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIpysha3all versionsNo fix
💎RubyGemssha3all versions1.0.5bundle update sha3 --conservative

Affected Products

8 products · 15 configurations
OS
debian linuxdebian
2 versions
10.011.0
Application
extended keccak code packageextended_keccak_code_package_project
all
OS
fedorafedoraproject
2 versions
3536
Application
phpphp
≥ 8.1.0 && < 8.1.12
range
Application
pypypypy
≥ 7.0.0
range
Application
pysha3pysha3_project
all
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pysha3, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    A fix is available for GHSA-6w4m-2xhg-2658; check the affected-versions list above or the advisory for the patched release of pysha3, then make sure no transitive dependency still pins the vulnerable range.

  3. Workarounds

    Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

Python as shipped with Red Hat Red Hat Enterprise Linux is not affected by this flaw as it uses the OpenSSL SHA-3 implementation. PHP as shipped with Red Hat Enterprise Linux is affected but not vulnerable by default as it depends of the memory_limit[1] configuration setting to have a value of -1, indicating there is…

Workaround published by Red Hat
Library users can limit the size of partial input data or partial output digest to below 4294967096 bytes. Avoiding the queuing functions altogether by processing the entire input or producing the entire output at once does not trigger this vulnerability.
Source: Red Hat security advisory for GHSA-6w4m-2xhg-2658 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Enterprise Linux 8php:8.0-8070020230118114629.ef331662RHSA-2023:0848
Red Hat Enterprise Linux 8php:7.4-8080020230118140634.cc342424RHSA-2023:2903
Red Hat Enterprise Linux 9php-0:8.0.27-1.el9_1RHSA-2023:0965
Red Hat Enterprise Linux 9php:8.1-9020020230120141750.9RHSA-2023:2417

Frequently Asked Questions

### 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
O3 Security · Impact-Aware SCA

Is GHSA-6w4m-2xhg-2658 in your dependencies?

Find it across PyPI, RubyGems, including transitive dependencies.

Buffer overflow in sponge queue functions (Critical 9.8)