REDHAT-BUG-2550666: Command Injection

Published Oct 13, 2026
·
Updated

IMAP APPEND plus CRLF conversion command injection ==================================================

Project curl Security Advisory, October 14 2026 Permalink

VULNERABILITY -------------

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.

INFO ----

Combining IMAP append with CRLF conversions is probably a rare occasion.

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87864 to this issue.

CWE-130: Improper Handling of Length Parameter Inconsistency

Severity: Low

AFFECTED VERSIONS -----------------

- Affected versions: curl 7.30.0 to and including 8.21.0 - Not affected versions: curl < 7.30.0 and >= 8.22.0 - Introduced-in: https://github.com/curl/curl/commit/f8c8c76d39ac2fa825481ba42

libcurl is used by many applications, but not always advertised as such!

This flaw also affects the curl command line tool.

SOLUTION --------

- Fixed-in: https://github.com/curl/curl/commit/3b547de301342b347fb3c6ea6ae797

RECOMMENDATIONS ---------------

A - Upgrade curl to version 8.22.0

B - Apply the patch to your local version

C - Avoid CURLOPTCRLF with IMAP

TIMELINE --------

This issue was reported to the curl project on August 26, 2026.

curl 8.22.0 was released on September 2, 2026. This advisory was published on October 14, 2026.

CREDITS -------

- Reported-by: Stanislav Fort (Aisle Research) - Patched-by: Stefan Eissing

Thanks a lot!

Affected Software

1 affected component
curl curl>=7.30.0<=8.21.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade curl to a version that resolves this vulnerability.

    Fixed in 8.22.0
  2. Configuration

    Avoid using CURLOPT_CRLF with IMAP.

    curl CURLOPT_CRLF = Do not use with IMAP

Event History

Oct 13, 2026
Data Sourced
via Red Hat·04:06 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are affected?

curl and libcurl versions 7.30.0 through 8.21.0 are affected. The issue applies when IMAP APPEND is used with CURLOPT_CRLF enabled, and it affects both libcurl-using applications and the curl command-line tool.

2

What is required for the unintended commands to run?

CURLOPT_CRLF must cause line-ending expansion during an IMAP APPEND operation. The server then treats bytes beyond the advertised literal length as pipelined IMAP commands in the authenticated session.

3

How can I determine whether an application is exposed?

Identify applications and scripts using curl or libcurl, confirm whether their version falls from 7.30.0 through 8.21.0, and check whether they perform IMAP APPEND operations with CURLOPT_CRLF enabled. Versions earlier than 7.30.0 and versions 8.22.0 or later are not affected.

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