Nuclei version 3.x large memory allocation due to /etc/hosts entries. #4632
Labels
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Nuclei version:
root@pd-srv:/usr/local/bin# nuclei -version
[INF] Nuclei Engine Version: v3.1.5
[INF] Nuclei Config Directory: /root/.config/nuclei
[INF] Nuclei Cache Directory: /root/.cache/nuclei
Current Behavior:
Memory exhaustion on the system, with or without any scan operations, even on simple
nuclei
execution without any parameter.Expected Behavior:
Nuclei to be using less memory as per versions 2.9.x
Steps To Reproduce:
Create a large /etc/hosts entry containing several systems. My current one has 900+ entries.
3m56sec loading time.
40 seconds load time.
Whilst attempting to run with the host file containing large entry of systems memory allocation on the system will be at:
Anything else:
During normal scan (and whilst /etc/hosts contains a large entry of addresses) with minimal set, 1-2 URLs nuclei will consume ~ 15Gb of RAM ( active + swap ) and be killed eventually with OOM kill.
Regards,
Nicolas
The text was updated successfully, but these errors were encountered: