CVE-2026-109399: Openssl Cms Signeddata Certs As Untrusted X509 Chain

Certificates taken from the attacker-supplied CMS SignedData (CMS_get1_certs/CMS_get0_certs) flow into the untrusted-chain argument of X509_STORE_CTX_init, so X509_verify_cert() builds the signer chain through attacker-controlled intermediate CA certificates. An attacker holding a signing key issued by a sibling intermediate under the trusted root can embed

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0C
greprules fetch cve-2026-109399-openssl-cms-signeddata-certs-as-untrusted-x509-chain --engine opengrep

Description

Certificates taken from the attacker-supplied CMS SignedData (CMS_get1_certs/CMS_get0_certs) flow into the untrusted-chain argument of X509_STORE_CTX_init, so X509_verify_cert() builds the signer chain through attacker-controlled intermediate CA certificates. An attacker holding a signing key issued by a sibling intermediate under the trusted root can embed