CVE Vulnerabilities

CVE-2019-12209

Improper Link Resolution Before File Access ('Link Following')

Published: Jun 04, 2019 | Modified: Nov 07, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

Yubico pam-u2f 1.0.7 attempts parsing of the configured authfile (default $HOME/.config/Yubico/u2f_keys) as root (unless openasuser was enabled), and does not properly verify that the path lacks symlinks pointing to other files on the system owned by root. If the debug option is enabled in the PAM configuration, part of the file contents of a symlink target will be logged, possibly revealing sensitive information.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Pam-u2f Yubico 1.0.7 (including) 1.0.7 (including)
Pam-u2f Ubuntu bionic *
Pam-u2f Ubuntu cosmic *
Pam-u2f Ubuntu disco *
Pam-u2f Ubuntu esm-apps/bionic *
Pam-u2f Ubuntu esm-apps/xenial *
Pam-u2f Ubuntu trusty *
Pam-u2f Ubuntu upstream *
Pam-u2f Ubuntu xenial *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References