cbcvebase.
CVE-2025-40598
published 2025-07-23

CVE-2025-40598: A Reflected cross-site scripting (XSS) vulnerability exists in the SMA100 series web interface, allowing a remote unauthenticated attacker to potentially…

PriorityP341medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
53.21%
98.8th percentile
A Reflected cross-site scripting (XSS) vulnerability exists in the SMA100 series web interface, allowing a remote unauthenticated attacker to potentially execute arbitrary JavaScript code.

Affected

4 ranges
VendorProductVersion rangeFixed in
sonicwallsma_100_series
sonicwallsma_210_firmware< 10.2.2.1-90sv10.2.2.1-90sv
sonicwallsma_410_firmware< 10.2.2.1-90sv10.2.2.1-90sv
sonicwallsma_500v_firmware< 10.2.2.1-90sv10.2.2.1-90sv

Detection & IOCsextracted from sources · hover to see the quote

path/cgi-bin/radiusChallengeLogin
snort
alert http any any -> $HOME_NET any (msg:"ET WEB_SPECIFIC_APPS SonicWall CGI Reflected Cross-Site Scripting (CVE-2025-40598)"; flow:established,to_server; http.uri; content:"/cgi-bin/radiusChallengeLogin|3f|"; fast_pattern; content:"state|3d|"; pcre:"/^[^\x26]*?(?:\x22|\x27|\x3c|\x60|\x25(?:22|27|3[cC]|60)|\x26(?:lt|apos|quot)\x3b)/R"; reference:url,labs.watchtowr.com/stack-overflows-heap-overflows-and-existential-dread-sonicwall-sma100-cve-2025-40596-cve-2025-40597-and-cve-2025-40598/; reference:cve,2025-40598; classtype:web-application-attack; sid:2063850; rev:1; metadata:affected_product SonicWall, attack_target Server, tls_state TLSDecrypt, created_at 2025_07_31, cve CVE_2025_40598, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, tag Exploit, updated_at 2025_07_31, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)
  • CVE-2025-40598 is triggered via an unauthenticated HTTP GET/POST request to the CGI endpoint /cgi-bin/radiusChallengeLogin with a malicious `state` query parameter containing XSS payload characters (quotes, angle brackets, backticks, or their URL/HTML-encoded equivalents).
  • The Snort/Suricata rule (ET sid:2063850) fires on established HTTP flows to the server matching the URI pattern above; TLS inspection (tls_state TLSDecrypt) is required to detect this over HTTPS.
  • CVE-2025-40598 is part of a trio of SonicWall SMA100 vulnerabilities (CVE-2025-40596 stack buffer overflow, CVE-2025-40597 heap overflow, CVE-2025-40598 reflected XSS) all triggerable via unauthenticated HTTP POST requests to a CGI endpoint; correlate alerts across all three CVEs for a fuller picture of exploitation attempts.
  • ·TLS decryption must be enabled on the monitoring sensor for the Snort/Suricata rule (sid:2063850) to fire, as SMA100 web interfaces typically operate over HTTPS.
  • ·The NVD description characterises CVE-2025-40598 as a Reflected XSS (arbitrary JavaScript execution), but the Check Point summary describes it as 'arbitrary memory write'; ensure detection logic targets the CGI XSS vector specifically and does not conflate it with the memory-corruption siblings CVE-2025-40596/40597.
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.