CVE-2026-109821
Unbounded port parsing in URI.parse/1 enables CPU exhaustion denial of service in Elixir
Check your servers for CVE-2026-109821
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-109821 affects elixir, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper Validation of Specified Quantity in Input vulnerability in the Elixir standard library's URI module allows an attacker who supplies a URL to cause a denial of service through CPU exhaustion.
URI.parse/1 converts the port component with String.to_integer/1 in split_authority/1 (lib/elixir/lib/uri.ex) without bounding its length, so a port of up to 1,262,592 decimal digits produces a bignum of that size and a longer one raises SystemLimitError. Rendering the parsed URI back to text (URI.to_string/1, inspect/1, logging, error formatting) converts the bignum with :erlang.integer_to_binary/1, which is quadratic on Erlang/OTP 27, 28 and 29.0: a 400,000-digit port renders in about 2.6 seconds and a 1 MB port in about 18 seconds. Ports above 65535 are also accepted.
This issue affects elixir: from 0.5.0 before 1.18.6, from 1.19.0-rc.0 before 1.19.7, and from 1.20.0-rc.0 before 1.20.5.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.54%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 46.6% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 30 Oct 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-400 Uncontrolled Resource Consumption
- CWE-1284 Improper Validation of Specified Quantity in Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
elixir
package
elixir |
affected from 0.5.0, before 1.18.6 affected from 1.19.0-rc.0, before 1.19.7 affected from 1.20.0-rc.0, before 1.20.5
Other versions: unaffected
|
|
elixir
package
elixir-lang/elixir |
affected 39801821eef2d06524e5ebf5a0e4b3c380ad23ae and later (unaffected from 07d9abc3f3ac4c8d2ba8384bd102b6d6205b08b7, unaffected from 9a39d64a4473d02681c486bc70681c972479d32b, unaffected from b70f33a591b6ab8eb0fa4a7e00bac1c2ed4e0d58, unaffected from d879b39d778fec2f475689573d5672720c4f2a21)
Other versions: unaffected
|
Is my server affected?
Find the installed version of elixir and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i elixir
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-109821 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-109821RHEL, Rocky, Alma, Fedora
rpm -q elixir
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-109821Alpine
apk list --installed | grep -i elixirWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-109821
trivy image --scanners vuln IMAGE | grep CVE-2026-109821
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 07d9abc in elixir-lang/elixir github.com · patch
- Fix commit 9a39d64 in elixir-lang/elixir github.com · patch
- Fix commit b70f33a in elixir-lang/elixir github.com · patch
- Fix commit d879b39 in elixir-lang/elixir github.com · patch
Exploits and proof of concept
- Unbounded port parsing in URI.parse/1 enables CPU exhaustion denial of service github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-109821 cna.erlef.org · related
- OSV record EEF-CVE-2026-109821 osv.dev · related
- Erlang/OTP advisory for the same issue in uri_string github.com · related
- Introducing commit 3980182 in elixir-lang/elixir github.com · related
Source: the record CVE-2026-109821 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse