CVE-2022-31087

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLdap-account-manager Ldap Account Manager
PublishedJun 27, 2022
First seenJun 27, 2022
Weakness typeCWE-74Injection

How to fix

Update
  • ldap-account-manager ldap_account_manager8.0 or later

Affected products

ProductAffected versionsFixed in
ldap-account-manager ldap_account_managerv < 8.08.0
debian debian_linux11.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.