# CVE-2021-43618: Integer overflow in n/a

> Crafted input triggers an integer overflow in GMP, causing a segmentation fault and denial of service on 32-bit platforms.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 Nov 2021
- **Updated:** 14 Oct 2026
- **Also known as:** ALPINE-CVE-2021-43618, ALSA-2023:6661, ALSA-2024:3214, AZL-6444, CLEANSTART-2024-FU19222, CLSA-2024-1711477070, CLSA-2025-1745271805, CLSA-2026-1784645095, DEBIAN-CVE-2021-43618, DLA-2837-1, GHSA-mfg4-w44m-wr4g, JLSEC-2026-1168, MGASA-2021-0544, OESA-2021-1460, RHSA-2023:6661, RHSA-2024:1102, RHSA-2024:1412, RHSA-2024:3214, RLSA-2023:6661, SUSE-SU-2021:3878-1, SUSE-SU-2021:3946-1, UBUNTU-CVE-2021-43618, USN-5672-1, USN-5672-2, openSUSE-SU-2021:1569-1, openSUSE-SU-2021:3946-1, openSUSE-SU-2024:11636-1

## What is CVE-2021-43618?

CVE-2021-43618 is a high-severity vulnerability in Debian Debian Linux, published on 15 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-190 (Integer Overflow or Wraparound)

## Which versions are affected by CVE-2021-43618?

It affects 8 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gmp` | AlmaLinux:8 | All versions | 1:6.1.2-11.el8 |
| `gmp-c++` | AlmaLinux:8 | All versions | 1:6.1.2-11.el8 |
| `gmp-devel` | AlmaLinux:8 | All versions | 1:6.1.2-11.el8 |
| `gmp` | AlmaLinux:9 | All versions | 1:6.2.0-13.el9 |
| `gmp-c++` | AlmaLinux:9 | All versions | 1:6.2.0-13.el9 |
| `gmp-devel` | AlmaLinux:9 | All versions | 1:6.2.0-13.el9 |
| `gmp` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-c++` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-c++-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 1:6.1.2-11.el8 |
| `gmp-c++` | Red Hat:enterprise_linux:9::appstream | All versions | 1:6.2.0-13.el9 |
| `gmp-c++-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 1:6.2.0-13.el9 |
| `gmp-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 1:6.2.0-13.el9 |
| `gmp-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 1:6.2.0-13.el9 |
| `gmp-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 1:6.2.0-13.el9 |
| `gmp` | Red Hat:enterprise_linux:9::baseos | All versions | 1:6.2.0-13.el9 |
| `gmp-c++-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 1:6.2.0-13.el9 |
| `gmp-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 1:6.2.0-13.el9 |
| `gmp-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 1:6.2.0-13.el9 |
| `gmp` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp-c++` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp-c++-debuginfo` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp-debuginfo` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp-debugsource` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp-devel` | Red Hat:rhel_eus:8.6::baseos | All versions | 1:6.1.2-11.el8_6.1 |
| `gmp` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp-c++` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp-c++-debuginfo` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp-debuginfo` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp-debugsource` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp-devel` | Red Hat:rhel_eus:8.8::baseos | All versions | 1:6.1.2-11.el8_8.1 |
| `gmp` | Rocky Linux:9 | All versions | 1:6.2.0-13.el9 |
| `gmp` | SUSE:Linux Enterprise Micro 5.0 | All versions | 6.1.2-4.9.1 |
| `gmp` | SUSE:Linux Enterprise Micro 5.1 | All versions | 6.1.2-4.9.1 |
| `gmp` | SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 6.1.2-4.9.1 |
| `gmp` | SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 6.1.2-4.9.1 |
| `gmp` | SUSE:Linux Enterprise Module for Development Tools 15 SP2 | All versions | 6.1.2-4.9.1 |
| `gmp` | SUSE:Linux Enterprise Module for Development Tools 15 SP3 | All versions | 6.1.2-4.9.1 |

Products: Debian Debian Linux, Gmplib Gmp, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware.

## How do I fix CVE-2021-43618?

Upgrade to a fixed version.

## Is CVE-2021-43618 being exploited?

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

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-43618 and fix it if it is affected.

What it is: CVE-2021-43618 is a high-severity vulnerability in Debian Debian Linux, published on 15 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-43618 in the wild and no public exploit code.

Affected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-43618/ (Markdown: https://insights.sbomify.com/CVE-2021-43618/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-43618
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-43618
- OSV: https://osv.dev/vulnerability/CVE-2021-43618

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-43618/
Summaries are generated and may contain mistakes; the official description above is the record.
