GHSA-4449-hg37-77v8

Suggest an improvement
Source
https://github.com/advisories/GHSA-4449-hg37-77v8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-4449-hg37-77v8/GHSA-4449-hg37-77v8.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-4449-hg37-77v8
Aliases
Published
2021-02-05T20:43:27Z
Modified
2025-01-08T07:27:05.214080Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L CVSS Calculator
Summary
Command injection in total.js
Details

There is a command injection vulnerability that affects the package total.js before version 3.4.7. The issue occurs in the image.pipe and image.stream functions. The type parameter is used to build the command that is then executed using childprocess.spawn. The issue occurs because childprocess.spawn is called with the option shell set to true and because the type parameter is not properly sanitized.

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": "2021-02-02T11:15:00Z",
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-78"
    ],
    "github_reviewed_at": "2021-02-03T07:49:15Z"
}
References

Affected packages

npm / total.js

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.4.7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-4449-hg37-77v8/GHSA-4449-hg37-77v8.json"