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.
Published: 2026-10-20
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Command Injection via IMAP APPEND with CRLF conversion
Action: Patch curl
AI Analysis

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.

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

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

Fri, 30 Oct 2026 12:30:00 +0000

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'}


Tue, 20 Oct 2026 20:30:00 +0000

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

Sun, 18 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl

Sat, 17 Oct 2026 00:30:00 +0000

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


cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-10-30T12:00:45.483Z

Reserved: 2026-09-09T13:17:39.832Z

Link: CVE-2026-87864

cve-icon Vulnrichment

Updated: 2026-10-30T12:00:30.388Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-20T21:17:20.497

Modified: 2026-10-30T12:16:46.137

Link: CVE-2026-87864

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-14T12:00:00Z

Links: CVE-2026-87864 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T15:00:15Z

Weaknesses
  • CWE-130

    Improper Handling of Length Parameter Inconsistency