Skip to content
High 7.0

ex_aws_s3でXML注入の脆弱性、ライフサイクルルールを改ざんされるおそれ

CVE-2026-63583 First seen on SecPulse

Summary

ex_aws_s3のExAws.S3.Utils.build_lifecycle_rule/1では、ライフサイクルルールの項目がXMLとしてエスケープされないまま組み立てられます。外部から入力された値を使うアプリケーションでは、攻撃者が任意のXMLを注入し、バケット内のオブジェクトを削除する設定を追加されるおそれがあります。2.3.0以降2.6.0未満が対象で、修正版では問題が解消されています。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

ex_aws_s3のExAws.S3.Utils.build_lifecycle_rule/1では、ライフサイクルルールの項目がXMLとしてエスケープされないまま組み立てられます。外部から入力された値を使うアプリケーションでは、攻撃者が任意のXMLを注入し、バケット内のオブジェクトを削除する設定を追加されるおそれがあります。2.3.0以降2.6.0未満が対象で、修正版では問題が解消されています。

Affected packages

PackageAffected → Fixed
ex-awsex_aws_s3
≥ 34a3f1b264bd9a28d68fa98173af7085da72a15b, < eda0b9b9c63707f7db8d8f18c331df7fda57c397→ eda0b9b9c63707f7db8d8f18c331df7fda57c397
Hexex_aws_s3
≥ 2.3.0, < 2.6.0→ 2.6.0
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details