Bug 2554459

Summary: CVE-2026-87864 curl: IMAP APPEND plus CRLF conversion command injection [fedora-all]
Product: [Fedora] Fedora Reporter: Rafael Pandini <rpandini>
Component: curlAssignee: Jan Macku <jamacku>
Status: ON_QA --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahanwate, jamacku, jmigacz, kdudka, lzaoral, msekleta, paul, vmihalko
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["9b5e4cea-b650-47f7-af30-f85b352a5fb8"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2550666    

Description Rafael Pandini 2026-10-16 20:29:17 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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

Project curl Security Advisory, October 14 2026
[Permalink](https://curl.se/docs/CVE-2026-87864.html)

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

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.

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 `CURLOPT_CRLF` 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!

Comment 1 Jan Macku 2026-12-01 13:01:35 UTC
*** Bug 2580407 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Update System 2026-12-03 07:59:31 UTC
FEDORA-2026-fe256fcfcd (curl-8.21.0-10.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-fe256fcfcd

Comment 3 Fedora Update System 2026-12-04 02:01:25 UTC
FEDORA-2026-fe256fcfcd has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-fe256fcfcd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-fe256fcfcd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-12-04 12:49:35 UTC
FEDORA-2026-a275b9fb03 (curl-8.18.0-16.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a275b9fb03

Comment 5 Fedora Update System 2026-12-05 01:05:20 UTC
FEDORA-2026-fe256fcfcd (curl-8.21.0-10.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2026-12-05 02:00:46 UTC
FEDORA-2026-a275b9fb03 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a275b9fb03`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a275b9fb03

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.