CVE-2026-87864

IMAP APPEND plus CRLF conversion command injection

Published Oct 20, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Enabling `CURLOPT_CRLF` causes curl to advertise the raw input byte count in
the `IMAP APPEND {N}` literal while transmitting line-ending expanded data.
The server reads only $N$ bytes for the payload, causing the remaining
overflow bytes to be interpreted and executed as pipelined IMAP commands
within the authenticated session.

Analysis

AI-generated

Technical impact

Enabling CURLOPT_CRLF causes curl to advertise the raw input byte count in the IMAP APPEND {N} literal while transmitting line‑ending expanded data. Because the server reads only the announced N bytes as the payload, the remaining overflow bytes become valid IMAP commands that are executed within the authenticated session. This boundary‑error flaw (CWE‑130) allows an attacker who controls the data sent through curl to inject arbitrary IMAP commands, potentially compromising the server's confidentiality, integrity, or availability. Based on the description, it is inferred that the attack exploits a size‑mismatch in the IMAP protocol that manifests only when CRLF conversion is enabled.

Affected Systems

The flaw affects any installation of curl that performs CRLF conversion during IMAP APPEND operations. No specific version range is provided in the advisory, so all curl releases that enable this feature are potentially impacted until the upstream code receives a fix.

Risk and Exploitability

The CVSS score of 8.1 reflects high severity, while the EPSS score of <1% and absence from the KEV catalog indicate a low probability of widespread exploitation. Based on the description, it is inferred that the attacker must be able to control the payload sent via curl to a victim server that accepts the IMAP APPEND command, and the vulnerability is only exploitable within authenticated sessions. Nevertheless, because injected commands could be arbitrary, the risk to the affected system is significant if the attack vector is realized.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade curl to the latest release that contains the CRLF conversion size reporting fix
  • If a patch is not yet available, disable CURLOPT_CRLF for IMAP APPEND operations to prevent the size mismatch
  • Configure the IMAP server to validate the exact size of incoming append literals and reject any additional data or commands that appear after the declared payload

Generated by OpenCVE AI on October 30, 2026 at 14:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8927-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8932-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8927-2 curl vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description A flaw was found in curl. When curl is configured to perform carriage return and line feed (CRLF) conversion during an Internet Message Access Protocol (IMAP) append operation, it incorrectly reports the raw input size rather than the expanded byte count. Because the receiving server only reads the advertised length as message data, it interprets the remaining overflow bytes as subsequent commands. An attacker capable of supplying message data with line breaks can exploit this issue to execute unauthorized IMAP commands within an authenticated session. Enabling `CURLOPT_CRLF` causes curl to advertise the raw input byte count in the `IMAP APPEND {N}` literal while transmitting line-ending expanded data. The server reads only $N$ bytes for the payload, causing the remaining overflow bytes to be interpreted and executed as pipelined IMAP commands within the authenticated session.
Title curl: IMAP APPEND plus CRLF conversion command injection IMAP APPEND plus CRLF conversion command injection
References
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
Type Values Removed Values Added
Description A flaw was found in curl. When curl is configured to perform carriage return and line feed (CRLF) conversion during an Internet Message Access Protocol (IMAP) append operation, it incorrectly reports the raw input size rather than the expanded byte count. Because the receiving server only reads the advertised length as message data, it interprets the remaining overflow bytes as subsequent commands. An attacker capable of supplying message data with line breaks can exploit this issue to execute unauthorized IMAP commands within an authenticated session.
Title curl: IMAP APPEND plus CRLF conversion command injection
Weaknesses CWE-130
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N'}

threat_severity

Low

Weaknesses
  • CWE-130

    Improper Handling of Length Parameter Inconsistency

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Oct 30, 2026, 12:00 PM
Reserved
Sep 9, 2026, 1:17 PM
Status
Awaiting Analysis
Published
Oct 20, 2026, 9:17 PM
Modified
Oct 30, 2026, 12:16 PM
Severity
Low
Public date
Oct 14, 2026, 12:00 PM