{"id":"CVE-2026-82726","aliases":["CVE-2026-82726","EEF-CVE-2026-82726","GHSA-rpf8-q9jh-qxrr"],"related":[],"kind":"vulnerability","state":"published","title":"AshPhoenix get_subdomain maps a crafted or differently-cased Host header to an arbitrary tenant","summary":"Permissive Regular Expression vulnerability in ash-project ash_phoenix lets a remote client select the tenant an Ash application uses, or degrade the request, by sending a crafted Host header.\n\nAshPhoenix.Helpers.get_subdomain/2 stripped the root domain with String.replace(host, ~r/.?#{root_host}/, \"\"). The root host was interpolated raw, so each . became a wildcard and any metacharacter a pattern, and the replace was global and unanchored, so a match was removed from anywhere in the string. With root_host example.com, Host: foo.exampleXcom.attacker.net returned the tenant foo.attacker.net. A metacharacter-bearing or nil root host degraded the pattern or raised on every request. The comparison was also case-sensitive, so TENANT.EXAMPLE.COM and EXAMPLE.COM slipped past the root-host allowlist. conn.host comes from the client Host header. The fix matches the root host case-insensitively and only as an exact trailing suffix.\n\nThis issue affects ash_phoenix: from 2.1.26 before 2.3.25.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Permissive Regular Expression vulnerability in ash-project ash_phoenix lets a remote client select the tenant an Ash application uses, or degrade the request, by sending a crafted Host header.\n\nAshPhoenix.Helpers.get_subdomain/2 stripped the root domain with String.replace(host, ~r/.?#{root_host}/, \"\"). The root host was interpolated raw, so each . became a wildcard and any metacharacter a pattern, and the replace was global and unanchored, so a match was removed from anywhere in the string. With root_host example.com, Host: foo.exampleXcom.attacker.net returned the tenant foo.attacker.net. A metacharacter-bearing or nil root host degraded the pattern or raised on every request. The comparison was also case-sensitive, so TENANT.EXAMPLE.COM and EXAMPLE.COM slipped past the root-host allowlist. conn.host comes from the client Host header. The fix matches the root host case-insensitively and only as an exact trailing suffix.\n\nThis issue affects ash_phoenix: from 2.1.26 before 2.3.25.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nPermissive Regular Expression vulnerability in ash-project ash_phoenix lets a remote client select the tenant an Ash application uses, or degrade the request, by sending a crafted `Host` header.\n\n`AshPhoenix.Helpers.get_subdomain/2` stripped the root domain with `String.replace(host, ~r/.?#{root_host}/, \"\")`. The root host was interpolated raw, so each `.` became a wildcard and any metacharacter a pattern, and the replace was global and unanchored, so a match was removed from anywhere in the string. With `root_host` `example.com`, `Host: foo.exampleXcom.attacker.net` returned the tenant `foo.attacker.net`. A metacharacter-bearing or `nil` root host degraded the pattern or raised on every request. The comparison was also case-sensitive, so `TENANT.EXAMPLE.COM` and `EXAMPLE.COM` slipped past the root-host allowlist. `conn.host` comes from the client `Host` header. The fix matches the root host case-insensitively and only as an exact trailing suffix.\n\nThis issue affects ash_phoenix: from 2.1.26 before 2.3.25.\n\n## Configurations\n\nThe application uses subdomain-based multitenancy via `AshPhoenix.Helpers.get_subdomain/2` (for example through `AshPhoenix.LiveView.SubdomainHook`) to select the tenant from the request host.","format":"markdown","source":"eef"}],"published":"2026-08-31T03:05:38.612Z","modified":"2026-11-25T06:30:14.806Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"}],"cwes":["CWE-178","CWE-625"],"affected":[{"ranges":[{"type":"semver","introduced":"2.1.26","fixed":"2.3.25","status":"affected"}],"vendor":"ash-project","product":"ash_phoenix","package":"ash_phoenix","cpe":"cpe:2.3:a:ash-project:ash_phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_phoenix","source":"cvelist"},{"ranges":[{"type":"git","introduced":"9a5ea4d377bc263de321d79574872a3dfc4fb541","fixed":"8306f29e77526840c89f3cd244996ce7c0fa2cda","status":"affected"}],"vendor":"ash-project","product":"ash_phoenix","package":"ash-project/ash_phoenix","cpe":"cpe:2.3:a:ash-project:ash_phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_phoenix","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.1.26","status":"affected","fixed":"2.3.25"}],"ecosystem":"Hex","package":"ash_phoenix","purl":"pkg:hex/ash_phoenix","source":"eef"},{"ranges":[{"type":"git","introduced":"9a5ea4d377bc263de321d79574872a3dfc4fb541","status":"affected","fixed":"8306f29e77526840c89f3cd244996ce7c0fa2cda"}],"repo":"https://github.com/ash-project/ash_phoenix","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_phoenix/security/advisories/GHSA-rpf8-q9jh-qxrr","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82726.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82726","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_phoenix/commit/9a5ea4d377bc263de321d79574872a3dfc4fb541","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_phoenix/commit/8306f29e77526840c89f3cd244996ce7c0fa2cda","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_phoenix","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-31T14:47:10.055Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82726","url":"https://www.cve.org/CVERecord?id=CVE-2026-82726","licence":"CVE Terms of Use","modified":"2026-11-19T08:38:30.795Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-82726","url":"https://osv.dev/vulnerability/EEF-CVE-2026-82726","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:14.806Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82726","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82726","licence":"Public domain","modified":"2026-11-19T09:18:06.940Z"}],"updatedAt":"2026-11-25T22:59:35.796Z","epss":{"score":0.00382,"percentile":0.3442,"date":"2026-12-01T12:00:22.000Z"}}