Repository navigation
deps: Update dependency plug_cowboy to v2.8.1 [SECURITY] - #88
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.6.1→2.8.1Atom table exhaustion via HTTP/2 :scheme pseudo-header in plug_cowboy
CVE-2026-32688 / EEF-CVE-2026-32688 / GHSA-q8x4-x7mp-5vg2
More information
Details
Summary
Allocation of Resources Without Limits or Throttling vulnerability in elixir-plug plug_cowboy allows unauthenticated remote denial of service via atom table exhaustion.
Plug.Cowboy.Conn.conn/1inlib/plug/cowboy/conn.excallsString.to_atom/1on the value returned by:cowboy_req.scheme/1. For HTTP/2 connections, cowlib passes the client-supplied:schemepseudo-header value through verbatim without validation. Each unique value permanently allocates a new entry in the BEAM atom table. Since atoms are never garbage-collected and the atom table has a fixed limit (default 1,048,576), an unauthenticated attacker can exhaust the table by sending HTTP/2 requests with unique:schemevalues, causing the Erlang VM to abort withsystem_limitand taking down the entire node.This vulnerability does not affect HTTP/1.1, where cowboy derives the scheme from the listener type rather than from a client-supplied header.
This issue affects plug_cowboy: from 2.0.0 before 2.8.1.
Workarounds
Disable HTTP/2 on the
Plug.Cowboy.https/3listener by passingprotocol_options: %{protocols: [:http]}in the cowboy options. This restricts the listener to HTTP/1.1, where the scheme is derived from the listener type and is not attacker-controlled.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by OSV.
Plug.Cowboy vulnerable to unauthenticated remote DoS via HTTP/2
:schemeatom-table exhaustionCVE-2026-32688 / EEF-CVE-2026-32688 / GHSA-q8x4-x7mp-5vg2
More information
Details
Summary
An unauthenticated remote denial-of-service vulnerability in
Plug.Cowboy.Connallows any attacker who can reach an HTTPS Plug.Cowboy listener via HTTP/2 to permanently exhaust the BEAM atom table and crash the entire Erlang VM.Am I Affected?
All users running plug_cowboy with HTTP/2 may be affected, this includes Phoenix applications. If another HTTP adapter such as Bandit is used, then the consuming project is not affected. If the HTTP/2 endpoint is exposed directly (without a proxy) then the project will be affected. If a proxy is in use then it depends on the proxy configuration. Many proxies use HTTP/1.1 internally, and would be unaffected.
Impact
The vulnerability will allow crashing the Erlang VM (BEAM) via atom exhaustion.
Mitigation
Users are advised to update to plug_cowboy v2.8.1 to mitigate this issue.
Credits
Plug.Cowboy thanks Peter Ullrich for finding and responsibly disclosing this vulnerability.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
elixir-plug/plug_cowboy (plug_cowboy)
v2.8.1Compare Source
Security fixes
v2.8.0Compare Source
Enhancements
next_protocols_advertisedv2.7.5Compare Source
Enhancements
v2.7.4Compare Source
Enhancements
v2.7.3Compare Source
Enhancements
v2.7.2Compare Source
Bug fixes
crash_reasonin metadata is always a tuplev2.7.1Compare Source
Enhancements
v2.7.0Compare Source
Enhancements
v2.6.2Compare Source
Enhancements
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.