Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-23607

published medium CVSS 3.1 · 6.5

Unsafe handling of user-specified cookies in treq

Published
01 Feb 2022, 11:01:07 UTC
Updated
03 Aug 2024, 03:43:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
twisted — treq< 22.1.0 Affected Not stated GitHub_M
Alpine Linux edge py3-treq Fixed 22.1.0-r0 Package fix record
Debian stretch python-treq Advisory build 15.1.0-1+deb9u1 DLA-2954-1
SUSE / openSUSE openSUSE-Leap-15.3 python2-treqnoarch Advisory build 20.3.0-bp153.2.3.1 OPENSUSE-SU-2022:10098-1
Alpine Linux v3.24 py3-treq Fixed 22.1.0-r0 Package fix record
SUSE / openSUSE openSUSE-Leap-15.3 python3-treqnoarch Advisory build 20.3.0-bp153.2.3.1 OPENSUSE-SU-2022:10098-1
SUSE / openSUSE openSUSE-Tumbleweed python310-treqaarch64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python310-treqppc64le Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
Show 22 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed python310-treqs390x Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python310-treqx86_64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python311-treqaarch64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python311-treqppc64le Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python311-treqs390x Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python311-treqx86_64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python312-treqaarch64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python312-treqppc64le Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python312-treqs390x Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python312-treqx86_64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python313-treqaarch64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python313-treqppc64le Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python313-treqs390x Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python313-treqx86_64 Advisory build 24.9.1-1.4 OPENSUSE-SU-2025:15106-1
SUSE / openSUSE openSUSE-Tumbleweed python38-treqaarch64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python38-treqppc64le Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python38-treqs390x Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python38-treqx86_64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python39-treqaarch64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python39-treqppc64le Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python39-treqs390x Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1
SUSE / openSUSE openSUSE-Tumbleweed python39-treqx86_64 Advisory build 22.1.0-1.1 OPENSUSE-SU-2024:11806-1

Description

treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

6

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.5 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
twisted treq < 22.1.0 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (GitHub_M · cna)

References

2

Provider assertions

2

GitHub_M · cna

Unsafe handling of user-specified cookies in treq

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
3343056ae78c5717a6aa232ab313823edd7556c5d8aa7b14be304b502e0d6431
Ingested
23 Sep 2026, 07:58:41 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected