CVE-2024-10963Pam: improper hostname interpretation in pam_access leads to access control bypass
A flaw was found in pam_access, where certain rules in its configuration file are mistakenly treated as hostnames. This vulnerability allows attackers to trick the system by pretending to be a trusted hostname, gaining unauthorized access. This issue poses a risk for systems that rely on this feature to control who can access certain services or terminals.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, 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 24.04 | pam | Fixed | 1.5.3-5ubuntu5.5 | UBUNTU-CVE-2024-10963 |
| Ubuntu 22.04 | pam | Not affected vulnerable_code_not_present | ||
| Debian 14 | pam | Fixed | 1.7.0-5 | DEBIAN-CVE-2024-10963 |
| Debian 13 | pam | Fixed | 1.7.0-5 | DEBIAN-CVE-2024-10963 |
| Red Hat Enterprise Linux 10 | pam | Not affected | ||
| Red Hat Enterprise Linux 10 | pam-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | pam-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | pam | Fixed | 0:1.5.1-22.el9_5 | RHSA-2024:10244 |
| Red Hat Enterprise Linux 9 | pam-devel | Fixed | 0:1.5.1-22.el9_5 | RHSA-2024:10244 |
| Red Hat Enterprise Linux 9 | pam-docs | Fixed | 0:1.5.1-22.el9_5 | RHSA-2024:10244 |
| Red Hat Enterprise Linux 8 | pam | Fixed | 0:1.3.1-36.el8_10 | RHSA-2024:10379 |
| Red Hat Enterprise Linux 8 | pam-devel | Fixed | 0:1.3.1-36.el8_10 | RHSA-2024:10379 |
| Red Hat Enterprise Linux 7 | pam | Not affected | ||
| Red Hat Enterprise Linux 7 | pam-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | pam | Not affected | ||
| Red Hat Enterprise Linux 6 | pam-devel | Not affected | ||
| AlmaLinux 9 | pam | Fixed | 1.5.1-22.el9_5 | ALSA-2024:10244 |
| AlmaLinux 9 | pam-devel | Fixed | 1.5.1-22.el9_5 | ALSA-2024:10244 |
| AlmaLinux 9 | pam-docs | Fixed | 1.5.1-22.el9_5 | ALSA-2024:10244 |
| AlmaLinux 8 | pam | Fixed | 1.3.1-36.el8_10 | ALSA-2024:10379 |
| AlmaLinux 8 | pam-devel | Fixed | 1.3.1-36.el8_10 | ALSA-2024:10379 |
| Rocky Linux 9 | pam | Fixed | 0:1.5.1-22.el9_5 | RLSA-2024:10244 |
| Rocky Linux 8 | pam | Fixed | 0:1.3.1-36.el8_10 | RLSA-2024:10379 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pam: affected: 1.3.1, 1.5.1, 1.6.0 to before 1.7.0; fixed in
1.7.0 - Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.4 Extended Update Support
- Red Hat OpenShift Container Platform 4.16
- Red Hat OpenShift Container Platform 4.17
- Red Hat OpenShift Container Platform 4.18
Workaround: To reduce the risk, administrators should ensure that no DNS hostname matches local TTY or service names used in pam_access. Additionally, implement DNSSEC to prevent spoofing of DNS responses. For stronger protection, consider reconfiguring pam_access to only accept fully qualified domain names (FQDNs) in access.conf
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:10232 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:10244 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:10379 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:10518 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:10528 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:10852 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:10232
- https://access.redhat.com/errata/RHSA-2024:10244
- https://access.redhat.com/errata/RHSA-2024:10379
- https://access.redhat.com/errata/RHSA-2024:10518
- https://access.redhat.com/errata/RHSA-2024:10528
- https://access.redhat.com/errata/RHSA-2024:10852
- https://access.redhat.com/errata/RHSA-2024:6122
- https://access.redhat.com/security/cve/CVE-2024-10963
- https://bugzilla.redhat.com/show_bug.cgi?id=2324291
- https://github.com/linux-pam/linux-pam/issues/834
- https://github.com/linux-pam/linux-pam/pull/835
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.