Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 30 November 2026.
Part of the Wolfcore Resources library: Vulnerabilities and exploitation.
In one sentence: CVE-2022-42475 is a serious flaw in the remote-access (SSL-VPN) feature of Fortinet’s FortiOS firewalls that let an attacker run commands on the firewall without a password, and Fortinet said it had been used in real attacks.
What it is
A VPN lets staff reach the office network from home. On a FortiGate firewall, the SSL-VPN feature is run by a program called sslvpnd. Fortinet’s advisory FG-IR-22-398, published on 12 December 2022, describes a heap-based buffer overflow in that program. A buffer overflow means the program accepts more data than it has room for, and the extra data spills into memory it should not touch.
Fortinet rated it critical (CVSS 9.8) and described it as exploitable by a remote, unauthenticated attacker. In plain terms: anyone on the internet who could reach the VPN login page could attempt it. Fortinet said it was aware of one instance where the flaw had been exploited in the wild.
How it works
- The attacker finds firewalls with the SSL-VPN login exposed to the internet. This is easy, because the service has to be reachable for staff to use it.
- They send specially crafted requests to the SSL-VPN service. No account or password is needed.
- The overflow lets them run their own code or commands on the firewall.
- From there, Fortinet’s follow-up analysis describes malware that replaced a legitimate component, opened a remote connection to the attacker, and altered the firewall’s own logging so that traces were removed.
The firewall sits between your network and the internet, so whoever controls it can watch or redirect traffic and reach the systems behind it.
Who it affects and how badly
Affected: FortiOS 7.2.0 to 7.2.2, 7.0.0 to 7.0.8, 6.4.0 to 6.4.10, 6.2.0 to 6.2.11 and 6.0.0 to 6.0.15, plus all of 5.x, with fixes in later releases. FortiProxy and the 6K/7K models also had affected versions. Check the advisory for the full table.
Fortinet’s analysis said the complexity of the attack suggested an advanced actor targeting government-related organisations. That does not mean small firms were safe. Any exposed, unpatched device could be scanned.
- Small business (under 10 staff): a compromised firewall means the attacker may sit inside the network unseen. Worst case is a ransomware or data theft event that starts from a device nobody was watching.
- Mid-sized business (50 to 250): remote staff lose VPN access while the device is rebuilt, and every credential that passed through it may need resetting.
- Regulated business (fintech, healthcare, councils): a breach of personal data triggers notification duties and questions about why a critical patch was late.
Real examples
Fortinet confirmed the flaw was exploited before a patch was widely applied, and published a malware analysis on 11 January 2023 from a device it examined. The advisory lists the files and connections defenders should look for. Fortinet does not name the affected organisation, and neither do we.
How to detect it
Fortinet’s advisory lists indicators of compromise. The main ones:
- Repeated log entries saying the application sslvpnd crashed with Signal 11.
- Unexpected files in /data/lib, such as libips.bak, libgif.so, libiptcp.so, libipudp.so and libjepg.so, and the file /var/.sslvpnconfigbk.
- Outbound connections from the firewall to the IP addresses listed in the advisory.
Fortinet points to its knowledge base article for how to check these. Because the malware tampered with logs, a clean log alone is weak proof. Send firewall logs to a separate system so an attacker cannot edit them.
How to fix or prevent it
- Upgrade FortiOS to a fixed release (for example 7.2.3, 7.0.9, 6.4.11, 6.2.12 or 6.0.16 or later) and migrate off any 5.x version.
- If you cannot patch at once, use Fortinet’s workaround: disable SSL-VPN.
- Check the indicators above on every device that was exposed before patching.
- If you find any, treat the firewall as compromised, rebuild it and reset VPN, administrator and service credentials that passed through it.
- Forward logs to a separate collector and alert on service crashes.
- Keep the management interface off the internet.
What we check on a test
On an external test we look at whether VPN and firewall login pages are reachable from the internet, which product and version the service reveals, whether that version is on a vendor advisory, whether management interfaces are exposed, and whether the device can reach the internal network more widely than it needs to. We report exposure and version evidence. We do not run exploits against devices without agreed scope.
Rules and regulators
- UK: the ICO says a reportable personal data breach must be reported within 72 hours of discovery. The NCSC has published guidance, with partner agencies, on logging that network devices should provide so breaches can be investigated.
- EU: GDPR Article 33 sets the same 72-hour window for notifying the supervisory authority where feasible.
- US: breach notification duties depend on your state and sector. HHS, for example, sets a 60-day individual notice rule for HIPAA covered entities.
Worked example (illustration only)
A 30-person recruitment agency uses a FortiGate for home working. The firewall is two minor versions behind and nobody reads vendor advisories. An attacker uses the flaw, steals the saved VPN credentials and logs in as a consultant. The agency finds out when candidate data is offered for sale. The cost is a forensic rebuild, notifications to candidates, and clients asking for proof of security. Subscribing to the vendor’s advisories and patching within days would have closed the door.
FAQ
Which FortiOS versions were affected? FortiOS 7.2.0 to 7.2.2, 7.0.0 to 7.0.8, 6.4.0 to 6.4.10, 6.2.0 to 6.2.11, 6.0.0 to 6.0.15 and all of 5.x.
Is there a workaround? Yes. Fortinet’s workaround was to disable SSL-VPN until you can upgrade.
Does patching remove an attacker already inside? No. The fix closes the flaw. You still need to check the indicators.
Sources
- https://www.fortiguard.com/psirt/FG-IR-22-398
- https://www.fortinet.com/blog/psirt-blogs/analysis-of-fg-ir-22-398-fortios-heap-based-buffer-overflow-in-sslvpnd
- https://www.ncsc.gov.uk/guidance/guidance-on-digital-forensics-protective-monitoring
- https://www.ncsc.gov.uk/news/cyber-agencies-unveil-new-guidelines-to-secure-edge-devices-from-increasing-threat
- https://ico.org.uk/for-organisations/advice-for-small-organisations/personal-data-breaches/72-hours-how-to-respond-to-a-personal-data-breach/
- https://gdpr-info.eu/art-33-gdpr/
- https://www.hhs.gov/hipaa/for-professionals/breach-notification/index.html
Related terms
- Ivanti Connect Secure CVE-2023-46805
- Edge device hardening checklist
- Heartbleed CVE-2014-0160
- Windows Event ID 1102: audit log cleared
- ProxyLogon CVE-2021-26855
More in the Vulnerabilities hub.
Related reading: Check Point Gateway Attacks: What to Check This Week.
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan.
See pricing for plans. Wolfcore also runs Phishy, phishing simulation software for training staff, and Breachy, breach exposure monitoring for your business credentials.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call