CVE-2024-23333
High · 7.9CVSS
7.9
EPSS
17.8%
Published
Mar 18, 2024
CISA due date
—
Cloudanix analysis
Someone who knows the admin password could make the tool create a hidden file that runs dangerous commands whenever anyone visits it on the website.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an authenticated administrator to configure arbitrary file paths for application logs; by directing logs to a web-accessible PHP file and causing the application to write executable PHP code into that file, an attacker can achieve remote code execution when the file is subsequently requested over HTTP.
Why it matters to the business
Successful exploitation can result in full compromise of the LDAP management server, enabling attackers to execute arbitrary commands, exfiltrate or alter directory data, and potentially pivot to other systems, leading to operational disruption and data breaches.
How an attack unfolds
An attacker first obtains the LAM master configuration password, then modifies the log settings to specify a web-reachable directory path ending in .php, triggers logging activity that writes a PHP payload into the file, and finally browses to the created file via the web server to execute the injected code.
How to fix it
Upgrade to LAM version 8.7 or later. As a temporary mitigation, restrict access to all LAM configuration pages to only authorized administrators and ensure the web server process lacks write permissions to any web-accessible directories.
How to confirm the fix worked
Confirm the installed LAM version is 8.7 or newer; audit current log file paths in the configuration to verify none resolve to web-accessible locations; test that configuration pages remain inaccessible to unprivileged users.
Typical attack path
- Acquire LAM master configuration password
- Alter log configuration to target a web-accessible .php file
- Generate log events that embed PHP code into the target file
- Request the malicious PHP file through the web server to trigger execution
How to detect it
Inspect application and web server logs for modifications to log file paths, especially entries pointing outside expected directories; search for newly created .php files in web roots with timestamps correlating to configuration changes; review access logs for unexpected requests to previously nonexistent PHP files.
What your security team should do
- Immediately upgrade all LAM instances to version 8.7
- Enforce least-privilege access controls on configuration interfaces
- Review web server file permissions to prevent write access to served directories
- Monitor authentication logs for unusual master-password usage
The record
LDAP Account Manager (LAM) is a webfrontend for managing entries stored in an LDAP directory. LAM's log configuration allows to specify arbitrary paths for log files. Prior to version 8.7, an attacker could exploit this by creating a PHP file and cause LAM to log some PHP code to this file. When the file is then accessed via web the code would be executed. The issue is mitigated by the following: An attacker needs to know LAM's master configuration password to be able to change the main settings; and the webserver needs write access to a directory that is accessible via web. LAM itself does not provide any such directories. The issue has been fixed in 8.7. As a workaround, limit access to LAM configuration pages to authorized users.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | ldap-account-manager | 0 | No fix |
| Debian:12 | ldap-account-manager | 0 | No fix |
| Debian:13 | ldap-account-manager | 0 | 8.7-1 |
| Ubuntu:16.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:18.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:20.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:22.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:24.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:24.10 | ldap-account-manager | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ldap-account-manager | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | ldap-account-manager | 0 | No fix |
Related vulnerabilities
- CVE-2024-52792 LDAP Account Manager (LAM) is a php webfrontend for managing entries (e.g. Also affects ldap-account-manager
- CVE-2024-45613 CKEditor 5 is a JavaScript rich-text editor. Also affects ldap-account-manager
- CVE-2024-43411 CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. Also affects ldap-account-manager
- CVE-2021-41164 CKEditor4 is an open source WYSIWYG HTML editor. Also affects ldap-account-manager
- CVE-2026-114577 A vulnerability was found in oretnom23 php-travel-agency-system. CWE-74
- CVE-2026-114575 A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. CWE-74
- CVE-2026-112150 A security flaw has been discovered in vraj404 Criminal-Management-System up to… CWE-74
- CVE-2026-112141 A vulnerability was determined in satya-vinay Events-Management-System up to… CWE-74