Vulnerability DatabaseGHSA-4gm2-62xx-xwvx

GHSA-4gm2-62xx-xwvx: 
Python vulnerability analysis and mitigation

Summary

The port_scan tool (tools/portscan_tool.py) passed the caller-supplied target string to python-nmap's PortScanner.scan(hosts=...) without validation. A target containing whitespace-separated nmap options reached the nmap command line as separate arguments (CWE-88, argument injection).

Impact

An attacker able to control the target value could inject nmap command-line options. This was reproduced: appending -oN <path> to target made nmap create an output file at that path. Other nmap options can be injected the same way. Injected options run with the privileges of the user running the server. AynOps runs locally over stdio, so it is not directly network-exposed. Exploitation requires control over the target value passed to the tool.

Patches

Fixed in 1.2.0. target is now stripped of surrounding whitespace and must be an IP address, a CIDR network, or a hostname made of ASCII letters, digits, hyphens and dots. Inputs containing whitespace, starting with -, or using wildcards or octet ranges (for example 192.168.1.* or 10.0.0.1-20) are rejected with an Invalid target error before nmap is invoked.

Workarounds

Upgrade to 1.2.0. If you cannot upgrade, do not let untrusted input reach the port_scan tool.

Resources

Credits

Thanks to @KulFilip for reporting the issue and contributing the fix.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-mpqx-q82w-9x46HIGH7.5
  • Python logoPython
  • graphql-core
NoYesOct 25, 2026
GHSA-4gm2-62xx-xwvxMEDIUM5.3
  • Python logoPython
  • aynops
NoYesOct 25, 2026
GHSA-jm75-qwf5-vg52MEDIUMN/A
  • Python logoPython
  • exmergo-dex-core
NoYesOct 25, 2026
GHSA-f3jf-cv9h-7c3gHIGHN/A
  • Python logoPython
  • exmergo-dex-core
NoYesOct 25, 2026
GHSA-28xv-9wpg-c42rHIGHN/A
  • Python logoPython
  • exmergo-dex-core
NoYesOct 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management