CVE-2024-47191: n/a
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.
AI Analysis
Technical Summary
CVE-2024-47191 affects the pam_oath.so module within oath-toolkit versions 2.6.7 through 2.6.11, prior to version 2.6.12. The vulnerability arises because the PAM (Pluggable Authentication Module) code, which runs with root privileges, improperly handles access to the usersfile. Specifically, the issue involves the use of the fchown system call on files that may be symlinks. This mishandling allows an attacker with limited privileges to exploit symbolic link (symlink) race conditions or path traversal attacks to change ownership of arbitrary files to root. Since PAM modules operate with elevated privileges during authentication, this flaw enables local users with some privileges to escalate their rights to root. The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), indicating a directory traversal or symlink attack vector. The CVSS 3.1 base score is 7.1, reflecting a high severity with local attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity. No known exploits have been reported in the wild, and no official patches have been linked yet, though the issue is fixed in oath-toolkit 2.6.12. This vulnerability is critical for systems relying on oath-toolkit for authentication, especially those using pam_oath.so for two-factor authentication or other security mechanisms.
Potential Impact
The primary impact of CVE-2024-47191 is local privilege escalation, allowing an attacker with limited access to gain root privileges on affected systems. This can lead to full system compromise, unauthorized access to sensitive data, and the ability to modify or bypass security controls. Since PAM modules are integral to authentication, exploitation can undermine the entire system's security posture. Organizations relying on oath-toolkit for authentication, especially in Linux environments, face risks of confidentiality breaches and integrity violations. Although availability is not directly impacted, the elevated privileges gained can be used to disrupt services or install persistent backdoors. The vulnerability poses a significant threat to servers, critical infrastructure, and any environment where oath-toolkit is deployed, potentially enabling attackers to move laterally or escalate privileges after initial access. The lack of known exploits in the wild suggests limited current exploitation, but the ease of exploitation (low complexity) and high impact make it a serious concern.
Mitigation Recommendations
To mitigate CVE-2024-47191, organizations should immediately upgrade oath-toolkit to version 2.6.12 or later, where the vulnerability is fixed. In environments where immediate upgrade is not feasible, administrators should audit and restrict local user privileges to minimize the risk of exploitation. Implement strict file system permissions and monitor for suspicious symlink creation or unauthorized file ownership changes, especially in directories used by pam_oath.so. Employ file integrity monitoring to detect unexpected changes to authentication-related files. Additionally, consider isolating or sandboxing authentication modules where possible to limit the impact of privilege escalation. Regularly review PAM configurations to ensure minimal exposure and avoid unnecessary use of vulnerable modules. Finally, maintain comprehensive logging and alerting on authentication events and privilege escalations to detect potential exploitation attempts early.
Affected Countries
United States, Germany, United Kingdom, France, Japan, South Korea, India, Canada, Australia, Netherlands, Sweden, Brazil
CVE-2024-47191: n/a
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-47191 affects the pam_oath.so module within oath-toolkit versions 2.6.7 through 2.6.11, prior to version 2.6.12. The vulnerability arises because the PAM (Pluggable Authentication Module) code, which runs with root privileges, improperly handles access to the usersfile. Specifically, the issue involves the use of the fchown system call on files that may be symlinks. This mishandling allows an attacker with limited privileges to exploit symbolic link (symlink) race conditions or path traversal attacks to change ownership of arbitrary files to root. Since PAM modules operate with elevated privileges during authentication, this flaw enables local users with some privileges to escalate their rights to root. The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), indicating a directory traversal or symlink attack vector. The CVSS 3.1 base score is 7.1, reflecting a high severity with local attack vector, low attack complexity, requiring privileges but no user interaction, and impacting confidentiality and integrity. No known exploits have been reported in the wild, and no official patches have been linked yet, though the issue is fixed in oath-toolkit 2.6.12. This vulnerability is critical for systems relying on oath-toolkit for authentication, especially those using pam_oath.so for two-factor authentication or other security mechanisms.
Potential Impact
The primary impact of CVE-2024-47191 is local privilege escalation, allowing an attacker with limited access to gain root privileges on affected systems. This can lead to full system compromise, unauthorized access to sensitive data, and the ability to modify or bypass security controls. Since PAM modules are integral to authentication, exploitation can undermine the entire system's security posture. Organizations relying on oath-toolkit for authentication, especially in Linux environments, face risks of confidentiality breaches and integrity violations. Although availability is not directly impacted, the elevated privileges gained can be used to disrupt services or install persistent backdoors. The vulnerability poses a significant threat to servers, critical infrastructure, and any environment where oath-toolkit is deployed, potentially enabling attackers to move laterally or escalate privileges after initial access. The lack of known exploits in the wild suggests limited current exploitation, but the ease of exploitation (low complexity) and high impact make it a serious concern.
Mitigation Recommendations
To mitigate CVE-2024-47191, organizations should immediately upgrade oath-toolkit to version 2.6.12 or later, where the vulnerability is fixed. In environments where immediate upgrade is not feasible, administrators should audit and restrict local user privileges to minimize the risk of exploitation. Implement strict file system permissions and monitor for suspicious symlink creation or unauthorized file ownership changes, especially in directories used by pam_oath.so. Employ file integrity monitoring to detect unexpected changes to authentication-related files. Additionally, consider isolating or sandboxing authentication modules where possible to limit the impact of privilege escalation. Regularly review PAM configurations to ensure minimal exposure and avoid unnecessary use of vulnerable modules. Finally, maintain comprehensive logging and alerting on authentication events and privilege escalations to detect potential exploitation attempts early.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2024-09-20T00:00:00.000Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6d08b7ef31ef0b56d57b
Added to database: 2/25/2026, 9:43:36 PM
Last enriched: 2/26/2026, 8:47:36 AM
Last updated: 4/12/2026, 3:46:08 PM
Views: 14
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.