Applications that use a non-default option when verifying certificates may be vulnerable to an attack from a malicious CA to circumvent certain checks. Invalid certificate policies in leaf certificates are silently ignored by OpenSSL and other certificate policy checks are skipped for that certificate. A malicious CA could use this to deliberately assert invalid certificate policies in order to circumvent policy checking on the certificate altogether. Policy processing is disabled by default but can be enabled by passing the `-policy' argument to the command line utilities or by calling the `X509_VERIFY_PARAM_set1_policies()' function.
https://www.cisa.gov/news-events/ics-advisories/icsa-24-165-11
https://www.cisa.gov/news-events/ics-advisories/icsa-24-165-10
https://www.cisa.gov/news-events/ics-advisories/icsa-24-165-06
https://www.cisa.gov/news-events/ics-advisories/icsa-24-165-04
https://cert-portal.siemens.com/productcert/html/ssa-556635.html
https://www.openssl.org/news/secadv/20230328.txt
https://www.debian.org/security/2023/dsa-5417
https://security.netapp.com/advisory/ntap-20230414-0001/
https://security.gentoo.org/glsa/202402-08
https://lists.debian.org/debian-lts-announce/2023/06/msg00011.html