CVE-2026-121476

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

Published Dec 1, 2026 CVSS 3.1 · 3.8 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw has been identified in openpgp-cert-d. When a user updates a certificate, the file is opened for writing without verifying that the path does not resolve to a symbolic link. In an environment where a certificate directory is shared among users, a local attacker can replace a real certificate file with a symlink that points to any target file on the system. When another user subsequently updates the certificate store, the openpgp-cert-d process will follow the symlink and overwrite the target file, resulting in arbitrary file modification. The impact is local but can affect any user who shares the same certificate store, potentially altering configuration files, executables, or other sensitive data.

Affected Systems

The vulnerability affects Red Hat Enterprise Linux 9 and 10, and Red Hat Hardened Images that run the openpgp-cert-d service. The CNA data does not specify particular product versions, so the issue applies to any installation using the bundled openpgp-cert-d component before a patch is applied.

Risk and Exploitability

The CVSS score of 3.8 classifies the flaw as low severity, reflecting that exploitation requires a local attacker with write access to a shared certificate directory. The EPSS score is 0.00136%, indicating a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local user who can introduce a symlink into the certificate directory; upon another user updating the store, the malicious symlink causes the tool to overwrite an arbitrary file. As this is a local privilege escalation scenario, the risk is moderate for environments that share certificate stores across users.

Remediation

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.


OpenCVE Recommended Actions

  • Apply the vendor‑released patch or upgrade openpgp-cert-d to the latest version that includes the symlink validation fix.
  • Restrict the certificate directory permissions to the owning user – for example, run "chmod 700 ~/.local/share/pgpkeys" or apply the same restriction to the directory specified by $PGP_CERT_D.
  • Ensure that the certificate directory is not shared between multiple local users; each user should maintain an isolated store to prevent cross‑user modification.

Generated by OpenCVE AI on December 1, 2026 at 22:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Vendors & Products Red Hat
Red Hat enterprise Linux
Redhat hardened Images
Type Values Removed Values Added
Title openpgp-cert-d: Following symbolic links when updating certificates enables arbitrary file modification Openpgp-cert-d: following symbolic links when updating certificates enables arbitrary file modification
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Type Values Removed Values Added
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.
Title openpgp-cert-d: Following symbolic links when updating certificates enables arbitrary file modification
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Low

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 1, 2026, 3:18 AM
Reserved
Nov 3, 2026, 1:36 PM
Status
Awaiting Analysis
Published
Dec 1, 2026, 4:17 AM
Modified
Dec 1, 2026, 4:17 AM
Severity
Low
Public date
Nov 30, 2026, 2:57 PM