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.
{
"CWE": {
"desc": "Improper Handling of Length Parameter Inconsistency",
"id": "CWE-130"
},
"URL": "https://curl.se/docs/CVE-2026-87864.json",
"affects": "both",
"issue": "https://hackerone.com/reports/3972403",
"last_affected": "8.21.0",
"package": "curl",
"severity": "Low",
"www": "https://curl.se/docs/CVE-2026-87864.html"
}"https://curl.se/docs/CURL-CVE-2026-87864.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "271163736960417285140970839678364115519",
"length": 2049
},
"id": "CURL-CVE-2026-87864-0ce8cfa2",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/3b547de301342b347fb3c6ea6ae7979070793a66",
"target": {
"file": "lib/imap.c",
"function": "imap_perform_append"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"251391810045803685832643111882952219983",
"230272450495413905076510337395308289975",
"279345524937848122541175804955803927206",
"326579516450104158312078249796725653019",
"6314725441832225559310330025237115345",
"114921374853254453887647134154033142821",
"21107455571070083965206735011929559656",
"181508033716914528430102015631184913514",
"550900563960819447413324627059592860"
],
"threshold": 0.9
},
"id": "CURL-CVE-2026-87864-1bd163f9",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/curl/curl.git/commit/3b547de301342b347fb3c6ea6ae7979070793a66",
"target": {
"file": "lib/imap.c"
}
}
]
"2026-10-14T19:02:58Z"