PYSEC-2026-504

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pysha3/PYSEC-2026-504.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-504
Aliases
Published
2026-06-29T11:50:42.592721Z
Modified
2026-07-01T20:23:03.122139Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Buffer overflow in sponge queue functions
Details

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.

References

Affected packages

PyPI / pysha3

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.0.2

Affected versions

0.*
0.1
0.2
0.2.1
0.2.2
0.3
1.*
1.0b1
1.0.0
1.0.1
1.0.2.dev1
1.0.2

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pysha3/PYSEC-2026-504.yaml"