{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-31087","published":"2022-06-27T21:15:08.337000Z","last_modified":"2026-06-17T04:44:46.160000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-74","CWE-863"],"cpes":[{"criteria":"cpe:2.3:a:ldap-account-manager:ldap_account_manager:*:*:*:*:*:*:*:*","part":"a","vendor":"ldap-account-manager","product":"ldap_account_manager","version_end_excluding":"8.0"},{"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"11.0"}],"cpes_truncated":false,"vendors":["ldap-account-manager","debian"],"products":["ldap-account-manager/ldap_account_manager","debian/debian_linux"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00518,"percentile":0.37386,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-31087/","html_en":"/en/cve/CVE-2022-31087/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31087","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31087"},"untrusted":{"vendor_name":"Ldap-account-manager","product_name":"Ldap Account Manager","desc_en":"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":[{"untrusted_vendor":"LDAPAccountManager","untrusted_product":"lam","versions":[]}],"references":[{"url":"https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95p","tags":["Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5177","tags":["Third Party Advisory"]}]}}