A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-8904

CVE-2025-8904: Amazon EMR Privilege Escalation Flaw

CVE-2025-8904 is a privilege escalation vulnerability in Amazon EMR Secret Agent where Kerberos credentials in /tmp/ can be exploited for unauthorized access. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-8904 Overview

CVE-2025-8904 affects the Amazon EMR Secret Agent, which writes a Kerberos keytab file to the world-accessible /tmp/ directory. A local user with access to that directory and another account on the host can read the keytab, decrypt the stored keys, and assume the Kerberos identities tied to those credentials. This leads to privilege escalation on EMR clusters that rely on Kerberos for authentication to Hadoop, Hive, HBase, and related services. The weakness is tracked under [CWE-257: Storing Passwords in a Recoverable Format]. Amazon has remediated the issue in Amazon EMR 7.5 and provides a bootstrap script and RPM fix for releases 6.10 through 7.4.

Critical Impact

An authenticated local user can recover Kerberos credentials from /tmp/ and escalate privileges across EMR cluster services.

Affected Products

  • Amazon EMR releases 6.10 through 7.4 (Secret Agent component)
  • Amazon EMR clusters configured with Kerberos authentication
  • Amazon EMR versions prior to 7.5

Discovery Timeline

  • 2025-08-13 - CVE CVE-2025-8904 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-8904

Vulnerability Analysis

The Amazon EMR Secret Agent is the component that distributes secrets, including Kerberos keytabs, to services running on EMR cluster nodes. During provisioning, the agent writes a keytab file containing Kerberos credentials to the /tmp/ directory. The /tmp/ path is shared, world-traversable, and accessible to every local account on the node.

Keytab files hold long-term Kerberos keys for service or user principals. Any process that can read the keytab can extract the keys and request Ticket Granting Tickets (TGTs) as those principals without a password prompt. Because EMR clusters frequently run Hadoop, Hive, HBase, Presto, and Spark services under privileged Kerberos identities, recovering a single keytab can yield broad access to cluster data and management interfaces.

Root Cause

The root cause is insecure storage of authentication material. Sensitive credentials should reside under a directory with restrictive permissions, such as /etc/security/keytabs/ with mode 0400 and ownership limited to the consuming service account. Placing the keytab in /tmp/ violates the principle of least privilege and exposes recoverable credentials to every local user on the host.

Attack Vector

Exploitation requires local access to an EMR node and an additional account on the host. The attacker enumerates /tmp/ for keytab artifacts, copies the file, and uses standard Kerberos tooling such as klist -k and kinit -kt to load the keys and request tickets. With valid tickets, the attacker authenticates to Kerberized services and operates with the privileges of the compromised principal.

The vulnerability does not require a remote exploit chain on its own. It compounds any prior local foothold, turning low-privilege code execution into broad cluster compromise. See the AWS Security Bulletin AWS-2025-017 for vendor technical details.

Detection Methods for CVE-2025-8904

Indicators of Compromise

  • Presence of keytab files (.keytab extension or files containing the KRB5 magic bytes) under /tmp/ on EMR nodes
  • Read access to /tmp/ keytab files by accounts other than the EMR Secret Agent owner
  • Unexpected kinit -kt or klist -k invocations referencing files in /tmp/

Detection Strategies

  • Scan EMR cluster nodes for keytab artifacts in /tmp/ and alert on any matches
  • Enable Linux audit rules on /tmp/ to log open() and read() syscalls against keytab files
  • Correlate Kerberos KDC logs for service tickets issued to principals that should only authenticate from controlled service accounts

Monitoring Recommendations

  • Forward auditd, EMR Secret Agent, and KDC logs to a centralized SIEM for retention and correlation
  • Alert on anomalous TGT requests originating from EMR worker nodes outside expected service startup windows
  • Track filesystem changes in /tmp/ with file integrity monitoring tooling

How to Mitigate CVE-2025-8904

Immediate Actions Required

  • Upgrade EMR clusters to Amazon EMR 7.5 or higher, which addresses the keytab storage location
  • For clusters running EMR 6.10 through 7.4, apply the AWS-provided bootstrap script and RPM files referenced in the security bulletin
  • Rotate any Kerberos principals whose keytabs may have been exposed in /tmp/ prior to remediation
  • Audit /tmp/ on existing nodes and remove residual keytab files after rotation

Patch Information

Amazon EMR 7.5 contains the fix. Refer to the AWS EMR 7.5.0 Release Notes for upgrade details and the GitHub Security Advisory GHSA-hf8h-76fm-735v for the coordinated disclosure record. For EMR 6.10 to 7.4, AWS publishes a bootstrap script and patched RPMs in the AWS Security Bulletin AWS-2025-017.

Workarounds

  • Restrict interactive and SSH access to EMR cluster nodes to reduce the population of local accounts that could read /tmp/
  • Apply restrictive umask settings and mount /tmp/ with noexec and per-user namespaces where supported
  • Run the AWS-provided bootstrap script at cluster launch to relocate the keytab and tighten file permissions on releases that cannot be upgraded immediately
bash
# Configuration example: rotate exposed Kerberos principals after patching
kadmin -q "change_password -randkey emr-service/host.example.com@REALM"
kadmin -q "ktadd -k /etc/security/keytabs/emr-service.keytab emr-service/host.example.com@REALM"
chown emrsecretagent:emrsecretagent /etc/security/keytabs/emr-service.keytab
chmod 0400 /etc/security/keytabs/emr-service.keytab
find /tmp -maxdepth 2 -name '*.keytab' -print -delete

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAmazon Emr

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-257
  • Technical References
  • AWS Security Bulletin AWS-2025-017

  • AWS EMR 7.5.0 Release Notes

  • GitHub Security Advisory GHSA-hf8h-76fm-735v
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English