Skip to content
OpenAdvisories
High · 7.8 CVE-2022-31087 EUVD-2022-52744

Incorrect Default Permissions in ldap-account-manager

Published Jun 27, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

Description

LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, groups, DHCP settings) stored in an LDAP directory. In versions prior to 8.0 the tmp directory, which is accessible by /lam/tmp/, allows interpretation of .php (and .php5/.php4/.phpt/etc) files. An attacker capable of writing files under www-data privileges can write a web-shell into this directory, and gain a Code Execution on the host. This issue has been fixed in version 8.0. Users unable to upgrade should disallow executing PHP scripts in (/var/lib/ldap-account-manager/)tmp directory.

Affected products

VendorProductAffectedFixed
LDAPAccountManager lam < 8.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ldap-account-manager 8.0.1-1 —
Debian 13 ldap-account-manager 8.0.1-1 —
Debian 12 ldap-account-manager 8.0.1-1 —
Debian 11 ldap-account-manager 8.0.1-0+deb11u1 DSA-5177-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS ldap-account-manager No fix yet —
Ubuntu 25.10 ldap-account-manager No fix yet —
Ubuntu 22.04 LTS ldap-account-manager No fix yet —
Ubuntu 20.04 LTS ldap-account-manager No fix yet —
Ubuntu 18.04 LTS ldap-account-manager No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ldap-account-manager No fix yet —

Advisories 1

References