5.3medium
Sequoia PGP has Subtraction Overflow when aes_key_unwrap function is provided ciphertext that is too short
- Severity
- 5.3medium CVSS:3.1 by mitre
- Exploit likelihood
- 0.38% (higher than 34% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-v6x3-9r38-r27qRUSTSEC-2025-0136
Description
In Sequoia before 2.1.0, aes_key_unwrap panics if passed a ciphertext that is too short. A remote attacker can take advantage of this issue to crash an application by sending a victim an encrypted message with a crafted PKESK or SKESK packet.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sequoia-pgp sequoia | before 2.1.0 | CVE List |
| sequoia-openpgp (crates.io) | before 2.1.0, from 0.0.0-0 before 2.1.0 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| mitre | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In Sequoia before 2.1.0, aes_key_unwrap panics if passed a ciphertext that is too short. A remote attacker can take advantage of this issue to crash an application by sending a victim an encrypted message with a crafted PKESK or SKESK packet.
RustSec Advisory Database
The aes_key_unwrap function would panic if passed a ciphertext
that was too short. In a debug build, it would panic due to a
subtraction underflow. In a release build, it would use the
small negative quantity to allocate a vector. Since the
allocator expects an unsigned quantity, the negative value would
be interpreted as a huge allocation. The allocator would then
fail to allocate the memory and panic.
An attacker could trigger this panic by sending a victim an encrypted message whose PKESK or SKESK packet has been specially modified. When the victim decrypts the message, the program would crash.
NVD (es)
En Sequoia antes de la versión 2.1.0, aes_key_unwrap entra en pánico si se le pasa un texto cifrado que es demasiado corto. Un atacante remoto puede aprovechar este problema para bloquear una aplicación enviando a una víctima un mensaje cifrado con un paquete PKESK o SKESK manipulado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67897 changed 2025-12-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v6x3-9r38-r27q changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2025-0136 changed 2025-12-17 | CC0-1.0 |
| NVD | CVE-2025-67897 changed 2026-10-14 | Public domain |