# CVE-2026-129975: Gpgme: gpgme: double free in read_status() via crafted signature

> Crafted GPG input can trigger a double free in gpgme, enabling code execution or crashes in applications using it.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** Yes
- **Published:** 23 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** ALPINE-CVE-2026-129975, DEBIAN-CVE-2026-129975, DHI-5mf3-6evj-xavx-q66t, DLA-4924-1, DSA-6646-1, GHSA-278w-vg7x-x376, RHSA-2026:102781, UBUNTU-CVE-2026-129975, openSUSE-SU-2026:12650-1

## What is CVE-2026-129975?

CVE-2026-129975 is a high-severity memory corruption vulnerability in gpgme, published on 23 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in gpgme. When processing crafted input, an early return following memory reallocation can leave internal buffer pointers referencing previously freed memory, resulting in a double-free condition during cleanup. A remote attacker could exploit this vulnerability to corrupt process memory, potentially leading to arbitrary code execution or a Denial of Service (DoS) crash.

Weakness: CWE-415 (Double Free)

## Which versions are affected by CVE-2026-129975?

It affects 3 products.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `gpgme` | Red Hat:hummingbird:1 | `pkg:rpm/redhat/gpgme` | All versions | 0:2.3.1-1.hum1 |
| `gpgme-devel` | Red Hat:hummingbird:1 | `pkg:rpm/redhat/gpgme-devel` | All versions | 0:2.3.1-1.hum1 |
| `gpgme` | openSUSE:Tumbleweed | `pkg:rpm/opensuse/gpgme` | All versions | 2.3.1-1.1 |

Products: Red Hat Enterprise Linux, Red Hat Openshift, Redhat Rhel Els.

CPE match criteria (CPE 2.3):

- `cpe:2.3:o:redhat:enterprise_linux:10:*:*:*:*:*:*:*`
- `cpe:2.3:o:redhat:enterprise_linux:8:*:*:*:*:*:*:*`
- `cpe:2.3:o:redhat:enterprise_linux:9:*:*:*:*:*:*:*`
- `cpe:2.3:a:redhat:openshift:4:*:*:*:*:*:*:*`
- `cpe:2.3:a:redhat:openshift:5:*:*:*:*:*:*:*`
- `cpe:2.3:o:redhat:rhel_els:7:*:*:*:*:*:*:*`

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| openSUSE | Tumbleweed | fixed | `gpgme` | 2.3.1-1.1 |
| Red Hat | hummingbird:1 | fixed | `gpgme`, `gpgme-devel` | 2.3.1-1.hum1 |

## How do I fix CVE-2026-129975?

Update gpgme from your Linux distribution or vendor: the fixed builds are listed above.

## Is CVE-2026-129975 being exploited?

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

Public exploit code:

- Is this install actually exposed to the GPGME double-free (CVE-2026-129975)? A zero-dependency TypeScript CLI for operators and CI. It checks the three live conditions together: the installed GPGME version against the 20/11/2026 fixed builds, the linkage type, and the exposure context you declare. (github_poc): https://github.com/techdevfun/gpgme2shell
- GPGME <2.3.1: realloced status buffer assigned to context only at end of reader — crafted long user ID returns early leaving stale pointer, double free at cleanup. Verbatim placement from 14499348^ vs fix with ASan: double-free on vuln, clean on fixed (github_poc): https://github.com/googlesky/CVE-2026-129975

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-129975 and fix it if it is affected.

What it is: CVE-2026-129975 is a high-severity memory corruption vulnerability in gpgme, published on 23 Nov 2026. 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-2026-129975 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected product: gpgme. 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-2026-129975/ (Markdown: https://insights.sbomify.com/CVE-2026-129975/index.md)
```

## Sources

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

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