CVE-2026-121476
JSON

3.8low

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

Severity
3.8low CVSS:3.1 by redhat
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
RUSTSEC-2026-0606

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.

Affected

Product or packageVersionsReported by
rust-podman-sequoiaNot specifiedCVE List
rust-sequoia-sqNot specifiedCVE List
openpgp-cert-d (crates.io)from 0.0.0-0 before 0.3.5RustSec Advisory Database

Classification

What each source says

CVE List

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.

RustSec Advisory Database

When updating a certificate, we open and write to the certificate's file. If the file happened to be a symbolic link, then we open the target of the symbolic link and write to that.

Most users will not be affected by this as certificate directories are not shared between users.

This issue has been fixed by checking that files and directories in the certificate directory are not symbolic links.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-121476 changed 2026-12-01CVE Terms of Use
RustSec Advisory DatabaseRUSTSEC-2026-0606 changed 2026-11-29CC0-1.0
NVDCVE-2026-121476 changed 2026-12-01Public domain