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] f43: Resolves: CVE-2026-80255 - secure cookie attribute bypass with tab
Date: Wed, 07 Oct 2026 10:41:03 GMT [thread overview]
Message-ID: <179136966353.1.1759452143003910760.rpms-curl-2585a4e22f6a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : f43
Commit : 2585a4e22f6aea35e854ed5d94b80c0b92f6dcf1
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-10-07T07:34:57+02:00
Stats : +124/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/2585a4e22f6aea35e854ed5d94b80c0b92f6dcf1?branch=f43
Log:
Resolves: CVE-2026-80255 - secure cookie attribute bypass with tab
---
diff --git a/0022-curl-8.15.0-CVE-2026-80255.patch b/0022-curl-8.15.0-CVE-2026-80255.patch
new file mode 100644
index 0000000..f7765af
--- /dev/null
+++ b/0022-curl-8.15.0-CVE-2026-80255.patch
@@ -0,0 +1,117 @@
+From 9f56553df92b6825e4aabf9ea9d21b6529764bff 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 | 6 ++---
+ tests/data/Makefile.am | 2 +-
+ tests/data/test2885 | 52 ++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 56 insertions(+), 4 deletions(-)
+ create mode 100644 tests/data/test2885
+
+diff --git a/lib/cookie.c b/lib/cookie.c
+index 17a6baba0c..7faa109947 100644
+--- a/lib/cookie.c
++++ b/lib/cookie.c
+@@ -437,9 +437,9 @@ static bool bad_domain(const char *domain, size_t len)
+ static bool invalid_octets(const char *ptr)
+ {
+ const unsigned char *p = (const unsigned char *)ptr;
+- /* Reject all bytes \x01 - \x1f (*except* \x09, TAB) + \x7f */
++ /* Reject all bytes \x01 - \x1f + \x7f */
+ while(*p) {
+- if(((*p != 9) && (*p < 0x20)) || (*p == 0x7f))
++ if((*p < 0x20) || (*p == 0x7f))
+ return TRUE;
+ p++;
+ }
+@@ -497,7 +497,7 @@ parse_cookie_header(struct Curl_easy *data,
+ struct Curl_str val;
+
+ /* 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=")) {
+ bool done = FALSE;
+ bool sep = FALSE;
+ curlx_str_trimblanks(&name);
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index 6a60f1ce4f..4888dec3ea 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -270,7 +270,7 @@ test2600 test2601 test2602 test2603 test2604 \
+ 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="yes">
++HTTP/1.1 200 OK
++Content-Length: 0
++Set-Cookie: thisis=SECRET; Secure
++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="yes">
++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 FALSE / TRUE 0 also notab
++cookie.example FALSE / TRUE 0 thisis SECRET
++</file>
++</verify>
++</testcase>
+--
+2.55.0
+
diff --git a/curl.spec b/curl.spec
index ca2932c..1b2d1a7 100644
--- a/curl.spec
+++ b/curl.spec
@@ -7,7 +7,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.15.0
-Release: 10%{?dist}
+Release: 11%{?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
@@ -79,6 +79,9 @@ Patch020: 0020-curl-8.15.0-CVE-2026-9079.patch
# fix wrong reuse for different services (CVE-2026-8458)
Patch021: 0021-curl-8.15.0-CVE-2026-8458.patch
+# fix secure cookie attribute bypass with tab (CVE-2026-80255)
+Patch022: 0022-curl-8.15.0-CVE-2026-80255.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -481,6 +484,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Tue Oct 06 2026 Jan Macku <jamacku@redhat.com> - 8.15.0-11
+- fix secure cookie attribute bypass with tab (CVE-2026-80255)
+
* Tue Sep 08 2026 Jan Macku <jamacku@redhat.com> - 8.15.0-10
- fix HTTP/2 stream-dependency tree UAF (CVE-2026-10536)
- fix stale proxy password leak (CVE-2026-9079)
reply other threads:[~2026-10-07 10:41 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=179136966353.1.1759452143003910760.rpms-curl-2585a4e22f6a@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