CVE-2026-63583 in ex_aws_s3
Summary
by MITRE • 11/24/2026
ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.
This issue affects ex_aws_s3: from 2.3.0 before 2.6.0.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The vulnerability identified in the ex_aws_s3 library, specifically within the ExAws.S3.Utils.build_lifecycle_rule/1 function, represents a critical XML injection flaw that compromises the integrity of Amazon S3 bucket configurations. This security issue stems from the direct interpolation of caller-supplied lifecycle rule fields into an XML body without performing any necessary escaping or sanitization of special characters. The affected parameters include the rule identifier, filter prefix, tag keys and values, storage class specifications, and noncurrent version counts. Because these inputs are treated as raw data rather than escaped content, they serve as vectors for attackers to manipulate the structure of the XML document sent to AWS S3 services.
From a technical perspective, this flaw allows an attacker who controls any part of the input data to break out of the intended XML element boundaries. By injecting specific sequences such as greater-than or less-than signs along with closing tags, an adversary can introduce arbitrary XML structures into the request payload. This capability effectively bypasses the application logic that is supposed to validate and format these rules correctly. The vulnerability is particularly dangerous because it affects the public entry point ExAws.S3.put_bucket_lifecycle/2, which flows directly into the vulnerable builder function, making any application using this library susceptible if untrusted data is passed through lifecycle configuration endpoints.
The operational impact of this vulnerability is severe and potentially catastrophic for cloud infrastructure management. An attacker can inject entirely new lifecycle actions that alter how objects are stored or deleted within a bucket. For instance, an adversary could craft a malicious payload to insert a rule that deletes all objects in the target bucket after just one day. This results in immediate data loss and service disruption for legitimate users relying on those resources. Beyond deletion, other injected rules could redirect storage classes to more expensive tiers causing financial impact or set expiration dates far into the future preventing necessary cleanup of old data. The lack of input validation means that even seemingly innocuous fields like tag values can be weaponized to execute these destructive actions against cloud storage assets.
This vulnerability aligns with CWE-74, which describes Improper Neutralization of Special Elements in Output Used by a Downstream Component, commonly known as XML Injection. It also relates to CWE-915, specifically the Improper Modification of Dynamically-Determined Variables, where user input improperly alters program logic or configuration structures. In terms of offensive security frameworks, this technique corresponds to ATT&CK T1190, Exploit Public-Facing Application, and potentially T1486, Data Encrypted for Impact if the injection leads to data destruction that mimics ransomware behavior by rendering assets inaccessible through automated deletion policies rather than encryption.
Mitigation strategies must focus on immediate patching and input validation enhancements. The primary remediation is to upgrade the ex_aws_s3 library to version 2.6.0 or later, where this interpolation issue has been addressed with proper XML escaping mechanisms applied to all user-supplied fields before they are incorporated into the request body. For applications unable to update immediately due to dependency constraints, developers should implement strict input validation at the application layer by sanitizing any data derived from untrusted sources such as tenant inputs or external API responses before passing them to lifecycle configuration functions. Additionally, implementing least-privilege IAM policies for the AWS credentials used by the application can limit the blast radius if an injection attempt succeeds, although this does not prevent the initial exploitation of the vulnerability itself.