Vulnerability · Published Jun 27, 2022 · Assigned by GitHub_M
CVE-2022-31087Incorrect Default Permissions in ldap-account-manager
High 7.8
In plain English
A high-severity injection in lam from LDAPAccountManager. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ldap-account-manager | 8.0.1-1 | DEBIAN-CVE-2022-31087 |
| Debian:13 | ldap-account-manager | 8.0.1-1 | DEBIAN-CVE-2022-31087 |
| Debian:14 | ldap-account-manager | 8.0.1-1 | DEBIAN-CVE-2022-31087 |
| Ubuntu:22.04:LTS | ldap-account-manager | no fix listed | UBUNTU-CVE-2022-31087 |
| Ubuntu:25.10 | ldap-account-manager | no fix listed | UBUNTU-CVE-2022-31087 |
| Ubuntu:26.04:LTS | ldap-account-manager | no fix listed | UBUNTU-CVE-2022-31087 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| LDAPAccountManager | lam | < 8.0 |
Weakness: CWE-74 · Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4 x_refsource_MISC
- https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95p x_refsource_CONFIRM
- DSA-5177 vendor-advisory, x_refsource_DEBIAN