CWE-257Weakness · CWE-257

CVE-2025-8904

HIGH · 8.5 CVSS v3.1 Published 2025-08-13
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
91/100
Remediation priority · Urgent
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Amazon EMR Secret Agent creates a keytab file containing Kerberos credentials. This file is stored in the /tmp/ directory. A user with access to this directory and another account can potentially decrypt the keys and escalate to higher privileges. Users are advised to upgrade to Amazon EMR version 7.5 or higher. For Amazon EMR releases between 6.10 and 7.4, we strongly recommend that you run the bootstrap script and RPM files with the fix provided in the location below.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

Amazon EMR Secret Agent creates keytab files containing Kerberos credentials in the /tmp/ directory. Due to insufficient access controls on this location, local users with directory access can read and decrypt the keytab files to obtain credentials for privilege escalation.

MitigationUpgrade Amazon EMR to version 7.5 or higher, or apply the provided bootstrap script and RPM fix to secure keytab file storage outside /tmp/.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if running Amazon EMR
    Run 'cat /etc/redhat-release' or 'ls /usr/share/aws/emr' to confirm EMR installation, or check cloud provider metadata for EMR cluster info
    Affected if Environment is not Amazon EMR (not applicable)
  2. Check EMR version
    Run 'cat /emr/instance-controller/lib/emr-version' or check cluster configuration for EMR release version
    Affected if Version is below 7.5.0 (e.g., 7.4.x, 7.3.x, 6.x, 5.x)
  3. Locate keytab files in /tmp/
    Run 'find /tmp -name "*.keytab" -type f 2>/dev/null' to search for keytab files
    Affected if Any .keytab files exist in /tmp/ directory
  4. Check keytab file permissions
    Run 'ls -la /tmp/*.keytab' to view ownership and permissions on found keytab files
    Affected if Files are readable by non-root users (permissions include 'r' for others/group, or owner is not root)
  5. Check if Secret Agent is enabled
    Review EMR cluster configuration or bootstrap actions for 'secret-agent' or 'emr-secret-agent' settings
    Affected if Secret Agent feature is configured/enabled

Affected if running Amazon EMR version below 7.5 with keytab files present in /tmp/ that are readable by non-privileged users.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Amazon EMR to version 7.5 or higher, or apply the provided bootstrap script and RPM fix to secure keytab file storage outside /tmp/.

Recommended fix High confidence

Amazon EMR 7.5 or higher

  1. Upgrade Amazon EMR to version 7.5 or higher to receive the security fix for the keytab file exposure vulnerability
  2. For Amazon EMR versions 6.10 to 7.4 where immediate upgrade is not feasible, run the bootstrap script and apply the RPM files with the fix provided by AWS (refer to AWS security bulletin for download location)

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation2.0 h
  • Testing1.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,490
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,384.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-8904 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-8904 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data