CVE-2026-137898: Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling

Published Nov 27, 2026
·
Updated

A flaw was found in pam. When built with libeconf and an unconfigured vendor directory, the pameconf configuration handler misinterprets the search path, causing it to look for configuration files in a relative directory within the current working directory. A local attacker can exploit this by placing crafted environment configuration files in a world-writable location. If an administrator executes a privileged command from that directory, the malicious variables are loaded into the privileged process, resulting in local privilege escalation.

Affected Software

1 affected component
Linux-PAM Linux-PAM

Event History

Nov 27, 2026
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using Linux-PAM built with libeconf and with an unconfigured vendor directory are exposed. Exploitation also depends on a privileged command being run from an attacker-controlled world-writable directory.

2

What does an attacker need to exploit it?

The attacker needs local access sufficient to place crafted environment configuration files in a world-writable location. An administrator must then execute a privileged command while its current working directory is that location.

3

Are default installations affected?

The provided information identifies a specific build and configuration condition: Linux-PAM must be built with libeconf and have an unconfigured vendor directory. It does not state whether that condition is present in default installations.

4

What can be done if patching is not immediately possible?

Avoid executing privileged commands from world-writable or otherwise attacker-controlled directories. Ensure the working directory for administrative privileged commands is a trusted location.

5

How can administrators identify potential exposure?

Check whether Linux-PAM was built with libeconf and whether its vendor directory is unconfigured. Also review administrative practices and automation for privileged commands launched from world-writable directories.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203