Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Low 3.8CVE-2026-121476

Openpgp-cert-d: following symbolic links when updating certificates enables arbitrary file modification

Published 01/12/2026 · Updated 01/12/2026 · Red Hat Enterprise Linux 10

Description

A flaw was found in openpgp-cert-d. When updating a certificate, the application opens the certificate file for writing without checking for symbolic links (symlinks). In environments where a certificate directory is shared between users, a local attacker could replace a certificate file with a symlink pointing to an arbitrary file. This can lead to unauthorized file modification, causing another user updating the certificate store to inadvertently overwrite or alter files of the attacker's choice.

Vendor workaround

Ensure certificate directories are not shared across multiple users and restrict directory permissions to the owning user.

To restrict permissions on the default user certificate directory:

```

chmod 700 ~/.local/share/pgpkeys

```

If using a custom directory defined via `$PGP_CERT_D`, apply the same restriction:

```

chmod 700 /path/to/cert-d

```

Caveat: Collaborative environments that depend on multiple local users modifying a single shared certificate store will be disrupted; each user must maintain an isolated certificate store.

Original text from the vendor's CVE record.

Affected products and versions

Red Hat Red Hat Enterprise Linux 10
Red Hat Red Hat Enterprise Linux 10
Red Hat Red Hat Enterprise Linux 9
Red Hat Red Hat Hardened Images

CVSS vector, explained

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N

Attack vector
Local
Attack complexity
Low
Privileges required
Regular user
User interaction
Not required
Scope
Affects other components
Confidentiality
None
Integrity
Low impact
Availability
None

Weakness type (CWE)

  • CWE-59 Improper Link Resolution Before File Access

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.