CVE-2026-2469: Directorytree/imapengine ImapEngine Affected By Command Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-rfq9-4wcm-64gh
CVSS 7.6
CWE-74
Published
Advisory Summary

CVE-2026-2469 is a MODERATE (CVSS 7.6) imapengine affected by command injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Directorytree/imapengine libraries in the Packagist ecosystem. The issue involves imapengine affected by command injection via the id command parameters. Remediation is available by upgrading affected packages to version 1.22.3.

CVE-2026-2469 at a Glance

CVE Identifier CVE-2026-2469
GHSA Identifier GHSA-rfq9-4wcm-64gh
Severity MODERATE
CVSS v3.1 Base Score 7.6
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Directorytree/imapengine
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2026-2469

To remediate this vulnerability, upgrade all affected Directorytree/imapengine dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

directorytree/imapengine fixed: 1.22.3
Upgrade directorytree/imapengine to 1.22.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for directorytree/imapengine

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-2469, inspect your project dependencies for Directorytree/imapengine:

inspect dependencies for directorytree/imapengine

Analyze the terminal output to locate any version of Directorytree/imapengine in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.22.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Directorytree/imapengine, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of the package `directorytree/imapengine` before 1.22.3 are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the id() function in ImapConnection.php due to improperly escaping user input before including it in IMAP ID commands. This allows attackers to read or delete victim's emails, terminate the victim's session or execute any valid IMAP command on victim's mailbox by including quote characters `"` or CRLF sequences `\r\n` in the input.

CVE-2026-2469 Affected Directorytree/imapengine Versions

1 component(s)
Fixed Versions:
1.22.3
Product / Package Ecosystem Affected Versions Fixed Version
directorytree/imapengine
Packagist
< 1.22.3
1.22.3

References

Frequently Asked Questions

What is CVE-2026-2469?
CVE-2026-2469 is a security vulnerability in Directorytree/imapengine involving ImapEngine affected by command injection via the ID command parameters under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Directorytree/imapengine versions are affected?
Affected versions include releases prior to 1.22.3 across affected packages: directorytree/imapengine.
What version fixes CVE-2026-2469?
Upgrading to 1.22.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is directorytree/imapengine affected?
Yes, directorytree/imapengine is affected in releases prior to 1.22.3. Upgrade your dependency to 1.22.3 or later.
What is the CVSS score of CVE-2026-2469?
CVE-2026-2469 has a CVSS v3.1 base score of 7.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H.
What CWE is associated with CVE-2026-2469?
CVE-2026-2469 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Packagist dependencies for CVE-2026-2469?
Run the dependency tree command: 'inspect dependencies for directorytree/imapengine'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rfq9-4wcm-64gh",
  "modified" : "2026-02-17T16:40:46Z",
  "published" : "2026-02-14T06:30:58Z",
  "aliases" : [ "CVE-2026-2469" ],
  "summary" : "ImapEngine affected by command injection via the ID command parameters",
  "details" : "Versions of the package `directorytree/imapengine` before 1.22.3 are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the id() function in ImapConnection.php due to improperly escaping user input before including it in IMAP ID commands. This allows attackers to read or delete victim's emails, terminate the victim's session or execute any valid IMAP command on victim's mailbox by including quote characters `\"` or CRLF sequences `\\r\\n` in the input.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "directorytree/imapengine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.22.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2469"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DirectoryTree/ImapEngine/pull/150"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DirectoryTree/ImapEngine/commit/87fca56affd9527e6907a705e6d600c5174d9a5a"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/wanamirulhakim/74b41589cdea3c07c3375e5946960778"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DirectoryTree/ImapEngine"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-PHP-DIRECTORYTREEIMAPENGINE-15274300"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-17T16:40:46Z",
    "nvd_published_at" : "2026-02-14T05:16:22Z"
  }
}