GHSA-3fw4-4h3m-892h

Suggest an improvement
Source
https://github.com/advisories/GHSA-3fw4-4h3m-892h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-3fw4-4h3m-892h/GHSA-3fw4-4h3m-892h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3fw4-4h3m-892h
Aliases
Published
2021-04-13T15:22:19Z
Modified
2026-07-08T05:56:09Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
OS Command Injection in serial-number
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-04-09T21:39:10Z",
    "nvd_published_at":  "2020-02-28T21:15:00Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / serial-number

Package

Name
serial-number
View open source insights on deps.dev
Purl
pkg:npm/serial-number

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.3.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-3fw4-4h3m-892h/GHSA-3fw4-4h3m-892h.json"