CVE-2025-8904
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 · uneditedAmazon 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 confidenceAmazon 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify if running Amazon EMRRun 'cat /etc/redhat-release' or 'ls /usr/share/aws/emr' to confirm EMR installation, or check cloud provider metadata for EMR cluster infoAffected if Environment is not Amazon EMR (not applicable)
-
Check EMR versionRun 'cat /emr/instance-controller/lib/emr-version' or check cluster configuration for EMR release versionAffected if Version is below 7.5.0 (e.g., 7.4.x, 7.3.x, 6.x, 5.x)
-
Locate keytab files in /tmp/Run 'find /tmp -name "*.keytab" -type f 2>/dev/null' to search for keytab filesAffected if Any .keytab files exist in /tmp/ directory
-
Check keytab file permissionsRun 'ls -la /tmp/*.keytab' to view ownership and permissions on found keytab filesAffected if Files are readable by non-root users (permissions include 'r' for others/group, or owner is not root)
-
Check if Secret Agent is enabledReview EMR cluster configuration or bootstrap actions for 'secret-agent' or 'emr-secret-agent' settingsAffected 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.
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 · scopedUpgrade Amazon EMR to version 7.5 or higher, or apply the provided bootstrap script and RPM fix to secure keytab file storage outside /tmp/.
Amazon EMR 7.5 or higher
- Upgrade Amazon EMR to version 7.5 or higher to receive the security fix for the keytab file exposure vulnerability
- 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.
- Consultation4.0 h
- Implementation2.0 h
- Testing1.0 h
- Review / QA1.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-8904 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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