Skip to main content
Mallory
← Back to News
cloud-service-vulnerabilityopen-source-dependency-vulnerabilityai-platform-securitydata-exfiltration-method

S3 Bucket Squatting Exposes SageMaker, Athena and EMR Workflows Across AWS Accounts

Vulnerability Disclosure · 6 sources · Updated 25d ago · First seen Nov 2, 2026

S3 Bucket Squatting Exposes SageMaker, Athena and EMR Workflows Across AWS Accounts

Researchers at Upwind disclosed three S3 bucket-squatting vulnerabilities affecting the SageMaker Python SDK and AWS SDK for pandas (awswrangler), enabling cross-account code execution, data theft and data poisoning. Predictable default bucket names and missing or ineffective ownership checks allowed attacker-owned storage to be accepted by victim workflows. In SageMaker, CVE-2026-112408, rated CVSS 4.0 9.4, enabled demonstrated processing-job and persistent inference-endpoint code injection, including IAM credential exfiltration. In Athena, CVE-2026-118029, rated 5.9, exposed query results and allowed CTAS manifest manipulation to substitute attacker-modified data. EMR logging configurations generated by the pandas library could send sensitive logs to attacker-controlled buckets—even buckets created after cluster startup, because uploads were buffered and retried. An assisted assessment captured approximately 20,000 log files; the reports do not establish malicious exploitation.

AWS addressed the SDK exposures in SageMaker Python SDK 3.10.0, AWS SDK for pandas 3.16.1 for Athena, and 3.18.0 for EMR logging. However, Upwind reported that EMR’s underlying RunJobFlow API still lacked bucket-existence and ownership checks, despite protections in the console. The findings show that earlier service-level mitigations and the introduction of account-namespaced buckets did not protect every SDK and API path. Organizations should upgrade affected libraries, verify bucket ownership in every account and region, replace predictable defaults with explicitly trusted destinations, enforce Athena workgroup result settings where appropriate, and audit workloads for references to buckets outside their accounts.

Why it matters

Organizations using vulnerable SageMaker Python SDK or AWS SDK for pandas (awswrangler) workflows can unknowingly use attacker-owned S3 buckets, exposing executable code, IAM credentials, inference requests, query results, and EMR logs. SageMaker exploitation can compromise execution environments and persist in deployed endpoints; Athena and EMR exposure threatens data confidentiality and integrity while workflows may continue operating normally. Researchers demonstrated exploitation and captured approximately 20,000 EMR log files during an assisted customer assessment, but the supplied reports do not establish malicious exploitation in the wild.

  • Industry-specific impact is not established. Affected customer organizations are not identified by sector; references to financial records, personal information, and machine-learning workloads do not establish specific industry targeting or impact.
  • Geography-specific impact is not established. Exposure was identified across multiple AWS accounts and regions, but no affected countries or geographic targeting are specified.
  • Scope: Potentially cross-account exposure wherever predictable, globally shared bucket names are accepted without ownership verification. The EMR report identifies exposed configurations across multiple organizations; custom scripts and infrastructure templates can retain the same risk after library upgrades. Source
  • Residual risk: Library fixes do not necessarily remediate existing workload destinations, previously modified artifacts, or direct EMR API integrations. Upwind reports that RunJobFlow still lacked bucket-existence and ownership validation at disclosure.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

