Vulnerability · Published Mar 18, 2024 · Assigned by GitHub_M
CVE-2024-23333LAM vulnerable to Authenticated Remote Code Execution
High 7.9
In plain English
A high-severity injection in lam from LDAPAccountManager. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 17.8% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ldap-account-manager | no fix listed | DEBIAN-CVE-2024-23333 |
| Debian:13 | ldap-account-manager | 8.7-1 | DEBIAN-CVE-2024-23333 |
| Debian:14 | ldap-account-manager | 8.7-1 | DEBIAN-CVE-2024-23333 |
| Ubuntu:22.04:LTS | ldap-account-manager | no fix listed | UBUNTU-CVE-2024-23333 |
| Ubuntu:24.04:LTS | ldap-account-manager | no fix listed | UBUNTU-CVE-2024-23333 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| LDAPAccountManager | lam | < 8.7 |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:H
References
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-fm9w-7m7v-wxqv x_refsource_CONFIRM
- https://github.com/LDAPAccountManager/lam/releases/tag/8.7 x_refsource_MISC