Ex Aws
Monthly
XML injection in the ex_aws_s3 Elixir library (2.3.0 through 2.5.x) lets an attacker who controls any value that an application forwards into a bucket lifecycle rule - rule id, filter prefix, tag key or value, storage class, or noncurrent-version count - break out of the surrounding XML element inside the PutBucketLifecycleConfiguration request body and inject arbitrary lifecycle actions, including a short expiration that would delete the bucket's objects. The flaw is in ExAws.S3.Utils.build_lifecycle_rule/1 and is reachable through the public ExAws.S3.put_bucket_lifecycle/2 entry point; applications that build lifecycle rules only from static or server-controlled values are not affected. Exploitation is conditional on such a data path existing, is rated high severity (CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H), a vendor patch is available, and no public exploit was identified at time of analysis.
Relative path traversal in the ex_aws Elixir S3 client (versions 2.1.7 up to, but not including, 2.8.0) allows an attacker who controls an S3 object key to escape the bucket or key prefix the application intended to use, causing the request - signed with the application's own AWS credentials - to be sent to a different bucket or outside a trusted prefix. Exploitation requires the default path-style addressing (deployments configured with virtual_host: true are not affected, since that branch skips the problematic normalization), plus an application that builds keys from untrusted input and treats the bucket name or a prepended prefix as a tenant or trust boundary; reachable impact is bounded by the permissions attached to the application's credentials. The independent assessment rates this CVSS:3.1 AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:N, and no public exploit was identified at time of analysis; the vendor's only complete fix is upgrading to 2.8.0.
ExAws, the Elixir AWS SDK, requests its IMDSv2 session token from the link-local metadata endpoint with redirect following enabled, so an attacker who can answer that request with a 3xx redirect can substitute an arbitrary host's response body as the session token. The poisoned token is cached by ExAws.InstanceMetaTokenProvider and then sent as the x-aws-ec2-metadata-token header on every later metadata and credential call, giving the attacker a foothold over instance metadata and credential retrieval. Versions 2.3.0 through 2.7.x are affected and the vendor has released 2.8.0 as the fix; exploitation requires an attacker positioned on the same adjacent network segment as the instance (not internet-reachable) and involves winning a spoof/race against the legitimate metadata service, and there is no confirmed active exploitation or public exploit code identified at time of analysis.
Path injection in the ex_aws_ses Elixir library (2.3.0 through 2.4.x) lets attacker-influenced contact-list names steer signed Amazon SES V2 requests to other account-level SES endpoints. The ExAws.SES contact-list and contact helpers interpolate list_name directly into the request path without URI-encoding - unlike the email argument, which is passed through ExAws.Request.Url.uri_encode/1 - so a value such as x/../suppression/addresses/victim%40example.com makes delete_contact_list/1 arrive at the account-wide suppression list instead of contact-lists/<name>. The assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N) rates it unauthenticated, but exploitation is conditional: the calling application must forward untrusted input as list_name, impact stays inside that application's own AWS account (requests are signed with its credentials to the configured SES host), and apps using hardcoded or strictly validated names are unaffected; no public exploit identified at time of analysis, and a vendor fix is available.
XML injection in the Elixir library ex_aws_s3 (versions 2.0.2 up to but not including 2.6.0) allows forged S3 tag entries to be written when an application passes attacker-influenced tag keys or values into ExAws.S3.put_object_tagging/4 or ExAws.S3.put_bucket_tagging/2, which interpolate those values directly into the <TagSet> XML body. Successful injection can produce tags that satisfy IAM tag-based conditions (aws:RequestTag, s3:ExistingObjectTag) or otherwise corrupt the intended tag set; there is no confidentiality or availability impact, and exploitation only works where an application forwards unsanitized, user-supplied tag data. Exploitation requires that specific application-level data flow, no public exploit code has been identified at time of analysis, and the vendor-released fix is version 2.6.0.
XML injection in ex_aws_s3 2.5.9 before 2.6.0 lets an attacker who can influence values passed to the bucket-configuration builders inject arbitrary XML elements into the signed S3 request body. Only applications that call put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, or put_bucket_website/2 with attacker-influenced logging target/prefix, notification ARN, replication destination/Account, or website redirect HostName are exposed, most plausibly in multi-tenant deployments. No public exploit has been identified at time of analysis; the CVSS 4.0 base score is 6.9, and impact is integrity-only with no confidentiality or availability effect and no host code execution.
CRLF and header injection in the Elixir library ExAws.S3 lets an attacker-controlled S3 object key corrupt or split the x-amz-copy-source header that upload_part_copy/8 builds, affecting versions 2.0.0 through 2.5.x (fixed in 2.6.0). Because the key is interpolated raw, spaces, '?', '&' and '=' silently retarget the multipart copy at the wrong object or cause it to fail, while embedded carriage-return or newline characters may inject or split headers depending on the configured HTTP backend - many clients reject control characters in header values, so in practice the integrity impact is often limited to copy-target corruption. This is a low-priority issue: CVSS 4.0 base 2.1 and the independent assessment's CVSS 3.1 AV:N/AC:H/PR:N/UI:N/C:N/I:L/A:N both reflect a high-attack-complexity, integrity-only condition, the vendor has released a patch, and no public exploit has been identified at time of analysis (no CISA KEV entry).
Improper XML escaping in ExAws.S3's delete_multiple_objects/3 lets an attacker who controls an object version id injected into the batch-delete request body add arbitrary <Object><Key> entries, causing S3 to delete objects the application never listed - including other users' objects in the same bucket. The flaw affects ex_aws_s3 versions 2.0.0 through 2.5.x and is fixed in 2.6.0; exploitation requires that the consuming Elixir/Erlang application pass an unsanitized, attacker-supplied version id to that function, and no authentication against the library itself is required per the CVSS PR:N metric, with the vendor's AT:P reflecting the prerequisite of controlling that input. No public exploit code has been identified at time of analysis, and this is a moderate-severity data-destruction issue prioritised for remediation this month rather than an emergency.
Presigned URL and presigned POST generation in the Elixir library ex_aws_s3 (2.0.0 through 2.5.x) can be redirected to an attacker-chosen host because the bucket name is interpolated into the URL host without validation. When an application enables virtual_host: true, s3_accelerate: true or bucket_as_host: true and an attacker can influence the bucket name (for example 'attacker.example/x?'), the resulting presigned link resolves to https://attacker.example/... and the signature is computed for that host, so clients that follow the link send uploads or downloads, and the embedded access key id, to the attacker. The flaw is CWE-610 (externally controlled reference to a resource in another sphere), scored 5.8 by the erlef CNA and medium severity in independent assessment; exploitation requires non-default options plus a victim actually using the generated link, and no public exploit was identified at time of analysis. Version 2.6.0 is the vendor fix.
ACL grantee injection in the Elixir library ex_aws_s3 (2.0.0 up to but not including 2.6.0) allows an attacker who controls a grantee value supplied by the integrating application to smuggle additional grantees - including their own canonical ID or the AllUsers URI - into the x-amz-grant-* headers, letting S3 apply permissions the developer never intended, up to full control or public access. The flaw sits in format_grant_header/1, which quotes and comma-joins grantee email and ID values without neutralizing double-quote, comma, or CR/LF characters. Only applications that feed attacker-influenced values into grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control are exposed; the vendor has released a fix in 2.6.0, and no public exploit code was identified at time of analysis (CVSS 4.0 base 4.8, assessed as network-reachable with high attack complexity and scope change).
HTTP header injection in ex_aws_s3 2.0.0 through 2.5.x lets an application that places attacker-influenced data into S3 object metadata have CR/LF characters carried into outbound x-amz-meta-* headers, potentially splitting the HTTP request sent to the S3 endpoint. No authentication is required beyond the ability to influence object metadata, but exploitation requires the integrating application to route such input into the :meta option and the configured ExAws HTTP adapter to fail to neutralize illegal header bytes. Vendor-released patch: 2.6.0; no public exploit identified at time of analysis.
Type confusion in ex_aws_dynamo's ExAws.Dynamo.Encoder.encode/2 allows attacker-influenced map data to dictate the raw DynamoDB AttributeValue type, bytes, and structure in applications that pass such maps into DynamoDB writes or queries. Versions 2.0.0 through releases before 4.3.0 are affected, with primary impact on stored-data integrity, schema and authorization checks, and read-back availability for the affected item. The vendor has released a patch, and no public exploit was identified at time of analysis.
ExAws KMS versions 2.1.0 before 2.7.0 default the wrapping algorithm used by ExAws.KMS.get_parameters_for_import/3 to RSAES_PKCS1_V1_5, steering callers who import external key material toward PKCS#1 v1.5 RSA padding instead of OAEP. The practical risk is low and defense-in-depth: AWS KMS performs the unwrap and does not expose the padding oracle a Bleichenbacher attack would need, and only BYOK import callers that fail to override the default are in scope. No public exploit was identified at time of analysis; the vendor has released a patch.
Server-side request forgery in the ex_aws Elixir AWS client can redirect signed S3 requests to an attacker-chosen host when virtual_host: true or bucket_as_host: true is configured and the S3 bucket name is attacker-influenced. Affected releases are 2.1.7 up to but not including 2.8.0; exploitation also requires a non-default configuration, so deployments using static bucket names and the default path-style mode are not exposed. An attacker can receive upload bodies and signing data such as the access key ID, request signature and any STS session token, and can control the response the application parses; this is rated medium (CVSS 5.9), with no public exploit identified at time of analysis.
S3 request tampering in the Elixir ex_aws library (2.1.2 up to but not including 2.8.0) allows attackers who control part of an S3 object key - for example a download or upload keyed by a user-supplied filename - to truncate the key past application-appended suffixes and address a different object than the application intended, or to inject live S3 sub-resource operations such as ?acl, ?tagging or ?versions into the request, which is then signed and transmitted as if legitimate. The root cause is that reserved characters, notably a literal '?', are not percent-encoded when the request URL is assembled, because sanitize/2 splits the flattened URL on the first '?' before uri_encode is applied to the path. Assessed severity is moderate (CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) with no public exploit identified at time of analysis; exploitation requires an application that builds S3 keys from attacker-controllable input and relies on ex_aws to encode them, so impact is confined to S3 request addressing within the application's own authorized AWS context rather than host code execution. Upgrading to 2.8.0 is the vendor fix.
XML injection in the ex_aws_s3 Elixir library (2.3.0 through 2.5.x) lets an attacker who controls any value that an application forwards into a bucket lifecycle rule - rule id, filter prefix, tag key or value, storage class, or noncurrent-version count - break out of the surrounding XML element inside the PutBucketLifecycleConfiguration request body and inject arbitrary lifecycle actions, including a short expiration that would delete the bucket's objects. The flaw is in ExAws.S3.Utils.build_lifecycle_rule/1 and is reachable through the public ExAws.S3.put_bucket_lifecycle/2 entry point; applications that build lifecycle rules only from static or server-controlled values are not affected. Exploitation is conditional on such a data path existing, is rated high severity (CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H), a vendor patch is available, and no public exploit was identified at time of analysis.
Relative path traversal in the ex_aws Elixir S3 client (versions 2.1.7 up to, but not including, 2.8.0) allows an attacker who controls an S3 object key to escape the bucket or key prefix the application intended to use, causing the request - signed with the application's own AWS credentials - to be sent to a different bucket or outside a trusted prefix. Exploitation requires the default path-style addressing (deployments configured with virtual_host: true are not affected, since that branch skips the problematic normalization), plus an application that builds keys from untrusted input and treats the bucket name or a prepended prefix as a tenant or trust boundary; reachable impact is bounded by the permissions attached to the application's credentials. The independent assessment rates this CVSS:3.1 AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:N, and no public exploit was identified at time of analysis; the vendor's only complete fix is upgrading to 2.8.0.
ExAws, the Elixir AWS SDK, requests its IMDSv2 session token from the link-local metadata endpoint with redirect following enabled, so an attacker who can answer that request with a 3xx redirect can substitute an arbitrary host's response body as the session token. The poisoned token is cached by ExAws.InstanceMetaTokenProvider and then sent as the x-aws-ec2-metadata-token header on every later metadata and credential call, giving the attacker a foothold over instance metadata and credential retrieval. Versions 2.3.0 through 2.7.x are affected and the vendor has released 2.8.0 as the fix; exploitation requires an attacker positioned on the same adjacent network segment as the instance (not internet-reachable) and involves winning a spoof/race against the legitimate metadata service, and there is no confirmed active exploitation or public exploit code identified at time of analysis.
Path injection in the ex_aws_ses Elixir library (2.3.0 through 2.4.x) lets attacker-influenced contact-list names steer signed Amazon SES V2 requests to other account-level SES endpoints. The ExAws.SES contact-list and contact helpers interpolate list_name directly into the request path without URI-encoding - unlike the email argument, which is passed through ExAws.Request.Url.uri_encode/1 - so a value such as x/../suppression/addresses/victim%40example.com makes delete_contact_list/1 arrive at the account-wide suppression list instead of contact-lists/<name>. The assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N) rates it unauthenticated, but exploitation is conditional: the calling application must forward untrusted input as list_name, impact stays inside that application's own AWS account (requests are signed with its credentials to the configured SES host), and apps using hardcoded or strictly validated names are unaffected; no public exploit identified at time of analysis, and a vendor fix is available.
XML injection in the Elixir library ex_aws_s3 (versions 2.0.2 up to but not including 2.6.0) allows forged S3 tag entries to be written when an application passes attacker-influenced tag keys or values into ExAws.S3.put_object_tagging/4 or ExAws.S3.put_bucket_tagging/2, which interpolate those values directly into the <TagSet> XML body. Successful injection can produce tags that satisfy IAM tag-based conditions (aws:RequestTag, s3:ExistingObjectTag) or otherwise corrupt the intended tag set; there is no confidentiality or availability impact, and exploitation only works where an application forwards unsanitized, user-supplied tag data. Exploitation requires that specific application-level data flow, no public exploit code has been identified at time of analysis, and the vendor-released fix is version 2.6.0.
XML injection in ex_aws_s3 2.5.9 before 2.6.0 lets an attacker who can influence values passed to the bucket-configuration builders inject arbitrary XML elements into the signed S3 request body. Only applications that call put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, or put_bucket_website/2 with attacker-influenced logging target/prefix, notification ARN, replication destination/Account, or website redirect HostName are exposed, most plausibly in multi-tenant deployments. No public exploit has been identified at time of analysis; the CVSS 4.0 base score is 6.9, and impact is integrity-only with no confidentiality or availability effect and no host code execution.
CRLF and header injection in the Elixir library ExAws.S3 lets an attacker-controlled S3 object key corrupt or split the x-amz-copy-source header that upload_part_copy/8 builds, affecting versions 2.0.0 through 2.5.x (fixed in 2.6.0). Because the key is interpolated raw, spaces, '?', '&' and '=' silently retarget the multipart copy at the wrong object or cause it to fail, while embedded carriage-return or newline characters may inject or split headers depending on the configured HTTP backend - many clients reject control characters in header values, so in practice the integrity impact is often limited to copy-target corruption. This is a low-priority issue: CVSS 4.0 base 2.1 and the independent assessment's CVSS 3.1 AV:N/AC:H/PR:N/UI:N/C:N/I:L/A:N both reflect a high-attack-complexity, integrity-only condition, the vendor has released a patch, and no public exploit has been identified at time of analysis (no CISA KEV entry).
Improper XML escaping in ExAws.S3's delete_multiple_objects/3 lets an attacker who controls an object version id injected into the batch-delete request body add arbitrary <Object><Key> entries, causing S3 to delete objects the application never listed - including other users' objects in the same bucket. The flaw affects ex_aws_s3 versions 2.0.0 through 2.5.x and is fixed in 2.6.0; exploitation requires that the consuming Elixir/Erlang application pass an unsanitized, attacker-supplied version id to that function, and no authentication against the library itself is required per the CVSS PR:N metric, with the vendor's AT:P reflecting the prerequisite of controlling that input. No public exploit code has been identified at time of analysis, and this is a moderate-severity data-destruction issue prioritised for remediation this month rather than an emergency.
Presigned URL and presigned POST generation in the Elixir library ex_aws_s3 (2.0.0 through 2.5.x) can be redirected to an attacker-chosen host because the bucket name is interpolated into the URL host without validation. When an application enables virtual_host: true, s3_accelerate: true or bucket_as_host: true and an attacker can influence the bucket name (for example 'attacker.example/x?'), the resulting presigned link resolves to https://attacker.example/... and the signature is computed for that host, so clients that follow the link send uploads or downloads, and the embedded access key id, to the attacker. The flaw is CWE-610 (externally controlled reference to a resource in another sphere), scored 5.8 by the erlef CNA and medium severity in independent assessment; exploitation requires non-default options plus a victim actually using the generated link, and no public exploit was identified at time of analysis. Version 2.6.0 is the vendor fix.
ACL grantee injection in the Elixir library ex_aws_s3 (2.0.0 up to but not including 2.6.0) allows an attacker who controls a grantee value supplied by the integrating application to smuggle additional grantees - including their own canonical ID or the AllUsers URI - into the x-amz-grant-* headers, letting S3 apply permissions the developer never intended, up to full control or public access. The flaw sits in format_grant_header/1, which quotes and comma-joins grantee email and ID values without neutralizing double-quote, comma, or CR/LF characters. Only applications that feed attacker-influenced values into grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control are exposed; the vendor has released a fix in 2.6.0, and no public exploit code was identified at time of analysis (CVSS 4.0 base 4.8, assessed as network-reachable with high attack complexity and scope change).
HTTP header injection in ex_aws_s3 2.0.0 through 2.5.x lets an application that places attacker-influenced data into S3 object metadata have CR/LF characters carried into outbound x-amz-meta-* headers, potentially splitting the HTTP request sent to the S3 endpoint. No authentication is required beyond the ability to influence object metadata, but exploitation requires the integrating application to route such input into the :meta option and the configured ExAws HTTP adapter to fail to neutralize illegal header bytes. Vendor-released patch: 2.6.0; no public exploit identified at time of analysis.
Type confusion in ex_aws_dynamo's ExAws.Dynamo.Encoder.encode/2 allows attacker-influenced map data to dictate the raw DynamoDB AttributeValue type, bytes, and structure in applications that pass such maps into DynamoDB writes or queries. Versions 2.0.0 through releases before 4.3.0 are affected, with primary impact on stored-data integrity, schema and authorization checks, and read-back availability for the affected item. The vendor has released a patch, and no public exploit was identified at time of analysis.
ExAws KMS versions 2.1.0 before 2.7.0 default the wrapping algorithm used by ExAws.KMS.get_parameters_for_import/3 to RSAES_PKCS1_V1_5, steering callers who import external key material toward PKCS#1 v1.5 RSA padding instead of OAEP. The practical risk is low and defense-in-depth: AWS KMS performs the unwrap and does not expose the padding oracle a Bleichenbacher attack would need, and only BYOK import callers that fail to override the default are in scope. No public exploit was identified at time of analysis; the vendor has released a patch.
Server-side request forgery in the ex_aws Elixir AWS client can redirect signed S3 requests to an attacker-chosen host when virtual_host: true or bucket_as_host: true is configured and the S3 bucket name is attacker-influenced. Affected releases are 2.1.7 up to but not including 2.8.0; exploitation also requires a non-default configuration, so deployments using static bucket names and the default path-style mode are not exposed. An attacker can receive upload bodies and signing data such as the access key ID, request signature and any STS session token, and can control the response the application parses; this is rated medium (CVSS 5.9), with no public exploit identified at time of analysis.
S3 request tampering in the Elixir ex_aws library (2.1.2 up to but not including 2.8.0) allows attackers who control part of an S3 object key - for example a download or upload keyed by a user-supplied filename - to truncate the key past application-appended suffixes and address a different object than the application intended, or to inject live S3 sub-resource operations such as ?acl, ?tagging or ?versions into the request, which is then signed and transmitted as if legitimate. The root cause is that reserved characters, notably a literal '?', are not percent-encoded when the request URL is assembled, because sanitize/2 splits the flattened URL on the first '?' before uri_encode is applied to the path. Assessed severity is moderate (CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) with no public exploit identified at time of analysis; exploitation requires an application that builds S3 keys from attacker-controllable input and relies on ex_aws to encode them, so impact is confined to S3 request addressing within the application's own authorized AWS context rather than host code execution. Upgrading to 2.8.0 is the vendor fix.