# CVE-2019-10804: OS Command Injection in serial-number

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 2.84%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-28T20:31:41.000Z
- Modified: 2026-07-08T05:56:09.490Z
- Also known as: GHSA-3fw4-4h3m-892h, SNYK-JS-SERIALNUMBER-559010
- Weaknesses: CWE-78
- Assigned by: snyk

## Description

serial-number through 1.3.0 allows execution of arbritary commands. The "cmdPrefix" argument in serialNumber function is used by the "exec" function without any validation.

(As written by CVE List.)

## Affected

- serial-number: All versions including 1.3.0
- serial-number (npm): up to 1.3.0
- serial-number_project serial-number: up to 1.3.0

## Every score

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

## References

- <https://snyk.io/vuln/SNYK-JS-SERIALNUMBER-559010> (exploit, third-party-advisory, web)
- <https://github.com/es128/serial-number/blob/master/index.js#L106> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10804> (advisory)

## Sources

- CVE List: [CVE-2019-10804](https://www.cve.org/CVERecord?id=CVE-2019-10804), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3fw4-4h3m-892h](https://github.com/advisories/GHSA-3fw4-4h3m-892h), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2019-10804](https://nvd.nist.gov/vuln/detail/CVE-2019-10804), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10804 · Whole record: https://cve.day/CVE-2019-10804.json · Rebuilt by cve.day 2026-11-25T22:57:49.500Z
