Description
A flaw was found in openpgp-cert-d. When acquiring a write lock, the application opens and truncates the lock file without verifying whether it is a symbolic link (a reference pointing to another file). In environments where a certificate directory is shared among multiple users, a local attacker can replace the write lock file with a symbolic link targeting another file. When a different user subsequently updates the certificate store, the targeted file is truncated, leading to unintended data loss or corruption.
Vendor workaround
Isolate certificate directories so that they are not shared between multiple local users, and enforce restrictive directory permissions.
Set permissions so only the directory owner has read, write, and search permissions on the certificate store:
chmod 700 /path/to/cert-d
Caveat: Restricting permissions prevents other accounts from accessing the certificate store, which will break workflows designed around shared certificate repositories.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Affects other components
- Confidentiality
- None
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-59 Improper Link Resolution Before File Access
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.