Vulnerabilities / CVE-2026-24881

critical

CVE-2026-24881

GnuPG: GnuPG: Remote code execution and denial of service via crafted CMS EnvelopedData message

Published Modified CWE 121
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Julia. Rated lower by Red Hat (high).

Description

In GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an oversized wrapped session key can cause a stack-based buffer overflow in gpg-agent during PKDECRYPT--kem=CMS handling. This can easily be leveraged for denial of service; however, there is also memory corruption that could lead to remote code execution.

Affected packages and fixed versions

SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesGnuPG_jll2.5.17+0
Red Hatgnupg2, gnupg2-smimeno fix listed
seal Red Hat 7gnupg2, seal-gnupg22.0.22-5.el7_5+sp999
seal Red Hat 9gnupg2, seal-gnupg22.3.3-4.el9+sp999
Show all 7 entries from 4 sources
SourcePackageFixed in
julia::Julia Ecosystem Security AdvisoriesGnuPG_jll2.5.17+0
Red Hatgnupg2no fix listed
Red Hatgnupg2-smimeno fix listed
seal Red Hat 7gnupg22.0.22-5.el7_5+sp999
seal Red Hat 7seal-gnupg22.0.22-5.el7_5+sp999
seal Red Hat 9gnupg22.3.3-4.el9+sp999
seal Red Hat 9seal-gnupg22.3.3-4.el9+sp999

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.