CVE-2026-121475: Following a symbolic-linked write lock file enables arbitrary file truncation
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.
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
When acquiring the write lock, check that the lock file is not a symbolic link before opening and truncating it.
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Users whose certificate directories are shared between multiple users are the primary concern. The description states that most users are not affected because certificate directories are typically not shared between users.
What does an attacker need to exploit it?
An attacker would need to cause the write lock file to be a symbolic link. When the application acquires the write lock, it follows that link and truncates the link target.
How can I mitigate the issue if I cannot immediately update?
Ensure certificate directories are not shared with untrusted users and prevent untrusted users from creating or replacing the write lock file. This removes the opportunity to substitute a symbolic link.
How do I determine whether a system may already be affected?
Inspect the write lock file in the certificate directory and check whether it is a symbolic link. Also review whether the certificate directory has been writable or shared with other users, as this is the condition identified as relevant to exploitation.