CVEfocus › CVE database › CVE-2021-43618

CVE-2021-43618

EPSS 4.5% (higher than 92% of CVEs)Published 2021-11-15Updated 2026-10-14Assigner: mitre

GNU Multiple Precision Arithmetic Library (GMP) through 6.2.1 has an mpz/inp_raw.c integer overflow and resultant buffer overflow via crafted input, leading to a segmentation fault on 32-bit platforms.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

31Fixed
2Fix pending
6Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04gmpNot affected
vulnerable_code_not_present
Ubuntu 20.04gmpFixed2:6.2.0+dfsg-4ubuntu0.1UBUNTU-CVE-2021-43618
Ubuntu 18.04gmpFixed2:6.1.2+dfsg-2ubuntu0.1UBUNTU-CVE-2021-43618
Ubuntu 16.04gmpFix pending2:6.1.0+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-43618
Ubuntu 14.04gmpFix pending2:5.1.3+dfsg-1ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-43618
Debian 14gmpFixed2:6.2.1+dfsg-3DEBIAN-CVE-2021-43618
Debian 13gmpFixed2:6.2.1+dfsg-3DEBIAN-CVE-2021-43618
Debian 12gmpFixed2:6.2.1+dfsg-3DEBIAN-CVE-2021-43618
Red Hat Enterprise Linux 9gmpFixed1:6.2.0-13.el9RHSA-2023:6661
Red Hat Enterprise Linux 9gmp-c++Fixed1:6.2.0-13.el9RHSA-2023:6661
Red Hat Enterprise Linux 9gmp-develFixed1:6.2.0-13.el9RHSA-2023:6661
Red Hat Enterprise Linux 8gmpFixed1:6.1.2-11.el8RHSA-2024:3214
Red Hat Enterprise Linux 8gmp-c++Fixed1:6.1.2-11.el8RHSA-2024:3214
Red Hat Enterprise Linux 8gmp-develFixed1:6.1.2-11.el8RHSA-2024:3214
Red Hat Enterprise Linux 7gmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7gmp-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7gmp-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 6gmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6gmp-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6gmp-staticWill not fix
Out of support scope
AlmaLinux 9gmpFixed1:6.2.0-13.el9ALSA-2023:6661
AlmaLinux 9gmp-c++Fixed1:6.2.0-13.el9ALSA-2023:6661
AlmaLinux 9gmp-develFixed1:6.2.0-13.el9ALSA-2023:6661
AlmaLinux 8gmpFixed1:6.1.2-11.el8ALSA-2024:3214
AlmaLinux 8gmp-c++Fixed1:6.1.2-11.el8ALSA-2024:3214
AlmaLinux 8gmp-develFixed1:6.1.2-11.el8ALSA-2024:3214
Rocky Linux 9gmpFixed1:6.2.0-13.el9RLSA-2023:6661
Alpine Linux 3.24gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.23gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.22gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.21gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.20gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.19gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.18gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.17gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.16gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.15gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.14gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.13gmpFixed6.2.1-r1ALPINE-CVE-2021-43618
Alpine Linux 3.12gmpFixed6.2.1-r1ALPINE-CVE-2021-43618

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.