RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0606

Following symbolic links when updating certificates enables arbitrary file modification

Reported
Issued
Package
openpgp-cert-d (crates.io)
Type
Vulnerability
Aliases
References
Patched
  • >=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.

Advisory available under CC0-1.0 license.