Vulnerability · Published Feb 24, 2023 · Assigned by openssl

CVE-2022-4203X.509 Name Constraints Read Buffer Overflow

Medium 4.9

In plain English

A medium-severity out-of-bounds read in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.9Medium
Exploit odds (30 days)1.4%top 27.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A read buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Note that this occurs after certificate chain signature verification and requires either a CA to have signed the malicious certificate or for the application to continue certificate verification despite failure to construct a path to a trusted issuer. The read buffer overrun might result in a crash which could lead to a denial of service attack. In theory it could also result in the disclosure of private memory contents (such as private keys, or sensitive plaintext) although we are not aware of any working exploit leading to memory contents disclosure as of the time of release of this advisory. In a TLS client, this can be triggered by connecting to a malicious server. In a TLS server, this can be triggered if the server requests client authentication and a malicious client connects.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9openssl1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-devel1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-libs1:3.0.1-47.el9_1ALSA-2023:0946
AlmaLinux:9openssl-perl1:3.0.1-47.el9_1ALSA-2023:0946
Alpine:v3.20openssl3.0.8-r0ALPINE-CVE-2022-4203
Alpine:v3.21openssl3.0.8-r0ALPINE-CVE-2022-4203
Alpine:v3.22openssl3.0.8-r0ALPINE-CVE-2022-4203
Alpine:v3.23openssl3.0.8-r0ALPINE-CVE-2022-4203
Alpine:v3.24openssl3.0.8-r0ALPINE-CVE-2022-4203
Debian:12openssl3.0.8-1DEBIAN-CVE-2022-4203
Debian:13openssl3.0.8-1DEBIAN-CVE-2022-4203
Debian:14openssl3.0.8-1DEBIAN-CVE-2022-4203
Rocky Linux:9openssl1:3.0.1-47.el9_1RLSA-2023:0946
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.8UBUNTU-CVE-2022-4203
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.8USN-5844-1

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 3.0.0 – before 3.0.8

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

References