CVE-2026-109821
Unbounded port parsing in URI.parse/1 enables CPU exhaustion denial of service in Elixir
Mitigation
- Upgrade elixir to 1.20.5 or later.
- Vendor workaround: Reject long URLs before parsing them, for example anything above a few kilobytes, and reject a parsed port above 65535 before rendering or using the %URI{}. URI.new/1 is not affected on Erlang/OTP 27.3.4.17, 28.5.0.6, 29.0.6 and later, where :uri_string limits the port to 5 digits.
Who should check
- Anyone running elixir-lang elixir >= 0.5.0, < 1.18.6; >= 1.19.0-rc.0, < 1.19.7; >= 1.20.0-rc.0, < 1.20.5
- Anyone running elixir-lang elixir >= 39801821eef2d06524e5ebf5a0e4b3c380ad23ae, < *
Vulnerability facts
- Affected
- elixir-lang elixir >= 0.5.0, < 1.18.6; >= 1.19.0-rc.0, < 1.19.7; >= 1.20.0-rc.0, < 1.20.5; elixir-lang elixir >= 39801821eef2d06524e5ebf5a0e4b3c380ad23ae, < *
- Fixed in
- elixir-lang elixir 1.18.6, elixir-lang elixir 1.19.7, elixir-lang elixir 1.20.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 48, 2026-11-26)
- CWE
- CWE-1284, CWE-400
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| elixir-lang elixir | >= 0.5.0, < 1.18.6; >= 1.19.0-rc.0, < 1.19.7; >= 1.20.0-rc.0, < 1.20.5 | — | cvelist |
| elixir-lang elixir | >= 39801821eef2d06524e5ebf5a0e4b3c380ad23ae, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-109821. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-109821.md Affected: elixir-lang elixir >= 0.5.0, < 1.18.6; >= 1.19.0-rc.0, < 1.19.7; >= 1.20.0-rc.0, < 1.20.5; elixir-lang elixir >= 39801821eef2d06524e5ebf5a0e4b3c380ad23ae, < * Fixed in: elixir-lang elixir 1.18.6, elixir-lang elixir 1.19.7, elixir-lang elixir 1.20.5 Steps: 1. Search this machine and project for elixir-lang elixir: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/elixir-lang/elixir/commit/39801821eef2d06524e5ebf5a0e4b3c380ad23ae
- https://github.com/elixir-lang/elixir/commit/07d9abc3f3ac4c8d2ba8384bd102b6d6205b08b7
- https://github.com/elixir-lang/elixir/commit/9a39d64a4473d02681c486bc70681c972479d32b
- https://github.com/elixir-lang/elixir/commit/b70f33a591b6ab8eb0fa4a7e00bac1c2ed4e0d58
- https://github.com/elixir-lang/elixir/commit/d879b39d778fec2f475689573d5672720c4f2a21
FAQ
Is CVE-2026-109821 being exploited?
There is no confirmed exploitation: CVE-2026-109821 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-109821?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-109821?
elixir-lang elixir >= 0.5.0, < 1.18.6; >= 1.19.0-rc.0, < 1.19.7; >= 1.20.0-rc.0, < 1.20.5; elixir-lang elixir >= 39801821eef2d06524e5ebf5a0e4b3c380ad23ae, < *.
Is there a fix for CVE-2026-109821?
Yes. Fixed in elixir-lang elixir 1.18.6, elixir-lang elixir 1.19.7, elixir-lang elixir 1.20.5. Upgrade elixir to 1.20.5 or later. Vendor workaround: Reject long URLs before parsing them, for example anything above a few kilobytes, and reject a parsed port above 65535 before rendering or using the %URI{}. URI.new/1 is not affected on Erlang/OTP 27.3.4.17, 28.5.0.6, 29.0.6 and later, where :uri_string limits the port to 5 digits.
How do I check if I'm affected by CVE-2026-109821?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.