{"id":"CVE-2022-31087","published":"2022-06-27T20:50:11Z","modified":"2025-04-23T18:07:18Z","title":"Incorrect Default Permissions in ldap-account-manager","vendor":"LDAPAccountManager","product":"lam","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00456,"percentile":0.40454,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4","tags":["x_refsource_MISC"]},{"url":"https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95p","tags":["x_refsource_CONFIRM"]},{"url":"https://www.debian.org/security/2022/dsa-5177","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":8.09},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"ldapaccountmanager","affectedVersions":[{"vendor":"LDAPAccountManager","product":"lam","versions":["< 8.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:51:54.354349Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-52744","exploited":false,"provenance":"source"}}