CVE-2024-52792
Medium · 6.5CVSS
6.5
EPSS
0.7%
Published
Dec 17, 2024
CISA due date
—
Cloudanix analysis
A configuration flaw in the LDAP management tool lets privileged users insert hidden settings that weaken existing security protections.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper sanitization of configuration inputs in mainmanage.php and confmain.php allows newline smuggling to inject arbitrary key-value pairs into config.cfg or serverprofile.conf, bypassing the mitigation for CVE-2024-23333.
Why it matters to the business
Attackers with configuration privileges can alter LDAP directory management settings, potentially disabling security controls and leading to unauthorized changes in user, group, or DHCP entries across the directory.
How an attack unfolds
An authenticated administrator accesses the configuration pages, inserts a newline followed by a malicious setting into a field processed by mainmanage.php or confmain.php, writes the injected value into the persistent config file, and then leverages the altered configuration to bypass prior mitigations.
How to fix it
Upgrade ldapaccountmanager/lam to the commit 1fbcbea3c17e77d65d8ea0ff73c1e663387d25b5 or later release 9.0; no workarounds exist.
How to confirm the fix worked
Verify the installed version includes commit 1fbcbea3c17e77d65d8ea0ff73c1e663387d25b5; attempt newline injection in configuration fields and confirm values are rejected or sanitized before writing to disk.
Typical attack path
- Obtain administrative access to LAM configuration interfaces
- Identify input fields written to config.cfg or serverprofile.conf
- Craft payload containing newline plus arbitrary config directive
- Submit via mainmanage.php or confmain.php to persist the value
- Confirm bypass of CVE-2024-23333 mitigation through modified behavior
How to detect it
Review web server access logs for requests to mainmanage.php and confmain.php containing encoded newlines or unusual parameter lengths; inspect config.cfg and serverprofile.conf for lines added outside normal administrative workflows; correlate with LDAP directory changes after configuration updates.
- %0A
- \n
- config.cfg
- serverprofile.conf
What your security team should do
- Upgrade to the fixed commit or version 9.0 immediately
- Audit all existing config.cfg and serverprofile.conf files for unexpected entries
- Restrict administrative access to configuration pages until patched
- Monitor for post-patch config changes via file integrity monitoring
The record
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.
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 | 9.0-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:25.04 | ldap-account-manager | 0 | No fix |
| Ubuntu:25.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-23333 LDAP Account Manager (LAM) is a webfrontend for managing entries stored in an LDAP… 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-19032 jackson-databind's deserializer for java.nio.file.Path resolves an attacker-supplied URI… CWE-610
- CVE-2026-21810 HCL BigFix Quantum Risk Analyzer is affected by a hardcoded external resource reference… CWE-610
- CVE-2026-79256 Externally controlled reference in WebView in Google Chrome on on Android prior to… CWE-610
- CVE-2026-78966 Externally controlled reference in QUIC in Google Chrome prior to 152.0.7977.65 allowed a… CWE-610