The function X509_VERIFY_PARAM_add0_policy() is documented to
implicitly enable the certificate policy check when doing certificate
verification. However the implementation of the function does not
enable the check which allows certificates with invalid or incorrect
policies to pass the certificate verification.
As suddenly enabling the policy check could break existing deployments it was
decided to keep the existing behavior of the X509_VERIFY_PARAM_add0_policy()
function.
Instead the applications that require OpenSSL to perform certificate
policy check need to use X509_VERIFY_PARAM_set1_policies() or explicitly
enable the policy check by calling X509_VERIFY_PARAM_set_flags() with
the X509_V_FLAG_POLICY_CHECK flag argument.
Certificate policy checks are disabled by default in OpenSSL and are not
commonly used by applications.
Metrics
Affected Vendors & Products
References
History
No history.
MITRE
Status: PUBLISHED
Assigner: openssl
Published: 2023-03-28T14:30:49.595Z
Updated: 2024-08-02T05:10:56.167Z
Reserved: 2023-01-24T13:52:42.631Z
Link: CVE-2023-0466
Vulnrichment
No data.
NVD
Status : Modified
Published: 2023-03-28T15:15:06.880
Modified: 2024-02-04T09:15:09.540
Link: CVE-2023-0466
Redhat