CVE-2024-47191
High · 7.1CVSS
7.1
EPSS
0.3%
Published
Oct 9, 2024
CISA due date
—
Cloudanix analysis
A flaw in software used for two-factor login could let someone who already has an account on the computer take full control of it.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Library
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The pam_oath.so module mishandles access to the usersfile by performing fchown operations on what may be a symbolic link while running with root privileges in PAM context, allowing a local attacker to change ownership of arbitrary files.
Why it matters to the business
Attackers with local access could gain root privileges, leading to complete system compromise and potential data breaches or service disruption on systems relying on oath-toolkit for authentication.
How an attack unfolds
A local attacker creates a symbolic link pointing to a target file owned by root, configures the PAM module to use a usersfile path that resolves to the link, and triggers authentication which causes the module to chown the target file, potentially allowing further exploitation to root.
How to fix it
Upgrade oath-toolkit to version 2.6.12 or apply the fix from commit 3235a52f6b87cd1c5da6508f421ac261f5e33a70. Ensure pam_oath.so is updated on all affected systems.
How to confirm the fix worked
Verify the installed version of oath-toolkit is 2.6.12 or later, and test PAM authentication flows with oath to confirm no symlink traversal occurs.
Typical attack path
- Identify a target file for ownership change
- Create symlink from usersfile path to target
- Trigger PAM authentication event
- Exploit resulting file ownership change for privilege escalation
How to detect it
Review system logs for unexpected chown operations or PAM authentication events around the time of suspected compromise; examine file ownership anomalies on critical system files.
What your security team should do
- Immediately upgrade oath-toolkit to the fixed version
- Audit systems using oath-toolkit for PAM configurations
- Monitor for unauthorized file ownership changes
The record
pam_oath.so in oath-toolkit 2.6.7 through 2.6.11 before 2.6.12 allows root privilege escalation because, in the context of PAM code running as root, it mishandles usersfile access, such as by calling fchown in the presence of a symlink.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | oath-toolkit | 0 | 2.6.7-3.1+deb12u1 |
| Debian:13 | oath-toolkit | 0 | 2.6.12-1 |
| Debian:14 | oath-toolkit | 0 | 2.6.12-1 |
| Mageia:9 | oath-toolkit | 0 | 2.6.7-1.1.mga9 |
| Ubuntu:22.04:LTS | oath-toolkit | 0 | 2.6.7-3ubuntu0.1 |
| Ubuntu:24.04:LTS | oath-toolkit | 0 | 2.6.11-2.1ubuntu0.1 |
| Ubuntu:24.10 | oath-toolkit | 0 | 2.6.11-3ubuntu1 |
| Ubuntu:25.04 | oath-toolkit | 0 | No fix |
| Ubuntu:25.10 | oath-toolkit | 0 | No fix |
| openSUSE:Tumbleweed | oath-toolkit | 0 | 2.6.11.12-1.1 |
Related vulnerabilities
- CVE-2026-81163 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… CWE-22
- CVE-2026-112049 Vita3K before build 4187 contains a path traversal (zip slip) vulnerability in… CWE-22
- CVE-2026-112005 WhoDB 0.104.0 before 0.135.0 contains a path traversal vulnerability that allows remote… CWE-22
- CVE-2026-61702 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-22
- CVE-2026-104871 The Angular SSR is a server-rise rendering tool for Angular applications. CWE-22
- CVE-2026-102991 Mako is a template library written in Python. CWE-22
- CVE-2026-101894 The decompress package for Node.js extracts archives. CWE-22
- CVE-2026-100689 GitPython before 3.1.62 does not validate the `path` field read from an untrusted… CWE-22