CVE-2024-47191
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | oath-toolkit | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | oath-toolkit | Will not fix The libpam-oath binary package is in universe Introduced by 60d9902b5c20f27e70f8e9c816bfdc0467567e1a (oath-toolkit-2.6.7) | UBUNTU-CVE-2024-47191 | |
| Ubuntu 24.04 | oath-toolkit | Fixed | 2.6.11-2.1ubuntu0.1 | UBUNTU-CVE-2024-47191 |
| Ubuntu 22.04 | oath-toolkit | Fixed | 2.6.7-3ubuntu0.1 | UBUNTU-CVE-2024-47191 |
| Ubuntu 20.04 | oath-toolkit | Not affected vulnerable_code_not_present | ||
| Debian 14 | oath-toolkit | Fixed | 2.6.12-1 | DEBIAN-CVE-2024-47191 |
| Debian 13 | oath-toolkit | Fixed | 2.6.12-1 | DEBIAN-CVE-2024-47191 |
| Debian 12 | oath-toolkit | Fixed | 2.6.7-3.1+deb12u1 | DEBIAN-CVE-2024-47191 |
References
- https://gitlab.com/oath-toolkit/oath-toolkit/-/issues/43
- https://www.openwall.com/lists/oss-security/2024/10/04/2
- https://security.opensuse.org/2024/10/04/oath-toolkit-vulnerability.html
- https://www.nongnu.org/oath-toolkit/security/CVE-2024-47191
- https://gitlab.com/oath-toolkit/oath-toolkit/-/commit/60d9902b5c20f27e70f8e9c816bfdc0467567e1a
- https://gitlab.com/oath-toolkit/oath-toolkit/-/commit/3235a52f6b87cd1c5da6508f421ac261f5e33a70
- https://gitlab.com/oath-toolkit/oath-toolkit/-/commit/3271139989fde35ab0163b558fc29e80c3a280e5
- https://gitlab.com/oath-toolkit/oath-toolkit/-/commit/95ef255e6a401949ce3f67609bf8aac2029db418
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.