Vulnerability in plug
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-54892 has been found in plug.
Risk of unauthorized operations or information disclosure.
What to do: upgrade plug to 1.19.3 or later.
If unsure, ask your IT team or search "plug CVE-2026-54892" on the vendor's site.
CVE-2026-54892 (plug) — CWE-407
Patched: 1.19.3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-407) exists in plug.
Check the vendor advisory for the affected versions of plug.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 1.19.3.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'plug' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'plug' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
plugを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade plug to 1.19.3ステージング環境で 1.19.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| erlangplug |
< 1.19.3→ 1.19.3 |
1.19.3 |
| Hexplug |
≥ 1.15.0, < 1.15.5→ 1.15.5 ≥ 1.16.0, < 1.16.4→ 1.16.4 ≥ 1.17.0, < 1.17.2→ 1.17.2 ≥ 1.18.0, < 1.18.3→ 1.18.3 ≥ 1.19.0, < 1.19.3→ 1.19.3 |
1.15.5 1.16.4 1.17.2 1.18.3 1.19.3 |
| elixir-plugplug |
≥ 712b875d3442c765d8d37e546ffd5ad9f8afcc55 (no fix yet)→ 9c5d37c440eaae92869eed7c014c47266744fadb, a61124aa625d819a218fb07f90afbac8aa85eb0e, b4aa8a0665ce2726a6d5af44467fb4f59595b107, c317d08fdcf96e17931f7419275b2b8c4bf3e951, d4e5568392a4b29e545b91e12e87d6098f976145, d737eb236f17e31a36290e39f9ef3cd86a1343bd |
9c5d37c440eaae92869eed7c014c47266744fadb, a61124aa625d819a218fb07f90afbac8aa85eb0e, b4aa8a0665ce2726a6d5af44467fb4f59595b107, c317d08fdcf96e17931f7419275b2b8c4bf3e951, d4e5568392a4b29e545b91e12e87d6098f976145, d737eb236f17e31a36290e39f9ef3cd86a1343bd |
Original description The description as published by the source.
Summary
Inefficient algorithmic complexity in Plug's nested-parameter decoder allows an unauthenticated remote attacker to cause denial of service. Plug.Conn.Query.decode/4 (and Plug.Conn.Query.decode_each/2) parse query strings and application/x-www-form-urlencoded request bodies. When a key contains many bracketed segments such as a[a][a][a]=1, the decoder walks the brackets and, for each of the N levels, performs a map operation keyed on an ever-growing binary prefix of the key, hashing the full byte range at each step. The total decode cost is therefore quadratic in the number of nesting levels.
With the default Plug.Parsers.URLENCODED body limit of 1,000,000 bytes, a single request can carry roughly 333,000 nesting levels and saturate a BEAM scheduler for minutes. A small number of concurrent requests can saturate all schedulers and render a Plug-based server unresponsive. No authentication or knowledge of application routes is required.
This vulnerability is associated with program files lib/plug/conn/query.ex and program routines Plug.Conn.Query.decode/4, Plug.Conn.Query.decode_each/2, Plug.Conn.Query.split_keys/6, Plug.Conn.Query.insert_keys/3, and Plug.Conn.Query.finalize_pointer/2.
This issue affects plug: from 1.15.0 before 1.15.5, from 1.16.0 before 1.16.4, from 1.17.0 before 1.17.2, from 1.18.0 before 1.18.3, and from 1.19.0 before 1.19.3.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package hex.pm
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web github.com
- web github.com
- web repo.hex.pm
- web github.com