GHSA-5v25-xr56-phph

Suggest an improvement
Source
https://github.com/advisories/GHSA-5v25-xr56-phph
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5v25-xr56-phph/GHSA-5v25-xr56-phph.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5v25-xr56-phph
Aliases
Published
2022-05-24T17:13:40Z
Modified
2026-07-08T06:49:57Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Clamscan vulnerable to command injection
Details

clamscan through 1.2.0 is vulnerable to Command Injection. It is possible to inject arbitrary commands as part of the _is_clamav_binary function located within Index.js. It should be noted that this vulnerability requires a pre-requisite that a folder should be created with the same command that will be chained to execute. This lowers the risk of this issue.

Database specific
{
    "cwe_ids": [
        "CWE-74",
        "CWE-78"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-10-19T18:32:34Z",
    "nvd_published_at": "2020-04-07T14:15:00Z",
    "severity": "HIGH"
}
References

Affected packages

npm / clamscan

Package

Affected ranges

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

Database specific

last_known_affected_version_range
"<= 1.2.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-5v25-xr56-phph/GHSA-5v25-xr56-phph.json"