{"id":"UBUNTU-CVE-2022-31087","details":"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.","modified":"2026-05-20T16:08:04.133825655Z","published":"2022-06-27T21:15:00Z","upstream":["CVE-2022-31087"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31087"},{"type":"REPORT","url":"https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-q8g5-45m4-q95p"},{"type":"REPORT","url":"https://github.com/LDAPAccountManager/lam/commit/f1d5d04952f39a1b4ea203d3964fa88e1429dfd4"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31087"}],"affected":[{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9-1","5.1-1","5.2-1","5.2-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.2-1ubuntu1","binary_name":"ldap-account-manager"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"5.2-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7-1","6.1-1","6.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"6.2-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"6.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"6.7-1"},{"binary_version":"6.7-1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.5-1","7.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"7.7-1"},{"binary_version":"7.7-1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0-1","binary_name":"ldap-account-manager"},{"binary_version":"9.0-1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1","9.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"9.0-1build1"},{"binary_version":"9.0-1build1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31087.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}