Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27894: CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in LDAPAccountManager lam

0
High
VulnerabilityCVE-2026-27894cvecve-2026-27894cwe-98
Published: Tue Mar 17 2026 (03/17/2026, 23:48:06 UTC)
Source: CVE Database V5
Vendor/Project: LDAPAccountManager
Product: lam

Description

LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, groups, DHCP settings) stored in an LDAP directory. Prior to version 9.5, a local file inclusion was detected in the PDF export that allows users to include local PHP files and this way execute code. In combination with GHSA-88hf-2cjm-m9g8 this allows to execute arbitrary code. Users need to login to LAM to exploit this vulnerability. Version 9.5 fixes the issue. Although upgrading is recommended, a workaround would be to make /var/lib/ldap-account-manager/config read-only for the web-server user and delete the PDF profile files (making PDF exports impossible).

AI-Powered Analysis

AILast updated: 03/18/2026, 00:12:42 UTC

Technical Analysis

LDAP Account Manager (LAM) is a web-based interface used to manage LDAP directory entries such as users, groups, and DHCP settings. Versions prior to 9.5 contain a critical vulnerability (CVE-2026-27894) classified under CWE-98, which involves improper control of filenames used in include or require statements within PHP code. Specifically, the PDF export feature in LAM allows authenticated users to perform local file inclusion (LFI) by manipulating the filename parameter, enabling the inclusion and execution of arbitrary local PHP files. When combined with a related vulnerability (GHSA-88hf-2cjm-m9g8), this can lead to full remote code execution on the server. The vulnerability requires the attacker to have valid login credentials to LAM but does not require further user interaction. The CVSS v3.1 score is 8.8, reflecting high impact on confidentiality, integrity, and availability with network attack vector, low attack complexity, and privileges required. The flaw arises because the application fails to properly sanitize or restrict file paths used in the include/require statements during PDF export processing. The vendor fixed the issue in version 9.5. As a temporary mitigation, making the /var/lib/ldap-account-manager/config directory read-only for the web server user and deleting PDF profile files can prevent exploitation by disabling PDF exports. No known exploits are reported in the wild yet, but the vulnerability poses a significant risk to organizations using vulnerable LAM versions.

Potential Impact

This vulnerability can have severe consequences for organizations relying on LDAP Account Manager for directory management. Successful exploitation allows an authenticated user to execute arbitrary PHP code on the server, potentially leading to full system compromise. This threatens the confidentiality of sensitive LDAP data, including user credentials and group information, and can undermine the integrity of directory entries. Availability may also be impacted if attackers disrupt services or deploy ransomware. Since LAM is often deployed in enterprise environments managing critical identity and access data, attackers gaining code execution could pivot to other internal systems, escalate privileges, or exfiltrate data. The requirement for authentication limits exposure to insider threats or compromised accounts but does not eliminate risk, especially in environments with weak credential controls. The lack of user interaction needed makes automated exploitation feasible once credentials are obtained. Overall, the vulnerability poses a high risk to organizational security posture and operational continuity.

Mitigation Recommendations

The primary mitigation is to upgrade LDAP Account Manager to version 9.5 or later, where the vulnerability is patched. Until upgrading is possible, organizations should implement the following specific measures: 1) Restrict file system permissions by making the /var/lib/ldap-account-manager/config directory read-only for the web server user to prevent modification or inclusion of malicious PHP files. 2) Delete or disable PDF profile files to disable the vulnerable PDF export functionality, thereby removing the attack vector. 3) Enforce strong authentication controls on LAM, including multi-factor authentication and strict password policies, to reduce the risk of credential compromise. 4) Monitor LAM logs for unusual access patterns or attempts to access PDF export features. 5) Isolate the LAM server within a segmented network zone with limited access to reduce lateral movement potential. 6) Regularly audit and update all related dependencies and PHP configurations to minimize attack surface. 7) Educate administrators about the vulnerability and ensure timely patch management processes are in place. These targeted mitigations go beyond generic advice by focusing on the specific vulnerable components and attack vectors.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T15:19:29.717Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b9ea9e771bdb1749ed199c

Added to database: 3/17/2026, 11:58:22 PM

Last enriched: 3/18/2026, 12:12:42 AM

Last updated: 3/18/2026, 7:14:29 AM

Views: 29

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses