# RUSTSEC-2026-0607: Following a symbolic-linked write lock file enables arbitrary file truncation

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

## Tracked as

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

## Affected versions

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

## Description

When getting the write lock, we open and truncate the write lock file.  If the
write lock file happened to be a symbolic link, then we open the target of the
symbolic link and truncate 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 the write lock is not a symbolic
link.

## References

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

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

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