7.1
HIGH CVSS 4.0
CVE-2025-13353
gokey allows secret recovery from a seed file without the master password
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.

INFO

Published Date :

Dec. 2, 2025, 11:15 a.m.

Last Modified :

Nov. 13, 2026, 11:10 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-13353 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Cloudflare gokey
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM [email protected]
CVSS 4.0 HIGH a22f1246-ba21-4bb4-a601-ad51614c1513
CVSS 4.0 HIGH [email protected]
Solution
Update gokey to 0.2.0 or higher and regenerate affected secrets.
  • Update gokey to version 0.2.0 or higher.
  • Regenerate secrets using the updated gokey.
  • Rotate secrets in affected systems.
  • Provision new secrets alongside old ones if possible.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-13353.

URL Resource
https://github.com/cloudflare/gokey/security/advisories/GHSA-69jw-4jj8-fcxm Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-13353 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-13353 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-13353 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-13353 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Nov. 13, 2026

    Action Type Old Value New Value
    Added Translation Title: gokey de Cloudflare, Description: En versiones de gokey anteriores a la 0.2.0, un fallo en la lógica de descifrado de la semilla resultó en que las contraseñas se derivaran incorrectamente únicamente del vector inicial y la etiqueta de autenticación AES-GCM de la semilla de clave. Este problema ha sido solucionado en la versión 0.2.0 de gokey. Este es un cambio disruptivo. La solución ha invalidado cualquier contraseña o secreto que se haya derivado del archivo de semilla (usando la opción -s). Incluso si el archivo de semilla de entrada permanece igual, gokey versión 0.2.0 generará secretos diferentes. Impacto Esta vulnerabilidad impacta las claves y secretos generados usando un archivo de semilla como entrada de entropía (usando la opción -s). Las claves y secretos generados solo a partir de la contraseña maestra (sin la opción -s) no se ven impactados. La confidencialidad de la semilla en sí tampoco se ve impactada (no es necesario regenerar la semilla). El impacto específico incluye: * las claves y secretos generados a partir de un archivo de semilla pueden tener menor entropía: se esperaba que toda la semilla se utilizara para generar claves (240 bytes de entrada de entropía), mientras que en las versiones vulnerables solo se utilizaron 28 bytes * una entidad maliciosa podría haber recuperado todas las contraseñas generadas a partir de una semilla particular teniendo solo el archivo de semilla en su posesión sin conocer la contraseña maestra de la semilla Parches El error de lógica del código ha sido solucionado en la versión 0.2.0 de gokey y superiores. Debido a la naturaleza determinista de gokey, las versiones corregidas producirán contraseñas y secretos diferentes usando archivos de semilla, ya que ahora se utilizará toda la entropía de la semilla. Guía de rotación de secretos del sistema Se aconseja a los usuarios regenerar contraseñas y secretos usando la versión parcheada de gokey (0.2.0 y superiores), y aprovisionar o rotar estos secretos en los sistemas respectivos en lugar del secreto antiguo. Un procedimiento de rotación específico depende del sistema, pero los patrones más comunes se describen a continuación. Sistemas que no requieren la contraseña o secreto antiguo para la rotación Dichos sistemas suelen tener una función de recuperación de contraseña o similar que permite a los usuarios rotar sus contraseñas o secretos enviando un enlace único al correo electrónico o teléfono del usuario. En tales casos, se aconseja a los usuarios utilizar esta función e introducir el secreto de contraseña recién generado cuando el sistema lo solicite. Sistemas que requieren la contraseña o secreto antiguo para la rotación Dichos sistemas suelen tener una ventana modal de rotación de contraseñas en la sección de configuración del usuario que requiere introducir la contraseña antigua y la nueva. Para generar o recuperar la contraseña antigua en tales casos, se aconseja a los usuarios: * descargar temporalmente gokey versión 0.1.3 (https://github.com/cloudflare/gokey/releases/tag/v0.1.3) para su sistema operativo respectivo para recuperar la contraseña antigua * usar gokey versión 0.2.0 o superior para generar la nueva contraseña * rellenar el formulario de rotación de contraseñas proporcionado por el sistema Sistemas que permiten aprovisionar múltiples credenciales para la misma cuenta Dichos sistemas suelen requerir un secreto o una clave criptográfica como credencial para el acceso, pero permiten varias credenciales al mismo tiempo. Un ejemplo es SSH: un usuario particular puede tener varias claves públicas autorizadas configuradas en el servidor SSH para el acceso. Para tales sistemas, se aconseja a los usuarios: * generar un nuevo secreto, clave o credencial usando gokey versión 0.2.0 o superior * aprovisionar el nuevo secreto, clave o credencial además de la credencial existente en el sistema * verificar que el acceso o la operación del sistema requerida sigue siendo posible con el nuevo secreto, clave o credencial * revocar la autorización para la credencial existente o antigua del sistema Créditos Esta --TRUNCADO--
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://github.com/cloudflare/gokey', 'vendor': 'Cloudflare', 'product': 'gokey', 'versions': [{'status': 'affected', 'version': '0.1.0', 'lessThan': '0.2.0', 'versionType': 'semver'}], 'packageName': 'github.com/cloudflare/gokey', 'defaultStatus': 'unaffected'}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2025-13353', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2025-12-02T16:50:27.674442Z'}
  • Initial Analysis by [email protected]

    Dec. 15, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    Added CPE Configuration OR *cpe:2.3:a:cloudflare:gokey:*:*:*:*:*:go:*:* versions up to (excluding) 0.2.0
    Added Reference Type Cloudflare, Inc.: https://github.com/cloudflare/gokey/security/advisories/GHSA-69jw-4jj8-fcxm Types: Vendor Advisory
  • New CVE Received by [email protected]

    Dec. 02, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/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
    Added CWE CWE-330
    Added Reference https://github.com/cloudflare/gokey/security/advisories/GHSA-69jw-4jj8-fcxm
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.