CVE-2022-31087 Incorrect Default Permissions in ldap-account-manager
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- PHPUbuntuDebian
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.
Upgrade path
12 packages: 4 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ldap-account-manager(Ubuntu 16.04) | = 4.9-1; = 5.1-1; = 5.2-1; = 5.2-1ubuntu1 +1 more | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 18.04) | = 5.7-1; = 6.1-1; = 6.2-1; All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 20.04) | = 6.7-1; All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 22.04) | = 7.5-1; = 7.7-1; All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 25.10) | = 9.0-1; All versions | No fix listed | No fix yet |
| ubuntu/ldap-account-manager(Ubuntu 26.04) | = 9.0-1; = 9.0-1build1; All versions | No fix listed | No fix yet |
| debian/ldap-account-manager(Debian 12) | < 8.0.1-1 | 8.0.1-1 | Fixed |
| debian/ldap-account-manager(Debian 13) | < 8.0.1-1 | 8.0.1-1 | Fixed |
| debian/ldap-account-manager(Debian 14) | < 8.0.1-1 | 8.0.1-1 | Fixed |
| ldap-account-manager ldap account manager | < 8.0 | 8.0 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
| LDAPAccountManager lam | = < 8.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| LDAPAccountManager lam | = < 8.0 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:22.04) | All versions | No fix listed |
| ldap-account-manager ldap account manager | < 8.0 | 8.0 |
| debian linux | = 11.0 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:26.04) | All versions | No fix listed |
| debian/ldap-account-manager(Debian:12) | < 8.0.1-1 | 8.0.1-1 |
| debian/ldap-account-manager(Debian:14) | < 8.0.1-1 | 8.0.1-1 |
| debian/ldap-account-manager(Debian:13) | < 8.0.1-1 | 8.0.1-1 |
| ubuntu/ldap-account-manager(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:16.04) | = 4.9-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:16.04) | = 5.1-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:16.04) | = 5.2-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:16.04) | = 5.2-1ubuntu1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:18.04) | = 5.7-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:18.04) | = 6.1-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:18.04) | = 6.2-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:20.04) | = 6.7-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:22.04) | = 7.5-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:22.04) | = 7.7-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:25.10) | = 9.0-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:26.04) | = 9.0-1 | No fix listed |
| ubuntu/ldap-account-manager(Ubuntu:26.04) | = 9.0-1build1 | No fix listed |
References
- Debian Security Tracker CVE-2022-31087 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking third-party-advisory
- DSA-5177 third-party-advisory vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking