Cloudanix VulnDB

CVE-2024-10963

High · 7.4

CVSS

7.4

EPSS

0.8%

Published

Nov 7, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A configuration parsing error in a common Linux access control tool can let outsiders slip past rules meant to block them, potentially allowing unwanted entry to servers or services.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Privilege Gain
Component
Library
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

pam_access incorrectly interprets certain configuration rules as hostnames instead of intended access controls, allowing unauthorized network entities to satisfy hostname-based allow rules and bypass terminal or service access restrictions.

Why it matters to the business

Systems relying on pam_access for access control may grant entry to unauthorized users or services, increasing the risk of lateral movement, data exposure, or service misuse.

How an attack unfolds

An attacker initiates a connection from a controlled IP or hostname that matches a misparsed rule; pam_access evaluates the rule as a trusted hostname rather than a deny or conditional entry, resulting in successful authentication or session establishment where access should have been blocked.

How to fix it

Review and rewrite pam_access configuration files to ensure rules follow documented syntax and are not ambiguous; test rules in a non-production environment; apply any upstream pam updates that address rule parsing; consider replacing hostname-based rules with explicit IP or user-based controls where feasible.

How to confirm the fix worked

Audit pam_access.conf for rules that could be parsed as hostnames; use pam testing utilities or login attempts from controlled sources to verify that only intended entities are permitted; confirm updated packages are installed via package manager queries.

Typical attack path

  1. Identify a target system that uses pam_access for login or service restrictions
  2. Craft a connection attempt (SSH, console, or service) using an IP or apparent hostname that aligns with the misinterpreted rule
  3. Trigger pam_access evaluation during authentication
  4. Gain access due to the rule being treated as an allowed hostname match

How to detect it

Review authentication logs for successful logins or sessions from unexpected sources that should have been denied by pam_access rules; correlate with pam configuration changes or rule syntax anomalies.

What your security team should do

  • Immediately audit all pam_access configurations for ambiguous rules
  • Prioritize systems with network-exposed services or multi-user terminals
  • Implement compensating controls such as host-based firewalls or additional authentication layers
  • Monitor for future pam updates and schedule testing

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 pam 0 1.3.1-36.el8_10
AlmaLinux:8 pam-devel 0 1.3.1-36.el8_10
AlmaLinux:9 pam 0 1.5.1-22.el9_5
AlmaLinux:9 pam-devel 0 1.5.1-22.el9_5
AlmaLinux:9 pam-docs 0 1.5.1-22.el9_5
Debian:11 pam 0 No fix
Debian:12 pam 0 No fix
Debian:13 pam 0 No fix
Debian:13 pam 0 1.7.0-5
Red Hat:enterprise_linux:8::baseos pam 0 0:1.3.1-36.el8_10
Red Hat:enterprise_linux:8::baseos pam-debuginfo 0 0:1.3.1-36.el8_10
Red Hat:enterprise_linux:8::baseos pam-debugsource 0 0:1.3.1-36.el8_10
Red Hat:enterprise_linux:8::baseos pam-devel 0 0:1.3.1-36.el8_10
Red Hat:enterprise_linux:9::appstream pam 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::appstream pam-debuginfo 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::appstream pam-debugsource 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::appstream pam-devel 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::appstream pam-docs 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::baseos pam 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::baseos pam-debuginfo 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::baseos pam-debugsource 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::baseos pam-devel 0 0:1.5.1-22.el9_5
Red Hat:enterprise_linux:9::baseos pam-docs 0 0:1.5.1-22.el9_5
Red Hat:rhel_eus:9.4::appstream pam 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::appstream pam-debuginfo 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::appstream pam-debugsource 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::appstream pam-devel 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::appstream pam-docs 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::baseos pam 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::baseos pam-debuginfo 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::baseos pam-debugsource 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::baseos pam-devel 0 0:1.5.1-23.el9_4
Red Hat:rhel_eus:9.4::baseos pam-docs 0 0:1.5.1-23.el9_4
Rocky Linux:8 pam 0 0:1.3.1-36.el8_10
Rocky Linux:9 pam 0 0:1.5.1-22.el9_5
Ubuntu:24.04:LTS pam 0 No fix
Ubuntu:24.04:LTS pam 0 1.5.3-5ubuntu5.5
Ubuntu:24.10 pam 0 No fix
Ubuntu:25.04 pam 0 1.5.3-7ubuntu4.4
openSUSE:Tumbleweed pam 0 1.7.0-2.1

Related vulnerabilities