JLSEC-2026-1658: IMAP APPEND byte count mismatch with CRLF conversion
Enabling CURLOPTCRLF 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/CURL_jllto a version that resolves this vulnerability.Fixed in 8.22.0+0 - Upgrade
Upgrade
julia/LibCURL_jllto a version that resolves this vulnerability.Fixed in 8.22.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What configuration and protocol path are affected?
The issue occurs when CURLOPT_CRLF is enabled for an IMAP APPEND operation. In that case, curl advertises the raw input length but sends data expanded by CRLF conversion.
What is the security impact of the extra transmitted bytes?
The IMAP server consumes only the advertised literal length. Remaining bytes can then be parsed and executed as pipelined IMAP commands within the authenticated session.