Descrizione
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.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.0, EPSS 0.2% (percentile 9).
Versioni da aggiornare
- ex-aws ex_aws_s3: vulnerabili le versioni dalla
2.3.0precedenti alla2.6.0→ aggiornare alla2.6.0o successiva.
Indicazioni del vendor
Workaround (testo originale del vendor):
Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| ex-aws | ex_aws_s3 | ≥ 2.3.0 < 2.6.0 | 2.6.0 |
Riferimenti
- Riferimentohttps://cna.erlef.org/cves/CVE-2026-63583.html
- Riferimentohttps://github.com/ex-aws/ex_aws_s3/commit/34a3f1b264bd9a28d68fa98173af7085da72a15b
- Riferimentohttps://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397
- Riferimentohttps://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-pcgv-phrm-r85v
- Riferimentohttps://osv.dev/vulnerability/EEF-CVE-2026-63583