Enabling CURLOPT_CRLF causes curl to advertise the raw input byte count in the IMAP APPEND {N} literal while transmitting line-ending expanded data. (CVE-2026-87864)
Description
Enabling the CURLOPT_CRLF option in curl causes it to advertise the raw input byte count in the IMAP APPEND {N} literal while transmitting data with expanded line endings. The IMAP server reads only the specified N bytes for the payload, but any overflow bytes beyond N are interpreted as additional IMAP commands within the authenticated session.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises when curl's CURLOPT_CRLF option is enabled. Curl advertises the raw byte count of the input in the IMAP APPEND {N} literal, but due to line-ending expansion during transmission, the actual data sent is longer than N bytes. The IMAP server reads only N bytes as the payload, causing the extra bytes to be treated as subsequent IMAP commands. This can lead to unintended command execution within the authenticated IMAP session.
Potential Impact
An attacker able to influence the transmitted data could exploit this discrepancy to inject and execute additional IMAP commands beyond the intended payload. This could potentially lead to unauthorized actions within the authenticated IMAP session. However, no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid enabling CURLOPT_CRLF when using curl with IMAP APPEND commands to prevent this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mxp6-wxxv-r9rj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-87864"]
Threat ID: 6ad7ec0f2cdf04f6566aefa4
Added to database: 10/20/2026, 22:32:47 UTC
Last enriched: 10/20/2026, 22:34:45 UTC
Last updated: 10/21/2026, 00:28:17 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.