Description
Issue summary: An attacker-controlled CMP (Certificate Management Protocol) server could trigger a NULL pointer dereference in a CMP client application. Impact summary: A NULL pointer dereference causes a crash of the application and a Denial of Service. An attacker controlling a CMP server (or acting as a man-in-the-middle) could craft a CMP response containing a CRMF (Certificate Request Message Format) CertRepMessage with an EncryptedValue structure where the symmAlg field has an algorithm OID but no parameters field. When the OpenSSL CMP client processes this response, the NULL dereference occurs, causing a crash of the CMP client. Applications that process untrusted CMP/CRMF messages may be affected. The FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.
Problem types
CWE-476 NULL Pointer Dereference
Product status
4.0.0 (semver) before 4.0.1
3.6.0 (semver) before 3.6.3
3.5.0 (semver) before 3.5.7
3.4.0 (semver) before 3.4.6
3.0.0 (semver) before 3.0.21
Credits
Zhanpeng Liu (Tencent Xuanwu Lab)
Guannan Wang (Tencent Xuanwu Lab)
Guancheng Li (Tencent Xuanwu Lab)
Bhabani Sankar Das
Igor Ustinov
Tomáš Mráz
References
openssl-library.org/news/secadv/20260609.txt (OpenSSL Advisory)
github.com/...ommit/b90ff3b1bd33b1c18e6a09936d097c2eddef8873 (4.0.1 git commit)
github.com/...ommit/e6f912907fc2ec82a0fd07aae55172c5e5e3d90d (3.6.3 git commit)
github.com/...ommit/810b722f772652ad48042bcc7ab07e3414b11d0f (3.5.7 git commit)
github.com/...ommit/665d5254083affde9982efca7c41dd01cacc8774 (3.4.6 git commit)
github.com/...ommit/61a86a8cd73546c9fea916f3d304c1293e05c046 (3.0.21 git commit)