{"id":"MGASA-2018-0196","aliases":[],"status":"published","title":"Updated nmap packages fix security vulnerability","description":"Nmap developer nnposter found a security flaw (directory traversal\nvulnerability) in the way the non-default http-fetch script sanitized\nURLs. If a user manualy ran this NSE script against a malicious web\nserver, the server could potentially (depending on NSE arguments used)\ncause files to be saved outside the intended destination directory.\nExisting files couldn't be overwritten.  We fixed http-fetch, audited\nour other scripts to ensure they didn't make this mistake, and updated\nthe httpspider library API to protect against this by default.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2018-04-06T22:54:47Z","modified":"2026-04-16T04:26:56Z","fixes":[{"ecosystem":"Mageia:6","package":"nmap","fixed_in":["7.40-1.1.mga6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Mageia:6","package":"nmap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.40-1.1.mga6"}]}]}],"references":[{"url":"https://advisories.mageia.org/MGASA-2018-0196.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22854","tags":["report"]},{"url":"http://seclists.org/nmap-announce/2018/0","tags":["web"]}],"sources":{"osv":[{"id":"MGASA-2018-0196","title":"Updated nmap packages fix security vulnerability","description":"Nmap developer nnposter found a security flaw (directory traversal\nvulnerability) in the way the non-default http-fetch script sanitized\nURLs. If a user manualy ran this NSE script against a malicious web\nserver, the server could potentially (depending on NSE arguments used)\ncause files to be saved outside the intended destination directory.\nExisting files couldn't be overwritten.  We fixed http-fetch, audited\nour other scripts to ensure they didn't make this mistake, and updated\nthe httpspider library API to protect against this by default.\n","status":"published","published":"2018-04-06T22:54:47Z","modified":"2026-04-16T04:26:56.390511Z","updated_at":"2026-11-02T15:49:40.442238Z"}]}}
