Symlink Attack Affecting oath_toolkit package, versions [2.6.7,2.6.12)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.34% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OATHTOOLKIT-8172652
  • published9 Oct 2024
  • disclosed9 Oct 2024
  • creditFabian Vogt

Introduced: 9 Oct 2024

CVE-2024-47191  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade oath_toolkit to version 2.6.12 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack in usersfile.c in the PAM module, which does expands ${HOME} and ${USER} as path elements when processing the OTP state file, AKA usersfile, as root. This allows an attacker to elevate privileges by exploiting the use of fchown in the presence of a symlink.

CVSS Base Scores

version 4.0
version 3.1