CVE-2024-40766 is an improper access control flaw in SonicWall SonicOS management access and SSLVPN that can give an attacker unauthorized access and sometimes crash the firewall. NVD scores it 9.8; CISA KEV lists it with known ransomware use. Patch Gen 5 SOHO, Gen 6 and Gen 7 firewalls; end-of-life NSA 2600 and Gen 5 units get no fix.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
22.0%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2024-40766 · Source: NVD (Primary CVSS v3.1)
Affected components
| Component | CPE | Version range |
|---|---|---|
| SonicWall SOHO (Gen 5) firewall, SonicOS | cpe:2.3:o:sonicwall:sonicos:*:*:*:*:*:*:*:* | 5.9.2.14-12o and older; fixed in 5.9.2.14-13o and higher (SonicWall SNWLID-2024-0015) |
| SonicWall Gen 6 firewalls (SOHOW, SOHO 250/250W, TZ 300-600 series, NSA 2650-6650, SM 9200-9650) | cpe:2.3:o:sonicwall:sonicos:*:*:*:*:*:*:*:* | 6.5.4.14-109n and older; fixed in 6.5.4.15.116n and higher, or 6.5.2.8-2n and higher for SM 9800, NSsp 12400 and NSsp 12800 (SonicWall SNWLID-2024-0015) |
| SonicWall Gen 7 firewalls (TZ270-TZ670, NSa 2700-6700, NSsp 10700/11700/13700) | cpe:2.3:o:sonicwall:sonicos:*:*:*:*:*:*:*:* | 7.0.1-5035 and older; SonicWall says the issue is not reproducible above 7.0.1-5035 and recommends the latest firmware |
| SonicWall NSA 2600, Gen 5 (except SOHO) and older units | — | End-of-life: susceptible, no software update will be released (SonicWall SNWLID-2024-0015) |
What does this mean for affected devices?
NVD describes CVE-2024-40766 as "an improper access control vulnerability" in "SonicWall SonicOS management access, potentially leading to unauthorized resource access and in specific conditions, causing the firewall to crash". NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) with no CWE of its own (NVD-CWE-noinfo). SonicWall, and CISA-ADP after it, score 9.3 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L) with CWE-284 (NVD, CVE record).
Which SonicWall firewalls are affected?
SonicWall's advisory SNWLID-2024-0015 lists SOHO (Gen 5) on 5.9.2.14-12o and older, Gen 6 firewalls (SOHOW, SOHO 250/250W, TZ 300 to TZ 600P, NSA 2650 to NSA 6650, SM 9200 to SM 9650) on 6.5.4.14-109n and older, and Gen 7 (TZ270 to TZ670, NSa 2700 to NSa 6700, NSsp 10700, 11700 and 13700) on 7.0.1-5035 and older. Revision 1.3 of 2024-09-06 added SSLVPN as a second point of impact. NSsp 15700 was added and then removed again in October 2024 after further analysis.
Which firmware fixes it, and what about end-of-life units?
Fixed builds: 5.9.2.14-13o and higher for Gen 5 SOHO; 6.5.4.15.116n and higher for Gen 6, or 6.5.2.8-2n and higher for SM 9800, NSsp 12400 and NSsp 12800. For Gen 7 SonicWall says the issue is not reproducible above 7.0.1-5035 and recommends the latest firmware. SonicWall states that "NSA 2600, Gen 5 (excluding SOHO devices) and older units which are EoL (End of Life) are susceptible to this exploit and there will not be a software update released" for them, so those units should be retired. Until patched, SonicWall says to restrict firewall management and SSLVPN to trusted sources or disable them from the internet, see CISA BOD 23-02 and internet-exposed management interfaces. It also tells Gen 5 and Gen 6 admins to force password changes for local SSLVPN accounts and to enable MFA, SSLVPN login logging and account lockout.
Is CVE-2024-40766 exploited?
Yes. SonicWall says it "is potentially being exploited in the wild". CISA added it to the KEV catalog on 2024-09-09 with the required action "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable." (due 2024-09-30) and records known ransomware campaign use; it is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.2201, the 97.70th percentile, in the 2026-11-24 dataset (FIRST EPSS). See also the SonicOS flaws CVE-2024-53704 and CVE-2020-5135, and KEV and EPSS prioritization.
Evidence
- NVD (Analyzed, published 2024-08-23): improper access control in SonicOS management access, unauthorized resource access, firewall crash in specific conditions; Gen 5, Gen 6 and Gen 7 7.0.1-5035 and older; Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; CISA-ADP Secondary 9.3; NVD CWE NVD-CWE-noinfo, SonicWall CWE-284; CPE sonicos < 5.9.2.14-13o, < 6.5.2.8-2n, < 6.5.4.15.116n, <= 7.0.1-5035; read 2026-11-25. — NVD
- SonicWall SNWLID-2024-0015 (published 2024-08-22, updated 2024-11-20, read via the PSIRT site API 2026-11-25): CVSS 9.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L, CWE-284; management access and SSLVPN; affected SOHO Gen 5 5.9.2.14-12o and older, Gen 6 models 6.5.4.14-109n and older, Gen 7 models 7.0.1-5035 and older; fixed 5.9.2.14-13o, 6.5.2.8-2n (SM9800, NSsp 12400, NSsp 12800), 6.5.4.15.116n; Gen 7 not reproducible above 7.0.1-5035; NSA 2600, Gen 5 (excluding SOHO) and older EoL units get no update; workaround restrict management and SSLVPN to trusted sources or disable from internet; password reset, MFA, SSLVPN login logging, account lockout; "potentially being exploited in the wild"; NSsp 15700 added 2024-10-03 and removed 2024-10-04. — SonicWall PSIRT SNWLID-2024-0015
- CVE record: PUBLISHED, CNA SonicWall, published 2024-08-23; affected 5.9.2.14-12o, 6.5.4.14-109n, 7.0.1-5035 and older; CISA-ADP CVSS 3.1 9.3, SSVC exploitation active. — CVE.org
- KEV catalog 2026.11.24: dateAdded 2024-09-09, due 2024-09-30, required action "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.", knownRansomwareCampaignUse Known, CWE-284; checked 2026-11-25. — CISA KEV
- EPSS 0.2201, percentile 0.97704, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which SonicOS versions fix CVE-2024-40766?
SonicWall names 5.9.2.14-13o and higher for Gen 5 SOHO, 6.5.4.15.116n and higher for Gen 6 (6.5.2.8-2n and higher for SM 9800, NSsp 12400 and NSsp 12800), and says Gen 7 is not affected above 7.0.1-5035 while recommending the latest firmware (per SonicWall SNWLID-2024-0015).
Will end-of-life SonicWall firewalls get a fix for CVE-2024-40766?
No. SonicWall says NSA 2600, Gen 5 (excluding SOHO) and older end-of-life units are susceptible and will not receive a software update. CISA KEV says to discontinue use where mitigations are unavailable (per SonicWall SNWLID-2024-0015 and CISA KEV).
What should I do besides patching for CVE-2024-40766?
SonicWall advises limiting firewall management and SSLVPN to trusted sources or disabling them from the internet, forcing password changes for local SSLVPN accounts on Gen 5 and Gen 6, and enabling MFA, SSLVPN login logging and account lockout (per SonicWall SNWLID-2024-0015).
Is CVE-2024-40766 used in ransomware attacks?
Yes. CISA KEV marks known ransomware campaign use; CISA added it on 2024-09-09 and it is in catalog version 2026.11.24. FIRST EPSS gives 0.2201, the 97.70th percentile, in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS, as of 2026-11-25).
Questions about this page?