CVE-2022-24851Stored XSS and path traversal in LDAPAccountManager/lam
LDAP Account Manager (LAM) is an open source web frontend for managing entries stored in an LDAP directory. The profile editor tool has an edit profile functionality, the parameters on this page are not properly sanitized and hence leads to stored XSS attacks. An authenticated user can store XSS payloads in the profiles, which gets triggered when any other user try to access the edit profile page. The pdf editor tool has an edit pdf profile functionality, the logoFile parameter in it is not properly sanitized and an user can enter relative paths like ../../../../../../../../../../../../../usr/share/icons/hicolor/48x48/apps/gvim.png via tools like burpsuite. Later when a pdf is exported using the edited profile the pdf icon has the image on that path(if image is present). Both issues require an attacker to be able to login to LAM admin interface. The issue is fixed in version 7.9.1.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | ldap-account-manager | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | ldap-account-manager | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | ldap-account-manager | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | ldap-account-manager | Under investigation | UBUNTU-CVE-2022-24851 | |
| Ubuntu 20.04 | ldap-account-manager | Fix pending | UBUNTU-CVE-2022-24851 | |
| Ubuntu 18.04 | ldap-account-manager | Fix pending | UBUNTU-CVE-2022-24851 | |
| Ubuntu 16.04 | ldap-account-manager | Fix pending | UBUNTU-CVE-2022-24851 | |
| Ubuntu 14.04 | ldap-account-manager | Fix pending | ||
| Debian 14 | ldap-account-manager | Fixed | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
| Debian 13 | ldap-account-manager | Fixed | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
| Debian 12 | ldap-account-manager | Fixed | 7.9.1-1 | DEBIAN-CVE-2022-24851 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LDAPAccountManager lam: affected: < 7.9.1
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5177 (vendor-advisory)
References
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-f2fr-cccr-583v
- https://github.com/LDAPAccountManager/lam/issues/170
- https://github.com/LDAPAccountManager/lam/commit/3c6f09a3579e048e224eb5a4c4e3eefaa8bccd49
- https://www.debian.org/security/2022/dsa-5177
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.