PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2022-24737: 
Python vulnerability analysis and mitigation

Overview

HTTPie, a command-line HTTP client, was found to have a security vulnerability (CVE-2022-24737) affecting versions prior to 3.1.0. The vulnerability was discovered and disclosed in March 2022, where the application failed to properly distinguish between cookies and their respective hosts in session management. This vulnerability affected HTTPie's session functionality, which is used to persistently store state information from HTTP requests and responses (GitHub Advisory).

Technical details

The vulnerability stems from HTTPie's session management system, specifically in how it handles cookies across different domains. Before version 3.1.0, HTTPie did not properly implement domain-based cookie policies according to RFC 6265 (HTTP State Management Mechanism). The issue received a CVSS v3.1 Base Score of 6.5 (MEDIUM) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N, indicating a network-accessible vulnerability requiring user interaction (NVD).

Impact

The vulnerability could result in the exposure of sensitive cookie information when redirects occur from the original host to third-party websites. This means that cookies intended for one domain could potentially be exposed to other domains during redirect operations, leading to possible information disclosure (GitHub Advisory).

Exploitability

The vulnerability can be exploited when using HTTPie's session feature with redirects to third-party websites. For example, when using the command http -F --session jar pie.dev/redirect-to url==https://httpbin.org/cookies, cookies meant for the original domain would be incorrectly shared with the redirect target (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to HTTPie version 3.1.0 or higher to address this vulnerability. After upgrading, users should run the httpie cli sessions upgrade command on their existing sessions to update them to the new secure format. There were no known workarounds for this vulnerability prior to the patch (HTTPie Release).

Community reactions

The vulnerability was responsibly disclosed through huntr.dev by security researcher @Glyph. Following the disclosure, the Fedora Project quickly responded by releasing security updates for Fedora 34, 35, and 36 to address the vulnerability (Fedora Update).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-57121HIGH8.1
  • Python logoPython
  • praisonai-platform
NoYesOct 23, 2026
GHSA-249c-7rgc-f52hHIGH7.5
  • Python logoPython
  • svglib
NoYesOct 23, 2026
GHSA-h8jf-9f4f-2v9hMEDIUM6.8
  • Python logoPython
  • docling
NoYesOct 23, 2026
CVE-2026-54711LOW2.4
  • Python logoPython
  • pghoard
NoNoOct 23, 2026
GHSA-g536-hq2j-5mpfLOWN/A
  • Python logoPython
  • openai4s
NoNoOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management