LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

LDAP Account Manager before 8.0 could let an attacker who already has limited write capability on the server turn a temporary web directory into code execution. This is serious because LAM manages identity data, but the source data describes required prior privileges rather than unauthenticated remote compromise.

Executive priority

Treat this as high priority for identity administration systems, especially internet-facing or shared administrative hosts. Patch or enforce the documented PHP-execution restriction promptly, but prioritize based on whether vulnerable LAM instances exist and whether attackers could gain server-side file-write capability.

Technical view

LAM exposed its tmp directory at /lam/tmp/ and allowed PHP-family files there to be interpreted. With the ability to write files under www-data privileges, an attacker could cause code execution on the host. The issue is fixed in version 8.0 and addressed by Debian DSA-5177.

Likely exposure

Organizations running LDAP Account Manager versions earlier than 8.0 are affected. Debian systems using vulnerable ldap-account-manager packages were covered by DSA-5177. Practical exposure depends on whether an attacker can already write files with the web server user's privileges or chain another weakness to do so.

Exploitation context

The provided sources do not show known active exploitation, and the CVE is not marked KEV. The CVSS vector is local, low complexity, low privileges, and no user interaction, with high confidentiality, integrity, and availability impact once the prerequisite write capability exists.

Researcher notes

The key condition is not simply web access to LAM; sources require the ability to write files under www-data privileges. The vulnerability is best assessed as a post-compromise or chained code-execution risk. No public source in the bundle establishes exploitation in the wild.

Mitigation direction

  • Upgrade LDAP Account Manager to version 8.0 or later.
  • Apply Debian security updates referenced in DSA-5177 where applicable.
  • Disable PHP execution in the LAM tmp directory.
  • Review vendor guidance if upgrade timing or packaging differs.

Validation and detection

  • Inventory all LAM deployments and record installed versions.
  • Confirm no deployment runs a version earlier than 8.0.
  • Verify web server configuration blocks PHP execution in the LAM tmp directory.
  • Check Debian package status against DSA-5177 where relevant.
  • Review local file-write risks involving the web server user.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-74: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31087 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.0)
Known Exploited
No
Published

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.0HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.0 score

7.8High
CVSS 3.0 vector shape for CVE-2022-31087Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LDAPAccountManagerlam< 8.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-74 · source CWE mapping

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.