# CVE-2022-31004: Potential secrets being logged to disk in CVE Services

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 53% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-25T21:55:09.000Z
- Modified: 2026-06-17T04:44:35.297Z
- Weaknesses: CWE-312, CWE-779
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- CVEProject cve-services: <= 1.1.1
- mitre cve-services: from 1.1.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/CVEProject/cve-services/security/advisories/GHSA-mpwm-rmqp-7629> (exploit, third-party-advisory)
- <https://github.com/CVEProject/cve-services/blob/6b085e481fd3b084a8828ef7489c6b82fa415c92/src/utils/data.js#L68-L83> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2022-31004](https://www.cve.org/CVERecord?id=CVE-2022-31004), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-31004](https://nvd.nist.gov/vuln/detail/CVE-2022-31004), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31004 · Whole record: https://cve.day/CVE-2022-31004.json · Rebuilt by cve.day 2026-11-25T22:58:12.070Z
