GokeyApplication · Cloudflare

CVE-2025-13353

MEDIUM · 5.5 CVSS v3.1 Published 2025-12-02
Fix available
A fix is available. Upgrade to 0.2.0 or later.
See remediation →
57/100
Remediation priority · Elevated
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
In gokey versions <0.2.0, a flaw in the seed decryption logic resulted in passwords incorrectly being derived solely from the initial vector and the AES-GCM authentication tag of the key seed. This issue has been fixed in gokey version 0.2.0. This is a breaking change. The fix has invalidated any passwords/secrets that were derived from the seed file (using the -s option). Even if the input seed file stays the same, version 0.2.0 gokey will generate different secrets. Impact This vulnerability impacts generated keys/secrets using a seed file as an entropy input (using the -s option). Keys/secrets generated just from the master password (without the -s option) are not impacted. The confidentiality of the seed itself is also not impacted (it is not required to regenerate the seed itself). Specific impact includes: * keys/secrets generated from a seed file may have lower entropy: it was expected that the whole seed would be used to generate keys (240 bytes of entropy input), where in vulnerable versions only 28 bytes was used * a malicious entity could have recovered all passwords, generated from a particular seed, having only the seed file in possession without the knowledge of the seed master password Patches The code logic bug has been fixed in gokey version 0.2.0 and above. Due to the deterministic nature of gokey, fixed versions will produce different passwords/secrets using seed files, as all seed entropy will be used now. System secret rotation guidance It is advised for users to regenerate passwords/secrets using the patched version of gokey (0.2.0 and above), and provision/rotate these secrets into respective systems in place of the old secret. A specific rotation procedure is system-dependent, but most common patterns are described below. Systems that do not require the old password/secret for rotation Such systems usually have a "Forgot password" facility or a similar facility allowing users to rotate their password/secrets by sending a unique "magic" link to the user's email or phone. In such cases users are advised to use this facility and input the newly generated password secret, when prompted by the system. Systems that require the old password/secret for rotation Such systems usually have a modal password rotation window usually in the user settings section requiring the user to input the old and the new password sometimes with a confirmation. To generate/recover the old password in such cases users are advised to: * temporarily download gokey version 0.1.3 https://github.com/cloudflare/gokey/releases/tag/v0.1.3 for their respective operating system to recover the old password * use gokey version 0.2.0 or above to generate the new password * populate the system provided password rotation form Systems that allow multiple credentials for the same account to be provisioned Such systems usually require a secret or a cryptographic key as a credential for access, but allow several credentials at the same time. One example is SSH: a particular user may have several authorized public keys configured on the SSH server for access. For such systems users are advised to: * generate a new secret/key/credential using gokey version 0.2.0 or above * provision the new secret/key/credential in addition to the existing credential on the system * verify that the access or required system operation is still possible with the new secret/key/credential * revoke authorization for the existing/old credential from the system Credit This vulnerability was found by Théo Cusnir ( @mister_mime https://hackerone.com/mister_mime ) and responsibly disclosed through Cloudflare's bug bounty program.

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 · high confidence

In gokey versions <0.2.0, the seed decryption logic incorrectly derived passwords from only 28 bytes (the IV and AES-GCM authentication tag) instead of the full 240 bytes of seed entropy. This drastically reduced entropy and allowed recovery of all seed-derived passwords by anyone possessing the seed file without knowing the master password.

MitigationUpgrade to gokey v0.2.0+ and rotate all secrets generated with the -s option, as the fix is a breaking change that produces different output from the same seed.

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

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
GokeyApplication
Affected:< 0.2.0

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
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

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. Check installed gokey version
    Run 'gokey --version' or 'gokey -v' to display the version number
    Affected if Version is less than 0.2.0
  2. Identify seed-derived passwords
    Review command history or scripts for gokey invocations using the -s flag, which derives passwords from a seed file
    Affected if Passwords were generated using the -s option with a seed file
  3. Locate seed files
    Search for seed files used with gokey (commonly created via 'gokey -s -f <filename>')
    Affected if Seed files exist that were used with gokey versions prior to 0.2.0
  4. Verify seed file format
    Examine the seed file size or metadata; the vulnerability affected files where passwords were derived from insufficient entropy (28 bytes instead of 240 bytes)
    Affected if Seed files exist and gokey version is below 0.2.0

You are affected if gokey version is below 0.2.0 and any passwords were generated using the -s seed option, as the reduced entropy allows password recovery without the master password.

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
Upgrade available Upgrade to 0.2.0 or later
Fixed in 0.2.0
Interim mitigation

Upgrade to gokey v0.2.0+ and rotate all secrets generated with the -s option, as the fix is a breaking change that produces different output from the same seed.

Recommended fix High confidence

0.2.0

  1. Upgrade gokey to version 0.2.0 or above by downloading from https://github.com/cloudflare/gokey/releases
  2. For systems that require the old password for rotation: download gokey v0.1.3 from https://github.com/cloudflare/gokey/releases/tag/v0.1.3 to recover the old password
  3. Use gokey v0.1.3 with the same master password and seed file (-s option) to retrieve the old password for systems requiring it
  4. Use gokey v0.2.0 or above with the same master password and seed file (-s option) to generate the new password
  5. Rotate the newly generated password into the target system, following the system's specific rotation procedure
  6. For systems allowing multiple credentials (e.g., SSH): generate a new credential with v0.2.0+, provision it alongside the existing credential, verify access works, then revoke the old credential
Caveat All passwords/secrets generated using seed files (-s option) in versions <0.2.0 are invalidated and must be regenerated; old secrets will not work with the fixed version

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

Fix this in Gokey Scoped from the published advisory
  • Consultation6.0 h
  • Implementation10.0 h
  • Testing4.0 h
  • Review / QA3.0 h
23.0 hours of engineering $4,140
Get the upgrade done

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-13353 — 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-13353 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