CVE-2022-31004
JSON

7.5high

Potential secrets being logged to disk in CVE Services

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.79% (higher than 53% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

CVEProject/cve-services is an open source project used to operate the CVE services API. A conditional in 'data.js' has potential for production secrets to be written to disk. The affected method writes the generated randomKey to disk if the environment is not development. If this method were called in production, it is possible that it would write the plaintext key to disk. A patch is not available as of time of publication but is anticipated as a "hot fix" for version 1.1.1 and for the 2.x branch.

Affected

Product or packageVersionsReported by
CVEProject cve-services<= 1.1.1CVE List
mitre cve-servicesfrom 1.1.1NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

CWE-312CWE-779

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

CVEProject/cve-services is an open source project used to operate the CVE services API. A conditional in 'data.js' has potential for production secrets to be written to disk. The affected method writes the generated randomKey to disk if the environment is not development. If this method were called in production, it is possible that it would write the plaintext key to disk. A patch is not available as of time of publication but is anticipated as a "hot fix" for version 1.1.1 and for the 2.x branch.

NVD (es)

CVEProject/cve-services es un proyecto de código abierto usado para operar la API de servicios CVE. Un condicional en "data.js" presenta potencial para que los secretos de producción sean escritos en el disco. El método afectado escribe el randomKey generado en el disco si el entorno no es de desarrollo. Si este método fuera llamado en producción, es posible que escriba la clave en texto plano en el disco. Un parche no está disponible en el momento de la publicación, pero es previsto como un "hot fix" para la versión 1.1.1 y para la rama 2.x

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31004 changed 2025-04-22CVE Terms of Use
NVDCVE-2022-31004 changed 2026-06-17Public domain