cve.bz

CVE-2026-121475 Openpgp-cert-d: following a symbolic-linked write lock file enables arbitrary file truncation

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 acquiring a write lock, the application opens and truncates the lock file without verifying whether it is a symbolic link (a reference pointing to another file). In environments where a certificate directory is shared among multiple users, a local attacker can replace the write lock file with a symbolic link targeting another file. When a different user subsequently updates the certificate store, the targeted file is truncated, leading to unintended data loss or corruption.

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-121475 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121475?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121475?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-121475 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-0607crates.ioopenpgp-cert-d>=0.0.0-0 <0.3.50.3.5

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security rates this flaw as Low severity because successful exploitation requires an atypical multi-user environment where multiple unprivileged users share access to the same certificate directory. Under standard Red Hat enterprise configurations, certificate stores and user directories are kept isolated per account with restrictive file permissions. Consequently, the preconditions required for a local attacker to manipulate lock files and induce symlink traversal to truncate target files are rarely met in default deployments.

Red Hat's mitigation

Isolate certificate directories so that they are not shared between multiple local users, and enforce restrictive directory permissions.

Set permissions so only the directory owner has read, write, and search permissions on the certificate store:

chmod 700 /path/to/cert-d

Caveat: Restricting permissions prevents other accounts from accessing the certificate store, which will break workflows designed around shared certificate repositories.

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-121475.

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