# CVE-2026-109821: Unbounded port parsing in URI.parse/1 enables CPU exhaustion denial of service in Elixir

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-30T08:54:07.752Z
- Modified: 2026-11-25T06:30:05.824Z
- Also known as: EEF-CVE-2026-109821, GHSA-327h-97cv-59xg
- Weaknesses: CWE-400, CWE-1284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- elixir: from 0.5.0 before 1.18.6; from 1.19.0-rc.0 before 1.19.7; from 1.20.0-rc.0 before 1.20.5
- elixir-lang/elixir: from 39801821eef2d06524e5ebf5a0e4b3c380ad23ae before *
- https://github.com/elixir-lang/elixir: from 39801821eef2d06524e5ebf5a0e4b3c380ad23ae before 07d9abc3f3ac4c8d2ba8384bd102b6d6205b08b7; before 9a39d64a4473d02681c486bc70681c972479d32b; before b70f33a591b6ab8eb0fa4a7e00bac1c2ed4e0d58; before d879b39d778fec2f475689573d5672720c4f2a21

## Every score

- EEF: CVSS:4.0 6.3 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/elixir-lang/elixir/security/advisories/GHSA-327h-97cv-59xg> (exploit, advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-109821.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-109821> (related)
- <https://github.com/erlang/otp/security/advisories/GHSA-8qw4-2chm-mvj2> (related, web)
- <https://github.com/elixir-lang/elixir/commit/39801821eef2d06524e5ebf5a0e4b3c380ad23ae> (related, web)
- <https://github.com/elixir-lang/elixir/commit/07d9abc3f3ac4c8d2ba8384bd102b6d6205b08b7> (fix, patch)
- <https://github.com/elixir-lang/elixir/commit/9a39d64a4473d02681c486bc70681c972479d32b> (fix, patch)
- <https://github.com/elixir-lang/elixir/commit/b70f33a591b6ab8eb0fa4a7e00bac1c2ed4e0d58> (fix, patch)
- <https://github.com/elixir-lang/elixir/commit/d879b39d778fec2f475689573d5672720c4f2a21> (fix, patch)

## Sources

- CVE List: [CVE-2026-109821](https://www.cve.org/CVERecord?id=CVE-2026-109821), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-109821](https://osv.dev/vulnerability/EEF-CVE-2026-109821), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-109821](https://nvd.nist.gov/vuln/detail/CVE-2026-109821), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-109821 · Whole record: https://cve.day/CVE-2026-109821.json · Rebuilt by cve.day 2026-11-25T22:59:47.896Z
