7.9high
LAM vulnerable to Authenticated Remote Code Execution
- Severity
- 7.9high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 20.7% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| LDAPAccountManager lam | < 8.7 | CVE List |
| ldap-account-manager ldap_account_manager | before 8.7 | NVD |
All scores
| GitHub_M | 7.9high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:H |
| NVD | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
LDAP Account Manager (LAM) es una interfaz web para administrar entradas almacenadas en un directorio LDAP. La configuración de registro de LAM permite especificar rutas arbitrarias para archivos de registro. Antes de la versión 8.7, un atacante podía aprovechar esto creando un archivo PHP y hacer que LAM registrara algún código PHP en este archivo. Cuando se accede al archivo a través de la web, se ejecutará el código. El problema se mitiga con lo siguiente: un atacante necesita conocer la contraseña de configuración maestra de LAM para poder cambiar la configuración principal; y el servidor web necesita acceso de escritura a un directorio al que se pueda acceder a través de la web. La propia LAM no proporciona dichos directorios. El problema se solucionó en 8.7. Como workaround, limite el acceso a las páginas de configuración de LAM a usuarios autorizados.
References
| https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-fm9w-7m7v-wxqv | vendor-advisory | |
| https://github.com/LDAPAccountManager/lam/releases/tag/8.7 | product, release-notes | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-23333 changed 2024-08-21 | CVE Terms of Use |
| NVD | CVE-2024-23333 changed 2026-06-17 | Public domain |