title: Invalid certificate policies in leaf certificates are silently ignored
description: 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.
problem types: improper certificate validation
affected:
{
defaultStatus: unaffected
product: OpenSSL
vendor: OpenSSL
versions:
lessThan: 3.1.1, status: affected, version: 3.1.0, versionType: semver
lessThan: 3.0.9, status: affected, version: 3.0.0, versionType: semver
lessThan: 1.1.1u, status: affected, version: 1.1.1, versionType: custom
lessThan: 1.0.2zh, status: affected, version: 1.0.2, versionType: custom
}
metrics:
format: other
other: [
content: {'text': 'Low'}
type: https://www.openssl.org/policies/secpolicy.html
]