CVE-2026-41989

Libgcrypt: Libgcrypt: Denial of Service and buffer overflow via crafted ECDH ciphertext

Published Apr 23, 2026 CVSS 3.1 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
Libgcrypt before 1.12.2 sometimes allows a heap-based buffer overflow and denial of service via crafted ECDH ciphertext to gcry_pk_decrypt.

Analysis

AI-generated

Technical impact

A crafted ECDH ciphertext can cause Libgcrypt to overflow a heap buffer during decryption, which may crash the process and deny service. The vulnerability is rooted in improper handling of ciphertext size and memory allocation, as reflected by the CWE identifiers for buffer over‑read and overflow.

Affected Systems

The flaw exists in all releases of Libgcrypt older than 1.12.2. Any system that incorporates Libgcrypt before that version—such as GnuPG and other cryptographic applications—may be affected unless the library has been upgraded or patched.

Risk and Exploitability

The CVSS score of 6.7 indicates a medium severity, while the EPSS score of less than 1% suggests that exploitation is currently unlikely. The vulnerability is not listed in CISA’s KEV catalog, reducing the likelihood of widespread attacks. However, the attack vector is inferred to require delivery of a crafted ciphertext to the library, meaning that any application or service that feeds external data into gcry_pk_decrypt is potentially at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Libgcrypt to version 1.12.2 or later to remove the vulnerable code.
  • Apply any vendor‑issued security patches that address this overflow.
  • If a quick upgrade is not feasible, add application‑level input validation to reject ECDH ciphertexts that exceed the expected size range and isolate cryptographic operations in a restricted or sandboxed environment.

Generated by OpenCVE AI on April 28, 2026 at 07:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6294-1 libgcrypt20 security update
Ubuntu USN Ubuntu USN USN-8319-1 Libgcrypt vulnerabilities
History
Type Values Removed Values Added
Title Libgcrypt: Libgcrypt: Denial of Service and buffer overflow via crafted ECDH ciphertext
Weaknesses CWE-131
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Libgcrypt before 1.12.2 sometimes allows a heap-based buffer overflow and denial of service via crafted ECDH ciphertext to gcry_pk_decrypt.
First Time appeared Gnupg
Gnupg libgcrypt
Weaknesses CWE-787
CPEs cpe:2.3:a:gnupg:libgcrypt:*:*:*:*:*:*:*:*
Vendors & Products Gnupg
Gnupg libgcrypt
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 10, 2026, 12:45 PM
Reserved
Apr 23, 2026, 4:30 AM
Status
Modified
Published
Apr 23, 2026, 5:16 AM
Modified
Nov 10, 2026, 1:19 PM
Severity
Moderate
Public date
Apr 23, 2026, 4:30 AM