CVE-2026-81416: Nmap < 7.992 Infinite Loop via Malformed Repeat to Address Order in tn3270.lua

Published Nov 25, 2026
·
Updated

Nmap before 7.992 contains an infinite loop vulnerability in the processwrite function of the NSE tn3270.lua library, whose write loop does not advance when it processes a malformed Repeat to Address (RA) order. A malicious TN3270 server on a scanned host can embed a single 6-byte malformed RA order in an ordinary screen-write data stream after a normal negotiation, causing a permanent 100% CPU hang of the Nmap process when tn3270-screen.nse runs, which the script-timeout option does not interrupt.

Affected Software

1 affected component
Nmap Nmap<7.992

Event History

Nov 25, 2026
CVE Published
via MITRE·05:32 PM
Data Sourced
via MITRE·05:32 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Operators scanning a malicious or compromised TN3270 server are exposed when the tn3270-screen.nse script runs. The affected target can trigger the condition remotely after normal TN3270 negotiation.

2

What does an attacker need to do to trigger the hang?

The attacker needs control of a TN3270 server on a scanned host and must send an ordinary screen-write stream containing a single malformed 6-byte Repeat to Address order. No privileges or user interaction are required beyond the scan running the affected script.

3

Will script-timeout stop the affected scan?

No. The described infinite loop causes a permanent 100% CPU hang in the Nmap process, and the script-timeout option does not interrupt it.

4

What versions are affected?

Nmap versions before 7.992 are affected. Upgrading to 7.992 or later addresses the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203