CVE-2026-121477: Following symbolic links when reading certificates enables information disclosure
When reading a certificate, we open and read the certificate's file. If the file happened to be a symbolic link, then we open the target of the symbolic link and read 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
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Users whose certificate directories are shared between users are the main concern. The advisory indicates that most users are not affected because certificate directories are typically not shared.
What must an attacker do to exploit the issue?
An attacker would need to cause a certificate file in the certificate directory to be a symbolic link. When the certificate is read, the software follows that link and reads its target, which can disclose information.
What can be done if updating is not immediately possible?
Ensure certificate directories are not shared between users and do not contain symbolic links, including symbolic links in directories within the certificate directory. The fix prevents this behavior by checking that files and directories there are not symbolic links.