CVE-2022-31087
published 2022-06-27CVE-2022-31087: 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…
PriorityP342high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.43%
34.8th percentile
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
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | ldap-account-manager | < ldap-account-manager 8.0.1-1 (bookworm) | ldap-account-manager 8.0.1-1 (bookworm) |
| ldap-account-manager | ldap_account_manager | < 8.0 | 8.0 |
| ldapaccountmanager | lam | < 8.0 | 8.0 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.2HIGHAV:L/AC:L/Au:N/C:C/I:C/A:C
osv7.8HIGH
vendor_debian7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2022-31087: ldap-account-manager - LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, gr...
vendor_debian·2022·CVSS 7.8
CVE-2022-31087 [HIGH] CVE-2022-31087: ldap-account-manager - LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, gr...
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.
Scope: local
bookworm: resolved (fixed in 8.0.1-1)
bullseye: resolved (fixed in 8.0.1-0+deb11u1)
forky: resolved (fixed in 8.0.1-1)
sid: resolved (fixed in 8.0.1-1)
trixie: resolved (fixed in 8.0.1-1)
OSV
CVE-2022-31087: LDAP Account Manager (LAM) is a webfrontend for managing entries (e
osv·2022-06-27·CVSS 7.8
CVE-2022-31087 [HIGH] CVE-2022-31087: LDAP Account Manager (LAM) is a webfrontend for managing entries (e
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95phttps://www.debian.org/security/2022/dsa-5177https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95phttps://www.debian.org/security/2022/dsa-5177
2022-06-27
Published