Resource Leak Affecting python39:3.9/python39-pysocks package, versions <0:1.7.1-4.module+el8.9.0+19644+d68f775d


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.32% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-PYTHON39-6058428
  • published15 Nov 2023
  • disclosed23 May 2023

Introduced: 23 May 2023

CVE-2023-32681  (opens in a new tab)
CWE-402  (opens in a new tab)

How to fix?

Upgrade RHEL:8 python39:3.9/python39-pysocks to version 0:1.7.1-4.module+el8.9.0+19644+d68f775d or higher.
This issue was patched in RHSA-2023:7034.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python39:3.9/python39-pysocks package and not the python39:3.9/python39-pysocks package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use rebuild_proxies to reattach the Proxy-Authorization header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.

CVSS Scores

version 3.1