# RUSTSEC-2026-0606: Following symbolic links when updating certificates enables arbitrary file modification

- Database: RustSec
- Published: 2026-11-27
- Modified: 2026-11-29

## Tracked as

- [CVE-2026-121476](https://cve.now/CVE-2026-121476.md): Red Hat arbitrary file write via symlink in openpgp-cert-d

## Affected versions

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

## Description

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

- https://crates.io/crates/openpgp-cert-d
- https://rustsec.org/advisories/RUSTSEC-2026-0606.html
- https://gitlab.com/sequoia-pgp/pgp-cert-d/-/blob/v0.3.5/openpgp-cert-d/NEWS

Page: https://cve.now/RUSTSEC-2026-0606

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
