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.
{
"cwe_ids": [
"CWE-121"
],
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24881.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "2.5.13"
},
{
"fixed": "2.5.17"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"introduced": "2.5.13"
},
{
"fixed": "2.5.17"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"fixed": "2.5.17"
}
],
"source": "DESCRIPTION"
}
]
}