Summary
CVE-2026-82973 is a critical CRLF/IMAP command injection vulnerability (CWE-93) in psyb0t’s docker-mailbox project, affecting versions 0.1.0 through 0.4.12. When bearer-token authentication is not configured, a remote unauthenticated attacker can inject arbitrary IMAP commands by supplying CR/LF sequences in HTTP-supplied folder, UID, or search parameters, allowing them to splice attacker-controlled IMAP commands onto the backend’s authenticated mailbox connection. The issue carries a CVSS v3.1 base score of 9.4 (Critical).
Technical details
- Root cause: docker-mailbox passes HTTP request parameters (folder names, UIDs, and search terms) directly into Python’s
imaplibwithout sanitizing carriage-return/line-feed (CRLF) or NUL characters. - Trigger conditions: The vulnerability is exploitable whenever bearer-token authentication is not configured on the service, removing the only barrier to reaching the vulnerable IMAP proxy endpoints.
- Attack vector: Network-based, no authentication or user interaction required (AV:N/AC:L/PR:N/UI:N). An attacker crafts an HTTP request where a folder, UID, or search field contains a CRLF sequence, terminating the intended IMAP command and appending a second, attacker-chosen IMAP command that is then executed on the authenticated backend mailbox connection.
- Impact: Low confidentiality impact combined with high integrity and high availability impact (C:L/I:H/A:H) — an attacker can manipulate or disrupt mailbox state and operations by injecting arbitrary IMAP commands into the session.
Affected software
- psyb0t docker-mailbox versions 0.1.0 through 0.4.12 (inclusive), when bearer-token authentication is not configured.
Severity
- CVSS v3.1 Base Score: 9.4 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to docker-mailbox version 0.4.13 or later, which adds input validation (
_reject_control_chars()and_validate_uid()) that rejects CR, LF, and NUL characters in folder, search, and UID parameters, restricts UIDs to digits and valid sequence-set punctuation, and escapes embedded quotes/backslashes in folder names before they are passed toimaplib. - If immediate patching is not possible:
- Ensure bearer-token authentication is enabled and enforced on all docker-mailbox deployments, as the vulnerability is only exploitable when this authentication is not configured.
- Restrict network exposure of the docker-mailbox service to trusted networks only; do not expose it directly to the internet.
- Monitor IMAP backend logs for unexpected or malformed commands that may indicate injection attempts.

