cve.bz

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

3.8 lowFix available

Low (3.8) in red hat. Fixed in openpgp-cert-d 0.3.5.

On this page
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.

Severity

CVSS 3.1

3.8 low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • openpgp-cert-d (crates.io): fixed in 0.3.5

Ask an AI about this CVE

Show the promptExplain CVE-2026-121476 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121476?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121476?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-121476 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
RUSTSEC-2026-0606crates.ioopenpgp-cert-d>=0.0.0-0 <0.3.50.3.5

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is rated as having a Low impact because exploitation requires a multi-user environment where openpgp certificate directories are shared or writable by untrusted users, which is not the standard or default configuration. In typical Red Hat enterprise environments, certificate stores are isolated within individual user profiles with restricted permissions, preventing local attackers from substituting files with symbolic links. Systems operating with default single-user storage paths or strictly isolated directories are not exposed to this flaw.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10rust-podman-sequoiaFix deferred
Red Hat Enterprise Linux 10rust-sequoia-sqFix deferred
Red Hat Enterprise Linux 9rust-sequoia-sqFix deferred
Red Hat Hardened Imagesrust-podman-sequoiaAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-121476.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON