# CVE-2025-13353: gokey allows secret recovery from a seed file without the master password

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-330
- **Aliases:** GHSA-69jw-4jj8-fcxm, GO-2025-4174
- **Published:** 2025-12-02T11:03:21.832Z
- **Modified:** 2026-11-13T23:10:00.153Z

## Who should check

- Projects that depend on Go package github.com/cloudflare/gokey (\< 0.2.0)
- Anyone running Cloudflare gokey \>= 0.1.0, \< 0.2.0

## Description

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.

## Affected and fixed versions

- Go `github.com/cloudflare/gokey`: affected \< 0.2.0; fixed 0.2.0 (osv)
- Cloudflare gokey: \>= 0.1.0, \< 0.2.0 (cvelist)

## Mitigation

- Upgrade github.com/cloudflare/gokey to 0.2.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-13353. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-13353.md
Affected: github.com/cloudflare/gokey < 0.2.0
Fixed in: 0.2.0

Steps:
1. Search this machine and project for github.com/cloudflare/gokey (Go), Cloudflare gokey: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-13353 being exploited?

There is no confirmed exploitation: CVE-2025-13353 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-13353?

High: CVSS 7.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-13353?

github.com/cloudflare/gokey \< 0.2.0.

### Is there a fix for CVE-2025-13353?

Yes. Fixed in 0.2.0. Upgrade github.com/cloudflare/gokey to 0.2.0 or later.

### How do I check if I'm affected by CVE-2025-13353?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/cloudflare/gokey/security/advisories/GHSA-69jw-4jj8-fcxm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-13353>
- patch: <https://github.com/cloudflare/gokey/commit/f261819e99ea169843bd5aa3e643d046260ff511>
- other: <https://github.com/cloudflare/gokey>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-13353>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-69jw-4jj8-fcxm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-4174> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-13353> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-13353>
