CVE-2026-121476: Following symbolic links when updating certificates enables arbitrary file modification
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/openpgp-cert-dto a version that resolves this vulnerability.Fixed in 0.3.5 - Compensating control
Check that files and directories in the certificate directory are not symbolic links.
Event History
Frequently Asked Questions
Who is most likely to be exposed to this issue?
Most users are not expected to be affected because certificate directories are generally not shared between users. Risk increases where another user can create or replace entries in the certificate directory.
What access would an attacker need to exploit the issue?
An attacker would need to cause a certificate file in the certificate directory to be a symbolic link before a certificate update writes to it. The update could then write to the link target.
What does the available fix change?
The fix checks that files and directories in the certificate directory are not symbolic links before performing the update.