home / blog
2026-11-26 · medium
CVE-2026-81416: Nmap CPU hang from TN3270 servers
Infinite loop vulnerability in Nmap causing permanent CPU hang when scanning malicious TN3270 servers.

CVE-2026-81416 identifies an infinite loop vulnerability in Nmap, specifically in the process_write function of the NSE tn3270.lua library. A malicious TN3270 server can embed a malformed Repeat to Address (RA) order in the data stream, causing a permanent 100% CPU hang when the tn3270-screen.nse script runs during a scan.
The vulnerability is classified with medium severity (CVSS 5.3) and completely stops Nmap execution, making it resistant to timeout. Technical signals on GitHub confirm excessive CPU consumption and timeout hook issues in the vulnerable implementation.
As a defensive measure, it is crucial to update Nmap to version 7.992 or later, which fixes the issue. For systems that cannot be updated immediately, it is recommended to avoid scanning untrusted TN3270 servers until the patch is applied.
At a glance
- What
- Infinite loop vulnerability in the process_write function of the NSE tn3270.lua library
- Severity
- Medium (CVSS 5.3)
- Affected versions
- Nmap versions before 7.992
- Fix
- Update to Nmap 7.992 or later
- Status
- Officially published on NVD on 2026-11-25
- Action
- Immediately update to the latest version of Nmap
Sources: NVD, CVE-2026-81416