22 events · Oct 2023 – Oct 28, 2026
  1. Reported Nov 2, 202626d ago

    AWS previously removes Athena's service-level predictable results default

    AWS previously remediated the Athena service by requiring an explicitly specified query-results bucket. The aws-sdk-pandas implementation independently retained predictable bucket generation, leaving its users exposed.

    Kick the Bucket: S3 Bucket Squatting Through a Series of Half-Patched AWS Patterns - Upwind
  2. Reported Nov 2, 202626d ago

    Independent researcher demonstrates EMR logging-bucket recreation

    Yahav Festinger independently demonstrated that an attacker could recreate a deleted EMR logging bucket and receive logs when EMR resumed uploading to that destination.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  3. Reported Nov 2, 202626d ago

    Upwind captures approximately 20,000 EMR logs during an assisted assessment

    After identifying exposed EMR configurations across multiple organizations, Upwind registered an affected organization's default logging bucket during an assisted assessment and received approximately 20,000 log files. The report describes researcher-controlled capture, not confirmed malicious exploitation.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  4. Reported Nov 2, 202626d ago

    Upwind captures 49 EMR test-cluster log files

    Upwind captured 49 log files from a test cluster running a PySpark step. The logs exposed application output, step source code, configuration details, and a PYSPARK_GATEWAY_SECRET authentication token.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  5. Reported Nov 2, 202626d ago

    Researchers demonstrate Athena result poisoning through CTAS manifests

    An attacker-controlled Lambda function modified Parquet results and overwrote a CTAS manifest in a squatted results bucket. The demonstration preserved the original data while adding an attacker-controlled column that the victim loaded into a DataFrame.

    Athena's Trojan Horse: Cross-Tenant Data Poisoning and Exfiltration via AWS Athena - Upwind
  6. Reported Nov 2, 202626d ago

    Researchers demonstrate persistent SageMaker endpoint code injection

    Researchers replaced serving code in an attacker-owned default bucket before endpoint deployment. The demonstrated payload exfiltrated IAM credentials and inference-request bodies while the endpoint continued returning correct predictions.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  7. Reported Nov 2, 202626d ago

    Researchers demonstrate SageMaker processing-job code injection

    Researchers used an S3-triggered Lambda function to modify an uploaded processing script before SageMaker executed it. The payload exfiltrated live execution-role credentials, environment variables, and input data while preserving normal job execution.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  8. Oct 28, 20261mo ago

    CVE-2026-118029 is published

    The CVE record was published and last updated on October 28, identifying aws-sdk-pandas versions before 3.16.1 as affected. It classified the issue as unverified ownership and assigned medium severity with a score of 5.9 under CVSS 3.1 and 4.0.

    CVE Record: CVE-2026-118029
  9. Oct 2026

    AWS releases aws-sdk-pandas 3.18.0 with the EMR logging fix

    AWS released aws-sdk-pandas 3.18.0 in late October with the reported library-side fix for EMR logging-bucket validation. The new check requires s3:ListBucket permission and rejects destinations that are missing, externally owned, or unverifiable.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  10. Oct 2026

    AWS assigns CVE-2026-118029 to the Athena vulnerability

    AWS assigned CVE-2026-118029 in late October to the aws-sdk-pandas Athena bucket-ownership vulnerability.

    Athena's Trojan Horse: Cross-Tenant Data Poisoning and Exfiltration via AWS Athena - Upwind
  11. Oct 2026

    AWS assigns CVE-2026-112408 to the SageMaker vulnerability

    AWS assigned CVE-2026-112408 in mid-October. The reported vulnerability received a CVSS 4.0 score of 9.4.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  12. Oct 2026

    AWS accepts the EMR library fix and reopens the vulnerability report

    The aws-sdk-pandas pull request addressing EMR logging-bucket validation was accepted in October. The corresponding HackerOne report was also reopened that month.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  13. Sep 2026

    AWS confirms CVE eligibility for the SageMaker vulnerability

    AWS's CVE Numbering Authority confirmed in mid-September that the SageMaker Python SDK vulnerability qualified for a CVE.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  14. Sep 2026

    Researchers submit an aws-sdk-pandas fix for EMR logging

    Researchers submitted a library-side fix to verify the existence and ownership of EMR logging buckets before using them.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  15. May 2026

    AWS releases aws-sdk-pandas 3.16.1 to fix Athena bucket handling

    AWS released aws-sdk-pandas 3.16.1 in early May through pull request #3314. The release added bucket-ownership verification and integrity validation for CTAS manifests.

    Athena's Trojan Horse: Cross-Tenant Data Poisoning and Exfiltration via AWS Athena - Upwind
  16. May 2026

    AWS releases SageMaker Python SDK 3.10.0 with ownership validation

    AWS released SageMaker Python SDK 3.10.0 in early May through pull requests #5801 and #5803. The fix added ExpectedBucketOwner validation to S3 data-plane calls across the SDK.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  17. Apr 2026

    Researchers report EMR log exposure; AWS initially closes the report

    Researchers reported the EMR logging vulnerability to AWS through HackerOne in late April. AWS initially closed the report as informative.

    Spark in the Dark: Silent Cross-Tenant Log Exfiltration in Amazon EMR - Upwind
  18. Apr 2026

    Researchers disclose the Athena SDK vulnerability to AWS

    Researchers identified and reported the aws-sdk-pandas Athena vulnerability through HackerOne, and AWS triaged it in late April. The flaw allowed attacker-owned default result buckets to capture query output and support result poisoning.

    Athena's Trojan Horse: Cross-Tenant Data Poisoning and Exfiltration via AWS Athena - Upwind
  19. Apr 2026

    AWS triages the SageMaker vulnerability report

    AWS triaged the SageMaker Python SDK report in mid-April, following the researchers' disclosure earlier that month.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  20. Apr 2026

    Researchers report the SageMaker bucket-squatting vulnerability

    Researchers disclosed the exploitable SageMaker Python SDK ownership-validation vulnerability to AWS Security through HackerOne in early April.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
  21. Mar 2026

    AWS introduces account-namespaced S3 buckets

    AWS introduced account-namespaced S3 buckets, providing an alternative to globally shared predictable bucket names. None of the SDK implementations examined by the researchers had adopted them.

    Kick the Bucket: S3 Bucket Squatting Through a Series of Half-Patched AWS Patterns - Upwind
  22. Oct 2023

    SageMaker SDK adds an ineffective bucket-ownership check

    AWS introduced ExpectedBucketOwner validation in SageMaker Python SDK 2.190.0, but the check ran only for buckets appearing in the caller's owned-bucket listing. Attacker-owned buckets bypassed that validation, and several upload and download paths also lacked ownership checks.

    Training on Enemy Ground: Cross-Tenant RCE in Amazon SageMaker - Upwind
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.