---
id: CVE-2024-6827
aliases:
  - GHSA-hc5x-x2vx-497g
  - PYSEC-2026-1433
title: Gunicorn HTTP Request/Response Smuggling vulnerability
summary: Gunicorn HTTP Request/Response Smuggling vulnerability
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
vendor: gunicorn
product: gunicorn
ecosystem: pip
affected:
  - gunicorn < 22.0.0
patched:
  - gunicorn 22.0.0
published: '2025-03-20'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:48.430751503Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-hc5x-x2vx-497g'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-6827'
  - url: 'https://github.com/benoitc/gunicorn/issues/3087'
  - url: 'https://github.com/benoitc/gunicorn/issues/3278'
  - url: 'https://github.com/benoitc/gunicorn/pull/3113'
  - url: 'https://github.com/benoitc/gunicorn'
  - url: 'https://github.com/benoitc/gunicorn/releases/tag/22.0.0'
  - url: 'https://huntr.com/bounties/1b4f8f38-39da-44b6-9f98-f618639d0dd7'
tags:
  - osv
  - pip
epss: 0.0079
epssPercentile: 0.54795
ingestedAt: '2026-07-08T18:25:50.040Z'
---

## Overview

Gunicorn version 21.2.0 does not properly validate the value of the 'Transfer-Encoding' header as specified in the RFC standards, which leads to the default fallback method of 'Content-Length,' making it vulnerable to TE.CL request smuggling. This vulnerability can lead to cache poisoning, data exposure, session manipulation, SSRF, XSS, DoS, data integrity compromise, security bypass, information leakage, and business logic abuse.

## Affected packages

- `gunicorn < 22.0.0`

## Remediation

Upgrade to a patched release:

- `gunicorn 22.0.0`
