CVE-2022-31087: Incorrect Default Permissions in ldap-account-manager

Published Jun 27, 2022
·
Updated

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 Software

3 affected componentsFixes available
debian/ldap-account-manager
8.0.1-0+deb11u18.3-1
ldap-account-manager LDAP Account Manager<8.0
Debian Debian Linux=11.0

Event History

Jun 27, 2022
CVE Published
via MITRE·08:50 PM
Data Sourced
via MITRE·08:50 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-31087?

CVE-2022-31087 has not been assigned a specific CVSS score, but it poses significant risks due to the potential remote code execution from web-accessible PHP files.

2

How do I fix CVE-2022-31087?

To mitigate CVE-2022-31087, upgrade to LDAP Account Manager version 8.0.1-0+deb11u1 or version 8.3-1.

3

What versions of LDAP Account Manager are affected by CVE-2022-31087?

LDAP Account Manager versions prior to 8.0 are vulnerable to CVE-2022-31087.

4

Can CVE-2022-31087 be exploited remotely?

Yes, CVE-2022-31087 can potentially be exploited remotely if the tmp directory is accessible by an attacker.

5

What kind of attacks can CVE-2022-31087 allow?

CVE-2022-31087 may allow an attacker to execute arbitrary PHP code, leading to a full system compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203