8.7 HIGH
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): None (N)
- Vulnerable System Impact Integrity (VI): None (N)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): None (N)
- Subsequent System Impact Availability (SA): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): None (N)
- Modified Vulnerable System Impact Integrity (MVI): None (N)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Negligible (N)
- Modified Subsequent System Impact Availability (MSA): Negligible (N)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
- Exploit Maturity (E): Not Defined (X)
by @LeSuisse Activity log
- Created suggestion
- @LeSuisse dismissed (not in Nixpkgs)
gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion
Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering. In gun_http:handle/5, three clauses accumulate incoming TCP data into the connection's buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \r\n\r\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \r\n\r\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size. A malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\r\nX-Pad: followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash. This issue affects gun: from 1.0.0 before 2.4.0.
References
Affected products
- <2.4.0
- <f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25
Matching in nixpkgs
pkgs.shogun
Toolbox which offers a wide range of efficient and unified machine learning methods
pkgs.gungnir
Command-line tool that continuously monitors certificate transparency (CT) logs for newly issued SSL/TLS certificates
pkgs.nailgun
Client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead
pkgs.shotgun
Minimal X screenshot utility
pkgs.haskellPackages.hailgun
Mailgun REST api interface for Haskell
pkgs.python313Packages.gunicorn
WSGI HTTP Server for UNIX, fast clients and sleepy applications
pkgs.python314Packages.gunicorn
WSGI HTTP Server for UNIX, fast clients and sleepy applications
pkgs.python313Packages.freezegun
Library that allows your Python tests to travel through time
pkgs.python314Packages.freezegun
Library that allows your Python tests to travel through time
pkgs.terraform-providers.mailgun
None
pkgs.haskellPackages.hailgun-simple
Easy-to-use wrapper for the hailgun package
pkgs.python313Packages.pymailgunner
Library for interacting with Mailgun e-mail service
pkgs.python314Packages.pymailgunner
Library for interacting with Mailgun e-mail service
pkgs.python313Packages.types-freezegun
Typing stubs for freezegun
pkgs.python314Packages.types-freezegun
Typing stubs for freezegun
pkgs.python313Packages.pytest-freezegun
Wrap tests with fixtures in freeze_time
pkgs.python314Packages.pytest-freezegun
Wrap tests with fixtures in freeze_time
pkgs.terraform-providers.wgebis_mailgun
None
Package maintainers
-
@CherryKitten CherryKitten <contact@cherrykitten.dev>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@getchoo Seth Flynn <getchoo@tuta.io>
-
@Mic92 Jörg Thalheim <joerg@thalheim.io>
-
@jpetrucciani Jacobi Petrucciani <j@cobi.dev>
-
@smancill Sebastián Mancilla <smancill@smancill.dev>
-
@edwtjo Edward Tjörnhammar <ed@cflags.cc>
-
@lumi-me-not lumi <lumi@pew.im>