CVE-2024-52792 Arbitrary config values override in lam
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebian
Description
LDAP Account Manager (LAM) is a php webfrontend for managing entries (e.g. users, groups, DHCP settings) stored in an LDAP directory. In affected versions LAM does not properly sanitize configuration values, that are set via mainmanage.php and confmain.php. This allows setting arbitrary config values and thus effectively bypassing mitigation of CVE-2024-23333/GHSA-fm9w-7m7v-wxqv. Configuration values for the main config or server profiles are set via mainmanage.php and confmain.php.
The values are written to config.cfg or serverprofile.conf in the format of settingsName: settingsValue line-by-line.
An attacker can smuggle arbitrary config values in a config file, by inserting a newline into certain config fields, followed by the value. This vulnerability has been addressed in version 9.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Upgrade path
7 packages: 2 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ldap-account-manager(Debian 12) | = 8.3-1; = 8.5-1; = 8.6-1; = 8.7-1 +5 more | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| debian/ldap-account-manager(Debian 13) | < 9.0-1 | 9.0-1 | Fixed |
| debian/ldap-account-manager(Debian 14) | < 9.0-1 | 9.0-1 | Fixed |
| LDAPAccountManager lam | = < 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ldap-account-manager(Debian:12) | All versions | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 8.3-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 8.5-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 8.6-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 8.7-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 9.0-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 9.5.1-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 9.6-1 | No fix listed |
| debian/ldap-account-manager(Debian:12) | = 9.7-1 | No fix listed |
| debian/ldap-account-manager(Debian:13) | < 9.0-1 | 9.0-1 |
| debian/ldap-account-manager(Debian:14) | < 9.0-1 | 9.0-1 |
| ubuntu/ldap-account-manager(Ubuntu:22.04) | All versions | No fix listed |
| LDAPAccountManager lam | = < 9.0 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:26.04) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2024-52792 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-6cp9-j5r7-xhcc
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-fm9w-7m7v-wxqv
- https://github.com/LDAPAccountManager/lam/blob/fd665fef3b222bf8205154b14f676815d2d6ae20/lam/templates/config/mainmanage.php#L263
- https://github.com/LDAPAccountManager/lam/releases/tag/9.0
- bugs.debian.org issue-tracking