Vulnerability · Published Oct 16, 2024 · Assigned by openssl

CVE-2024-9143Low-level invalid GF(2^m) parameters lead to OOB memory access

Medium 4.3

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 5.8% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

Issue summary: Use of the low-level GF(2^m) elliptic curve APIs with untrusted explicit values for the field polynomial can lead to out-of-bounds memory reads or writes. Impact summary: Out of bound memory writes can lead to an application crash or even a possibility of a remote code execution, however, in all the protocols involving Elliptic Curve Cryptography that we're aware of, either only "named curves" are supported, or, if explicit curve parameters are supported, they specify an X9.62 encoding of binary (GF(2^m)) curves that can't represent problematic input values. Thus the likelihood of existence of a vulnerable application is low. In particular, the X9.62 encoding is used for ECC keys in X.509 certificates, so problematic inputs cannot occur in the context of processing X.509 certificates. Any problematic use-cases would have to be using an "exotic" curve encoding. The affected APIs include: EC_GROUP_new_curve_GF2m(), EC_GROUP_new_from_params(), and various supporting BN_GF2m_*() functions. Applications working with "exotic" explicit binary (GF(2^m)) curve parameters, that make it possible to represent invalid field polynomials with a zero constant term, via the above or similar APIs, may terminate abruptly as a result of reading or writing outside of array bounds. Remote code execution cannot easily be ruled out. The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20openssl3.3.2-r1ALPINE-CVE-2024-9143
Alpine:v3.21openssl3.3.2-r3ALPINE-CVE-2024-9143
Alpine:v3.22openssl3.3.2-r3ALPINE-CVE-2024-9143
Alpine:v3.23openssl3.3.2-r3ALPINE-CVE-2024-9143
Alpine:v3.24openssl3.3.2-r3ALPINE-CVE-2024-9143
Debian:12openssl3.0.15-1~deb12u1DEBIAN-CVE-2024-9143
Debian:13openssl3.3.2-2DEBIAN-CVE-2024-9143
Debian:14openssl3.3.2-2DEBIAN-CVE-2024-9143
Ubuntu:22.04:LTSedk22022.02-3ubuntu0.22.04.4USN-7894-1
Ubuntu:22.04:LTSedk22022.02-3ubuntu0.22.04.4UBUNTU-CVE-2024-9143
Ubuntu:24.04:LTSedk22024.02-2ubuntu0.6USN-7894-1
Ubuntu:24.04:LTSedk22024.02-2ubuntu0.6UBUNTU-CVE-2024-9143
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.19USN-7278-1
Ubuntu:22.04:LTSopenssl3.0.2-0ubuntu1.19UBUNTU-CVE-2024-9143
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.5USN-7278-1
Ubuntu:24.04:LTSopenssl3.0.13-0ubuntu3.5UBUNTU-CVE-2024-9143

Affected products (as reported)

VendorProductVersions
OpenSSL OpenSSL 3.3.0 – before 3.3.33.2.0 – before 3.2.43.1.0 – before 3.1.83.0.0 – before 3.0.161.1.1 – before 1.1.1zb1.0.2 – before 1.0.2zl

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

References