CVE-2022-3996 X.509 Policy Constraints Double Locking

High 7.5 Published Updated

A double locking bug in OpenSSL causes a denial of service when processing malformed X.509 policy constraints if policy processing is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-3996?

CVE-2022-3996 is a high-severity denial of service vulnerability in Openssl Openssl, published on 13 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

If an X.509 certificate contains a malformed policy constraint and policy processing is enabled, then a write lock will be taken twice recursively. On some operating systems (most widely: Windows) this results in a denial of service when the affected process hangs. Policy processing being enabled on a publicly facing server is not considered to be a common setup.

Policy processing is enabled by passing the `-policy' argument to the command line utilities or by calling the `X509_VERIFY_PARAM_set1_policies()' function.

Update (31 March 2023): The description of the policy processing enablement was corrected based on CVE-2023-0466.

Weakness: CWE-667

Which versions are affected by CVE-2022-3996?

2 open source packages ship an affected version, including openssl-src. It affects 1 product.

PackageAffectedFixed in
openssl-src crates.ioFrom 300.0.0300.0.12
openssl-src crates.ioFrom 300.0.0300.0.12
Linux distribution packages (1)
openssl-3 openSUSE:TumbleweedAll versions3.0.7-2.1

Products include Openssl Openssl.

How do I fix CVE-2022-3996?

Upgrade openssl-src to 300.0.12 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-3996 being exploited?

There is no known exploitation of CVE-2022-3996 in the wild and no public exploit code.

All Openssl Openssl vulnerabilities

Sources

Also known as ALPINE-CVE-2022-3996, AZL-40306, CLEANSTART-2026-FU56835, DEBIAN-CVE-2022-3996, GHSA-vr8j-hgmm-jh9r, UBUNTU-CVE-2022-3996 and 1 more.

Is CVE-2022-3996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free