---
title: 'USN-7412-3: GnuPG vulnerability | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-7412-3
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-7412-3

---

# USN-7412-3: GnuPG vulnerability

Publication date

9 December 2025

Overview

GnuPG could be made to corrupt a keyring.

Releases

[18.04 LTS](https://ubuntu.com/security/notices?release=bionic)
[16.04 LTS](https://ubuntu.com/security/notices?release=xenial)

---

Open side navigation

## Packages

* [gnupg2](https://ubuntu.com/security/cves?package=gnupg2) - GNU privacy guard - a free PGP replacement

## Details

USN-7412-1 fixed a vulnerability in GnuPG. This update provides the
corresponding update for Ubuntu 16.04 LTS and Ubuntu 18.04 LTS.

Original advisory details:

It was discovered that GnuPG incorrectly handled importing keys with
certain crafted subkey data. If a user or automated system were tricked
into importing a specially crafted key, a remote attacker may prevent
users from importing other keys in the future.

## Update instructions

In general, a standard system update will make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

The problem can be corrected by updating your system to the following package versions:

| Ubuntu Release | Package Version |
| --- | --- |
| 18.04 LTS bionic | [gnupg](https://launchpad.net/ubuntu/+source/gnupg2) –  2.2.4-1ubuntu1.6+esm1   Ubuntu Pro | | |
| [gnupg2](https://launchpad.net/ubuntu/+source/gnupg2) –  2.2.4-1ubuntu1.6+esm1   Ubuntu Pro | | |
| [gpg](https://launchpad.net/ubuntu/+source/gnupg2) –  2.2.4-1ubuntu1.6+esm1   Ubuntu Pro | | |
| 16.04 LTS xenial | [gnupg2](https://launchpad.net/ubuntu/+source/gnupg2) –  2.1.11-6ubuntu2.1+esm2   Ubuntu Pro | | |
| [gpgv2](https://launchpad.net/ubuntu/+source/gnupg2) –  2.1.11-6ubuntu2.1+esm2   Ubuntu Pro | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2025-30258](https://ubuntu.com/security/CVE-2025-30258)

## Related notices

* [USN-7412-1](https://ubuntu.com/security/notices/USN-7412-1)
