Descrizione
Nmap before 7.992 contains a loop with an unreachable exit condition in the parameter-list parsing of the NSE drda.lua library, which keeps growing its parameter list while processing a malicious DRDA response. A malicious DRDA service on a scanned host can make the loop consume memory without bound on 64-bit builds, exhausting the Nmap process and discarding NSE results for every other host in the same scan batch without reporting an error; the library is reached by service probes during version detection (-sV).
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.5, EPSS 0.6% (percentile 41).
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Riferimenti
- Riferimentohttps://github.com/nmap/nmap/blob/v7.992/CHANGELOG
- Riferimentohttps://github.com/nmap/nmap/commit/9de32e381e5fde01e18f1a62b04b3c44ded59c24
- Riferimentohttps://github.com/nmap/nmap/commit/bfd3446259426c1207086b3cad1bcf75e30ee304
- Riferimentohttps://nmap.org/changelog.html
- Riferimentohttps://www.vulncheck.com/advisories/nmap-7.992-unbounded-loop-via-malicious-drda-response-in-drda-lua