CVE-2026-87864: IMAP APPEND plus CRLF conversion command injection

Published Oct 14, 2026
·
Updated

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.

Other sources

IMAP APPEND plus CRLF conversion command injection

— Microsoft

Affected Software

16 affected componentsFixes available
debian/curl<=7.88.1-10+deb12u15, <=7.88.1-10+deb12u5, <=8.14.1-2+deb13u5, <=8.14.1-2+deb13u7
8.22.0-18.23.0-1
alpine/curl<8.23.0-r0
8.23.0-r0
alpine/curl<8.23.0-r0
8.23.0-r0
debian/curl*
debian/curl*
debian/curl<8.22.0-1
8.22.0-1
ubuntu/curl<7.35.0-1ubuntu2.20+esm24
7.35.0-1ubuntu2.20+esm24
ubuntu/curl<7.47.0-1ubuntu2.19+esm21
7.47.0-1ubuntu2.19+esm21
ubuntu/curl<7.58.0-2ubuntu3.24+esm15
7.58.0-2ubuntu3.24+esm15
ubuntu/curl<7.68.0-1ubuntu2.25+esm10
7.68.0-1ubuntu2.25+esm10
ubuntu/curl<7.81.0-1ubuntu1.30
7.81.0-1ubuntu1.30
ubuntu/curl<8.5.0-2ubuntu10.16
8.5.0-2ubuntu10.16
ubuntu/curl<8.20.0-2ubuntu11.1
8.20.0-2ubuntu11.1
ubuntu/curl<8.18.0-1ubuntu2.8
8.18.0-1ubuntu2.8
All of the following
azurelinux/curl<8.11.1-13
8.11.1-13
Microsoft Azure Linux=3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.22.0-1Fixed in 8.23.0-1
  2. Upgrade

    Upgrade alpine/curl to a version that resolves this vulnerability.

    Fixed in 8.23.0-r0
  3. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.22.0-1
  4. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.35.0-1ubuntu2.20+esm24
  5. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.47.0-1ubuntu2.19+esm21
  6. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.58.0-2ubuntu3.24+esm15
  7. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.68.0-1ubuntu2.25+esm10
  8. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.81.0-1ubuntu1.30
  9. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.5.0-2ubuntu10.16
  10. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.20.0-2ubuntu11.1
  11. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.18.0-1ubuntu2.8
  12. Upgrade

    Upgrade azurelinux/curl to a version that resolves this vulnerability.

    Fixed in 8.11.1-13

Event History

Oct 14, 2026
CVE Published
via OSV·06:00 AM
Data Sourced
via OSV·06:00 AM
DescriptionSeverityAffected Software
Oct 20, 2026
CVE Published
via MITRE·08:13 PM
Data Sourced
via MITRE·08:13 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Oct 23, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:06 AM
Affected Software
Event
via Microsoft·08:06 AM

Frequently Asked Questions

1

What configuration is required for exploitation?

The vulnerable behavior requires CURLOPT_CRLF to be enabled during an IMAP APPEND operation. The issue arises when curl converts line endings but advertises the original raw input byte count in the IMAP literal length.

2

What access does an attacker need to exploit this?

An attacker needs control over data appended through the affected IMAP operation, including content that can produce bytes remaining after the server has consumed the advertised literal length. The injected commands execute within the authenticated IMAP session used by curl.

3

Who is exposed in practice?

Deployments using Debian curl to perform IMAP APPEND requests with CURLOPT_CRLF enabled are exposed. The impact is limited to the authenticated IMAP account associated with the affected curl session.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203