CVE-2026-2469: Directorytree/imapengine ImapEngine Affected By Command Injection Vulnerability
MODERATECVE-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
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).
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.
Upgrade directorytree/imapengine to 1.22.3
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
CVE-2026-2469 Affected Directorytree/imapengine Versions
1 component(s)| 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?
Which Directorytree/imapengine versions are affected?
What version fixes CVE-2026-2469?
Is directorytree/imapengine affected?
What is the CVSS score of CVE-2026-2469?
What CWE is associated with CVE-2026-2469?
How can I check Packagist dependencies for CVE-2026-2469?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}