CVE-2026-121475 PUBLISHED

Openpgp-cert-d: following a symbolic-linked write lock file enables arbitrary file truncation

Assigner: redhat
Reserved: 03.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
CVSS Score: 3.8

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 9
Versions Default: affected
Vendor Red Hat
Product Red Hat Hardened Images
Versions Default: affected

Workarounds

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.

Credits

  • Red Hat would like to thank izouss for reporting this issue.

References

Problem Types

  • Improper Link Resolution Before File Access CWE