{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3'"],"packageName":"ex_aws_s3","packageURL":"pkg:hex/ex_aws_s3","product":"ex_aws_s3","programFiles":["lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3':presigned_url/5"},{"name":"'Elixir.ExAws.S3':presigned_post/4"},{"name":"'Elixir.ExAws.S3':url_to_sign/5"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"2.6.0","status":"affected","version":"2.0.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3'"],"packageName":"ex-aws/ex_aws_s3","packageURL":"pkg:github/ex-aws/ex_aws_s3","product":"ex_aws_s3","programFiles":["lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3':presigned_url/5"},{"name":"'Elixir.ExAws.S3':presigned_post/4"},{"name":"'Elixir.ExAws.S3':url_to_sign/5"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"ea26e8b43785f3ff1f14d6b22d8069fc06a58e55","status":"affected","version":"4ce4d72219c0cb8de9356278203d8ea780311b75","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reachable only when presigned URLs or POST forms are generated with <code>virtual_host: true</code>, <code>s3_accelerate: true</code> or <code>bucket_as_host: true</code> and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.</p>"},{"base64":false,"type":"text/markdown","value":"Reachable only when presigned URLs or POST forms are generated with `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."}],"value":"Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","versionEndExcluding":"2.6.0","versionStartIncluding":"2.0.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"coordinator","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Bernard Duggan"}],"dateAssigned":"2026-11-24T14:02:01.000Z","datePublic":"2026-11-24T14:13:15.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.</p>\n<p>With <code>virtual_host: true</code>, <code>s3_accelerate: true</code> or <code>bucket_as_host: true</code>, <code>ExAws.S3.presigned_url/5</code> and <code>ExAws.S3.presigned_post/4</code> build the URL from the bucket name without checking it. A bucket such as <code>attacker.example/x?</code> turns the URL into <code>https://attacker.example/x?.s3.amazonaws.com...</code>, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With <code>bucket_as_host: true</code> any valid hostname works as the bucket name.</p>\n<p>This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.</p>"},{"base64":false,"type":"text/markdown","value":"Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true`, `ExAws.S3.presigned_url/5` and `ExAws.S3.presigned_post/4` build the URL from the bucket name without checking it. A bucket such as `attacker.example/x?` turns the URL into `https://attacker.example/x?.s3.amazonaws.com...`, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With `bucket_as_host: true` any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."}],"value":"Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."}],"impacts":[{"capecId":"CAPEC-154","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker's host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application's name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.</p>"},{"base64":false,"type":"text/markdown","value":"An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker's host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application's name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."}],"value":"An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker's host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application's name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":5.8,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-610","description":"CWE-610 Externally Controlled Reference to a Resource in Another Sphere","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T14:13:16.822Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4","tags":["vendor-advisory","related"],"url":"https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7"},{"name":"EEF CNA record for CVE-2026-63582","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-63582.html"},{"name":"OSV record EEF-CVE-2026-63582","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-63582"},{"name":"Introducing commit 4ce4d72 in ex-aws/ex_aws_s3","tags":["related"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"},{"name":"Fix commit ea26e8b in ex-aws/ex_aws_s3","tags":["patch"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With <code>bucket_as_host: true</code>, a syntactically valid hostname is still used as the host after upgrading: applications that presign with <code>bucket_as_host: true</code> and bucket names they do not fully control must also pass the <code>bucket_as_host_allowlist</code> option, or set it in the S3 config, with the list of trusted hostnames.</p>"},{"base64":false,"type":"text/markdown","value":"Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With `bucket_as_host: true`, a syntactically valid hostname is still used as the host after upgrading: applications that presign with `bucket_as_host: true` and bucket names they do not fully control must also pass the `bucket_as_host_allowlist` option, or set it in the S3 config, with the list of trusted hostnames."}],"value":"Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames."}],"source":{"discovery":"EXTERNAL"},"title":"S3 bucket name controls the host of presigned URLs in ex_aws_s3","x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>An application presigns uploads for per-tenant buckets with <code>virtual_host: true</code>.</li>\n<li>A tenant sets its bucket name to <code>attacker.example/x?</code>.</li>\n<li><code>ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)</code> returns <code>https://attacker.example/x?.s3.amazonaws.com%2Fkey=&amp;X-Amz-Credential=...</code>, and <code>presigned_post/4</code> returns the form action <code>https://attacker.example/x?.s3.amazonaws.com</code>.</li>\n<li><code>URI.parse/1</code> on either yields the host <code>attacker.example</code>, so any client given the URL or form connects there.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. An application presigns uploads for per-tenant buckets with `virtual_host: true`.\n2. A tenant sets its bucket name to `attacker.example/x?`.\n3. `ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)` returns `https://attacker.example/x?.s3.amazonaws.com%2Fkey=&X-Amz-Credential=...`, and `presigned_post/4` returns the form action `https://attacker.example/x?.s3.amazonaws.com`.\n4. `URI.parse/1` on either yields the host `attacker.example`, so any client given the URL or form connects there."}],"value":"* An application presigns uploads for per-tenant buckets with virtual_host: true.\n* A tenant sets its bucket name to attacker.example/x?.\n* ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true) returns https://attacker.example/x?.s3.amazonaws.com%2Fkey=&X-Amz-Credential=..., and presigned_post/4 returns the form action https://attacker.example/x?.s3.amazonaws.com.\n* URI.parse/1 on either yields the host attacker.example, so any client given the URL or form connects there."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. URL construction.</strong> The private <code>url_to_sign/5</code> in <code>lib/ex_aws/s3.ex</code> builds the URL for <code>presigned_url/5</code> and <code>presigned_post/4</code> as <code>\"#{scheme}#{bucket}.#{host}#{port}#{object}\"</code> when <code>virtual_host</code> is set, or <code>\"#{scheme}#{bucket}#{port}#{object}\"</code> with <code>bucket_as_host</code>. <code>s3_accelerate: true</code> sets <code>virtual_host</code> and takes the same branch. The bucket name is not checked.</p>\n<p><strong>2. Signing for the attacker's host.</strong> The string goes to <code>ExAws.Auth.presigned_url/9</code>, which signs <code>URI.parse(url).authority</code>. For the bucket <code>attacker.example/x?</code> the signed host is <code>attacker.example</code>, and the <code>?</code> pushes the object key into the query string.</p>\n<p><strong>3. Effect.</strong> Presigned URLs are built locally and never pass through <code>ExAws.Operation.S3.add_bucket_to_path/2</code>, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and <code>X-Amz-Credential</code> discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS.</p>"},{"base64":false,"type":"text/markdown","value":"**1. URL construction.** The private `url_to_sign/5` in `lib/ex_aws/s3.ex` builds the URL for `presigned_url/5` and `presigned_post/4` as `\"#{scheme}#{bucket}.#{host}#{port}#{object}\"` when `virtual_host` is set, or `\"#{scheme}#{bucket}#{port}#{object}\"` with `bucket_as_host`. `s3_accelerate: true` sets `virtual_host` and takes the same branch. The bucket name is not checked.\n\n**2. Signing for the attacker's host.** The string goes to `ExAws.Auth.presigned_url/9`, which signs `URI.parse(url).authority`. For the bucket `attacker.example/x?` the signed host is `attacker.example`, and the `?` pushes the object key into the query string.\n\n**3. Effect.** Presigned URLs are built locally and never pass through `ExAws.Operation.S3.add_bucket_to_path/2`, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and `X-Amz-Credential` discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."}],"value":"1. URL construction. The private url_to_sign/5 in lib/ex_aws/s3.ex builds the URL for presigned_url/5 and presigned_post/4 as \"#{scheme}#{bucket}.#{host}#{port}#{object}\" when virtual_host is set, or \"#{scheme}#{bucket}#{port}#{object}\" with bucket_as_host. s3_accelerate: true sets virtual_host and takes the same branch. The bucket name is not checked.\n\n2. Signing for the attacker's host. The string goes to ExAws.Auth.presigned_url/9, which signs URI.parse(url).authority. For the bucket attacker.example/x? the signed host is attacker.example, and the ? pushes the object key into the query string.\n\n3. Effect. Presigned URLs are built locally and never pass through ExAws.Operation.S3.add_bucket_to_path/2, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and X-Amz-Credential discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-63582","datePublished":"2026-11-24T14:13:16.822Z","dateReserved":"2026-07-17T04:14:44.351Z","dateUpdated":"2026-11-24T14:13:16.822Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}