{"id":"CVE-2025-67897","aliases":["CVE-2025-67897","GHSA-v6x3-9r38-r27q","RUSTSEC-2025-0136"],"related":[],"kind":"vulnerability","state":"published","title":"Sequoia PGP has Subtraction Overflow when aes_key_unwrap function is provided ciphertext that is too short","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The `aes_key_unwrap` function would panic if passed a ciphertext\nthat was too short.  In a debug build, it would panic due to a\nsubtraction underflow.  In a release build, it would use the\nsmall negative quantity to allocate a vector.  Since the\nallocator expects an unsigned quantity, the negative value would\nbe interpreted as a huge allocation.  The allocator would then\nfail to allocate the memory and panic.\n\nAn attacker could trigger this panic by sending a victim an\nencrypted message whose PKESK or SKESK packet has been specially\nmodified.  When the victim decrypts the message, the program\nwould crash.","format":"markdown","source":"rustsec"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-11-07T12:00:00.000Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-195"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.1.0","status":"affected"}],"vendor":"sequoia-pgp","product":"sequoia","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"crates.io","package":"sequoia-openpgp","purl":"pkg:cargo/sequoia-openpgp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"2.1.0"}],"ecosystem":"crates.io","package":"sequoia-openpgp","purl":"pkg:cargo/sequoia-openpgp","source":"rustsec"}],"references":[{"url":"https://gitlab.com/sequoia-pgp/sequoia/-/commit/b59886e5e7bdf7169ed330f309a6633d131776e5","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugs.debian.org/1122582","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia/-/blob/b59886e5e7bdf7169ed330f309a6633d131776e5/openpgp/NEWS#L7-L26","tags":["web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67897","tags":["advisory"],"sources":["ghsa"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0136.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/sequoia-openpgp","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-12-15T21:28:46.931Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67897","url":"https://www.cve.org/CVERecord?id=CVE-2025-67897","licence":"CVE Terms of Use","modified":"2025-12-15T21:29:01.140Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v6x3-9r38-r27q","url":"https://github.com/advisories/GHSA-v6x3-9r38-r27q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:32.193Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0136","url":"https://rustsec.org/advisories/RUSTSEC-2025-0136.html","licence":"CC0-1.0","modified":"2025-12-17T06:16:23.047Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67897","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67897","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.379Z","epss":{"score":0.0038,"percentile":0.34084,"date":"2026-12-01T12:00:22.000Z"}}