Description
Issue summary: During processing of a crafted CMS EnvelopedData message with KeyTransportRecipientInfo a NULL pointer dereference can happen. Impact summary: Applications that process attacker-controlled CMS data may crash before authentication or cryptographic operations occur resulting in Denial of Service. When a CMS EnvelopedData message that uses KeyTransportRecipientInfo with RSA-OAEP encryption is processed, the optional parameters field of RSA-OAEP SourceFunc algorithm identifier is examined without checking for its presence. This results in a NULL pointer dereference if the field is missing. Applications and services that call CMS_decrypt() on untrusted input (e.g., S/MIME processing or CMS-based protocols) are vulnerable. The FIPS modules in 3.6, 3.5, 3.4, 3.3 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
3.6.0 (semver) before 3.6.2
3.5.0 (semver) before 3.5.6
3.4.0 (semver) before 3.4.5
3.3.0 (semver) before 3.3.7
3.0.0 (semver) before 3.0.20
1.1.1 (custom) before 1.1.1zg
1.0.2 (custom) before 1.0.2zp
Credits
Muhammad Daffa
Zhanpeng Liu (Tencent Xuanwu Lab)
Guannan Wang (Tencent Xuanwu Lab)
Guancheng Li (Tencent Xuanwu Lab)
Joshua Rogers (Aisle Research)
Chanho Kim
Neil Horman
References
openssl-library.org/news/secadv/20260407.txt (OpenSSL Advisory)
github.com/...ommit/01194a8f1941115cd0383bfa91c736dd3993c8bc (3.6.2 git commit)
github.com/...ommit/2e39b7a6993be445fddb9fbce316fa756e0397b6 (3.5.6 git commit)
github.com/...ommit/ea7b4ea4f9f853521ba34830cbcadc970d2e0788 (3.4.5 git commit)
github.com/...ommit/fd2f1a6cf53b9ceeca723a001aa4b825d7c7ee75 (3.3.7 git commit)
github.com/...ommit/af2a5fecd3e71a29e7568f9c1453dec5cebbaff4 (3.0.20 git commit)