3.8low
Openpgp-cert-d: following symbolic links when updating certificates enables arbitrary file modification
- Severity
- 3.8low CVSS:3.1 by redhat
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- RUSTSEC-2026-0606
Description
A flaw was found in openpgp-cert-d. When updating a certificate, the application opens the certificate file for writing without checking for symbolic links (symlinks). In environments where a certificate directory is shared between users, a local attacker could replace a certificate file with a symlink pointing to an arbitrary file. This can lead to unauthorized file modification, causing another user updating the certificate store to inadvertently overwrite or alter files of the attacker's choice.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rust-podman-sequoia | Not specified | CVE List |
| rust-sequoia-sq | Not specified | CVE List |
| openpgp-cert-d (crates.io) | from 0.0.0-0 before 0.3.5 | RustSec Advisory Database |
Classification
What each source says
CVE List
A flaw was found in openpgp-cert-d. When updating a certificate, the application opens the certificate file for writing without checking for symbolic links (symlinks). In environments where a certificate directory is shared between users, a local attacker could replace a certificate file with a symlink pointing to an arbitrary file. This can lead to unauthorized file modification, causing another user updating the certificate store to inadvertently overwrite or alter files of the attacker's choice.
RustSec Advisory Database
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-121476 changed 2026-12-01 | CVE Terms of Use |
| RustSec Advisory Database | RUSTSEC-2026-0606 changed 2026-11-29 | CC0-1.0 |
| NVD | CVE-2026-121476 changed 2026-12-01 | Public domain |