GHSA-78cg-ph9m-rjjx: 
Python Analyse et atténuation de la vulnérabilité

Impact

Several gunicorn_h1c APIs could crash the interpreter or read memory they no longer owned:

  • H1CProtocol published the parsed headers before it had filled and validated them, and ran callbacks while holding pointers into its buffer. Reading headers from a callback or after a rejected request, calling reset() from a callback, or changing the list returned by headers crashed the process.
  • parse_request, parse_request_fast, parse_request_raw, parse_response and parse_headers used last_len as an offset into the data without checking it, so an out-of-range value read outside the buffer.
  • parse_request, parse_response, parse_headers, parse_to_wsgi_environ and parse_to_asgi_scope released the input buffer and then copied fields out of it, a use after free when the exporter frees that memory on release.
  • parse_to_wsgi_environ mapped X-Auth-User and X_Auth_User to the same HTTP_X_AUTH_USER key and joined their values, so a client could add to a header set by a proxy. gunicorn itself does not use these APIs in a way that triggers them; applications and libraries that call them directly are affected.

Patches

Fixed in 0.6.10. H1CProtocol validates and builds the request before publishing it or running callbacks, and re-entering it from a callback raises RuntimeError; last_len outside 0..len(data) raises ValueError; the input buffer is kept until the result is built; parse_to_wsgi_environ drops header names containing _, like gunicorn's default header_map = "drop".

Workarounds

Do not call reset(), feed() or finish() from H1CProtocol callbacks, do not modify the list returned by headers, pass last_len only as returned by a previous call, pass bytes objects to the parse functions, and drop header names containing _ before using parse_to_wsgi_environ.


Source: NVD

Connexe Python Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-78cg-ph9m-rjjxMEDIUM6.2
  • Python logoPython
  • gunicorn_h1c
NonOuiNov 07, 2026
GHSA-jg6c-wvfg-fx69LOW2.1
  • Python logoPython
  • openapi-python-client
NonOuiNov 07, 2026
GHSA-ppv2-x5g2-5q78LOWN/A
  • Python logoPython
  • mulder-dfir
NonNonNov 07, 2026
GHSA-g7jf-m9pq-rhmxMEDIUMN/A
  • Python logoPython
  • mulder-dfir
NonNonNov 07, 2026
GHSA-wvcr-jpx6-3fjhMEDIUMN/A
  • Python logoPython
  • mulder-dfir
NonNonNov 07, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités