public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Macku <jamacku@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: Resolves: CVE-2026-80255 - secure cookie attribute bypass with tab
Date: Mon, 02 Nov 2026 14:33:13 GMT [thread overview]
Message-ID: <179362999332.1.9352084737564476267.rpms-curl-e009d61c2b4a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : e009d61c2b4a50a53d17d8600e7712d9b3b5f88b
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-10-05T15:51:32+02:00
Stats : +112/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/e009d61c2b4a50a53d17d8600e7712d9b3b5f88b?branch=curl-v8.21.0-9
Log:
Resolves: CVE-2026-80255 - secure cookie attribute bypass with tab
---
diff --git a/0005-curl-8.21.0-CVE-2026-80255.patch b/0005-curl-8.21.0-CVE-2026-80255.patch
new file mode 100644
index 0000000..0e083a3
--- /dev/null
+++ b/0005-curl-8.21.0-CVE-2026-80255.patch
@@ -0,0 +1,105 @@
+From 3765167e6e46c8a549d822983f4eec7048c28099 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Thu, 27 Aug 2026 08:33:30 +0200
+Subject: [PATCH 1/2] cookie: improve TAB handling
+
+For entries with a leading tab. Verified in test 2885.
+
+Reported-by: Stanislav Fort
+Closes #22699
+
+(cherry picked from commit 4f6aa41a0145e930e766775dbe860883d350aa0a)
+---
+ lib/cookie.c | 2 +-
+ tests/data/Makefile.am | 2 +-
+ tests/data/test2885 | 52 ++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 54 insertions(+), 2 deletions(-)
+ create mode 100644 tests/data/test2885
+
+diff --git a/lib/cookie.c b/lib/cookie.c
+index 91dc8d5fd0..c608b90321 100644
+--- a/lib/cookie.c
++++ b/lib/cookie.c
+@@ -614,7 +614,7 @@ parse_cookie_header(struct Curl_easy *data,
+ struct Curl_str name;
+
+ /* we have a <name>=<value> pair or a stand-alone word here */
+- if(!curlx_str_cspn(&ptr, &name, ";\t\r\n=")) {
++ if(!curlx_str_cspn(&ptr, &name, ";\r\n=")) {
+ struct Curl_str val;
+ bool sep = FALSE;
+ curlx_str_trimblanks(&name);
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index 5a190f1fea..17227ba369 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -272,7 +272,7 @@ test2600 test2601 test2602 test2603 test2604 test2605 \
+ test2700 test2701 test2702 test2703 test2704 test2705 test2706 test2707 \
+ test2708 test2709 test2710 test2711 test2712 test2713 test2714 test2715 \
+ test2716 test2717 test2718 test2719 test2720 test2721 test2722 test2723 \
+-\
++test2885 \
+ test3000 test3001 test3002 test3003 test3004 test3005 test3006 test3007 \
+ test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \
+ test3016 test3017 test3018 test3019 test3020 test3021 test3022 test3023 \
+diff --git a/tests/data/test2885 b/tests/data/test2885
+new file mode 100644
+index 0000000000..456224fdc5
+--- /dev/null
++++ b/tests/data/test2885
+@@ -0,0 +1,52 @@
++<?xml version="1.0" encoding="US-ASCII"?>
++<testcase>
++<info>
++<keywords>
++HTTP
++cookies
++</keywords>
++</info>
++
++<reply>
++<data crlf="headers">
++HTTP/1.1 200 OK
++Content-Length: 0
++Set-Cookie: thisis=SECRET;%TABSecure
++Set-Cookie: also=notab; Secure
++
++</data>
++</reply>
++
++<client>
++<features>
++cookies
++</features>
++<server>
++https
++</server>
++<name>
++Cookies with TAB before 'secure'
++</name>
++<command>
++https://cookie.example:%HTTPSPORT/%TESTNUMBER -c %LOGDIR/cookies.txt --resolve cookie.example:%HTTPSPORT:%HOSTIP --insecure
++</command>
++</client>
++
++<verify>
++<protocol crlf="headers">
++GET /%TESTNUMBER HTTP/1.1
++Host: cookie.example:%HTTPSPORT
++User-Agent: curl/%VERSION
++Accept: */*
++
++</protocol>
++<file name="%LOGDIR/cookies.txt" mode="text">
++# Netscape HTTP Cookie File
++# https://curl.se/docs/http-cookies.html
++# This file was generated by libcurl! Edit at your own risk.
++
++cookie.example%TABFALSE%TAB/%TABTRUE%TAB0%TABalso%TABnotab
++cookie.example%TABFALSE%TAB/%TABTRUE%TAB0%TABthisis%TABSECRET
++</file>
++</verify>
++</testcase>
+--
+2.55.0
+
diff --git a/curl.spec b/curl.spec
index b88d82a..607fb39 100644
--- a/curl.spec
+++ b/curl.spec
@@ -13,7 +13,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.21.0
-Release: 6%{?dist}
+Release: 7%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -34,6 +34,9 @@ Patch003: 0003-curl-8.21.0-CVE-2026-19931.patch
# fix remove test1701 - HTTP/2 Upgrade in a HTTP/1.1 POST request is no longer supported
Patch004: 0004-curl-8.21.0-remove-test1701.patch
+# fix secure cookie attribute bypass with tab (CVE-2026-80255)
+Patch005: 0005-curl-8.21.0-CVE-2026-80255.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -486,6 +489,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Mon Oct 05 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-7
+- fix secure cookie attribute bypass with tab (CVE-2026-80255)
+
* Tue Sep 29 2026 Jan Macku <jamacku@redhat.com> - 8.21.0-6
- fix HTTP/2 server push UAF (CVE-2026-18924)
- fix Negotiate ambient user conn reuse (CVE-2026-19931)
reply other threads:[~2026-11-02 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179362999332.1.9352084737564476267.rpms-curl-e009d61c2b4a@fedoraproject.org \
--to=jamacku@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox