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: 3.7 Low
EPSS: < 1% Very Low
KEV: No
Impact: Command Injection enabled by IMAP APPEND with CRLF conversion in curl
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 are interpreted as additional IMAP commands and executed within the authenticated session. This boundary error (CWE-130) allows an attacker who can control the payload to inject and run arbitrary IMAP commands, potentially compromising the affected system.

Affected Systems

The vulnerability affects any installation of curl that performs CRLF conversion during IMAP APPEND. No official version range is provided; therefore, all versions that enable this feature are potentially impacted until an updated release is applied.

Risk and Exploitability

The CVSS score of 3.7 indicates a moderate severity, and the absence of an EPSS score and its exclusion from the KEV catalog suggest it is not widely regarded as a high‑risk exploit. Nevertheless, an attacker who can craft IMAP message data is likely to succeed on a server that accepts the size advertised by curl, meaning that internal or compromised networks where curl is used to submit IMAP data could be vulnerable.

Generated by OpenCVE AI on October 20, 2026 at 22:16 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade curl to the latest release that includes the CRLF conversion size reporting fix
  • If possible, disable CRLF conversion for IMAP APPEND to prevent the size mismatch
  • Add server‑side validation to reject unexpected commands within IMAP message data

Generated by OpenCVE AI on October 20, 2026 at 22:16 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

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-20T20:13:13.359Z

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

Link: CVE-2026-87864

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

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-20T22:30:18Z

Weaknesses
  • CWE-130

    Improper Handling of Length Parameter Inconsistency