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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 48, 2026-11-29)
- **CWE:** CWE-1284, CWE-400
- **Published:** 2026-10-30T08:54:07.752Z
- **Modified:** 2026-11-20T06:17:18.070Z

## 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, \< \*

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

- 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)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

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

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-109821>

HTML: <https://flawdb.com/CVE-2026-109821> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-109821>
