Join our Newsletter — 33% off our NHI Course
Home› Guides› FortiOS SSL VPN Flaws (CVE-2018-13379, CVE-2024-21762): Exposure checks…
Guide Vulnerability Management

FortiOS SSL VPN Flaws (CVE-2018-13379, CVE-2024-21762): Exposure checks and response steps

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

Two FortiOS SSL VPN vulnerabilities, five years apart, show that patching an edge device closes the hole but does not undo what was taken through it. CVE-2018-13379 let an unauthenticated request read system files, including files holding VPN user credentials; CVE-2024-21762 allowed unauthenticated code execution in the SSL VPN daemon. Both are in the CISA Known Exploited Vulnerabilities (KEV) catalogue. This guide covers what each flaw is, how to check exposure, how to respond if exploitation is suspected and how to clean up the credentials that sit on or behind the device. It is written for network security teams and incident responders, and it is defensive only: it contains no exploit detail. For routine FortiGate configuration see the FortiGate Hardening Guide; for programme-level patching see the Vulnerability Management Guide.

This is an independent guide from NHI Mgmt Group, based on Fortinet's public PSIRT advisories and CISA publications as of November 2026. It is not sponsored or reviewed by Fortinet. Advisories are revised, so confirm affected and fixed versions against Fortinet's current PSIRT pages.

Key takeaways

  • Both flaws need SSL VPN enabled. Fortinet lists disabling SSL VPN as the workaround for both; devices that never had SSL VPN enabled are not exposed to them.
  • Patching does not reset credentials. Fortinet warned in 2021 that devices patched after credentials were harvested "remain vulnerable" if passwords were not reset.
  • Persistence can survive the patch. In April 2025 Fortinet described read-only access left behind on previously exploited devices, removed only by specific later releases.
  • The device holds machine credentials too. LDAP bind accounts, RADIUS secrets, IPsec pre-shared keys and certificates on a compromised FortiGate must be treated as exposed.
  • Treat suspected exploitation as an incident, not a patch ticket. Preserve evidence, rebuild from verified firmware, restore a validated configuration and rotate every secret.

The two vulnerabilities at a glance

ItemCVE-2018-13379CVE-2024-21762
Fortinet advisoryFG-IR-18-384, published 24 May 2019FG-IR-24-015, published 8 February 2024
TypePath traversal in the SSL VPN web portal; information disclosureOut-of-bounds write (CWE-787) in sslvpnd; remote code or command execution
Authentication neededNoneNone
CVSSv3 base score (Fortinet)9.19.8 (Critical)
Affected FortiOS5.4.6 to 5.4.12, 5.6.3 to 5.6.7, 6.0.0 to 6.0.4, only with SSL VPN web or tunnel mode enabled6.0.0 to 6.0.17, 6.2.0 to 6.2.15, 6.4.0 to 6.4.14, 7.0.0 to 7.0.13, 7.2.0 to 7.2.6, 7.4.0 to 7.4.2; FortiProxy also affected
Fixed FortiOS5.4.13, 5.6.8, 6.0.5, 6.2.0 and above6.0.18, 6.2.16, 6.4.15, 7.0.14, 7.2.7, 7.4.3 or above
Vendor workaroundDisable SSL VPN entirely; two-factor authentication limits credential misuseDisable SSL VPN (disabling web mode alone is not a valid workaround); IPS virtual patch available
CISA KEVAdded 3 November 2021; known ransomware campaign useAdded 9 February 2024; known ransomware campaign use

Version ranges are taken from the Fortinet advisories as published and revised. Later releases on the same branches also contain the fixes. See the How to Read a CVE Advisory Guide for reading affected and fixed ranges, and the CISA KEV Catalogue Guide for how KEV listings should drive priority.

CVE-2018-13379: path traversal and credential exposure

Fortinet's advisory describes a path traversal flaw in the SSL VPN web portal that let an unauthenticated attacker download FortiOS system files through specially crafted HTTP resource requests. The practical impact was credential exposure: files on the device held data that could reveal SSL VPN user credentials.

  • Government warnings: on 2 April 2021 the FBI and CISA (advisory AA21-092A) reported APT actors scanning for FortiOS devices on ports 4443, 8443 and 10443 and enumerating them for CVE-2018-13379 and two other FortiOS flaws, possibly to pre-position for later data theft or encryption attacks.
  • Credential disclosure: on 8 September 2021 Fortinet reported that a threat actor had disclosed SSL VPN credentials for about 87,000 FortiGate devices, obtained from systems unpatched at the time of the actor's scan. Fortinet advised an organisation-wide password reset, MFA and disabling VPN access until remediation was complete.
  • Long tail: the flaw was fixed in 2019, yet the credentials gathered through it stayed useful wherever passwords were never changed. That is the main lesson: the window of risk is set by credential rotation, not by the patch date.

CVE-2024-21762: out-of-bounds write

FG-IR-24-015 describes an out-of-bounds write in sslvpnd that may allow a remote, unauthenticated attacker to execute arbitrary code or commands through specially crafted HTTP requests. At publication Fortinet stated the flaw was potentially being exploited in the wild, and CISA added it to KEV the following day.

  • Scope: FortiOS branches 6.0 to 7.4 and several FortiProxy branches; FortiProxy 1.0, 1.1 and 1.2 have no fix and need migration to a fixed release.
  • Workaround: disable SSL VPN. Fortinet notes that disabling web mode only is not a valid workaround, because the daemon remains reachable.
  • Virtual patch: Fortinet published an IPS signature as a virtual patch, which helps where an upgrade must wait for a change window but does not replace the upgrade.
  • Post-exploitation persistence: Fortinet's April 2025 analysis listed FG-IR-24-015 among the advisories exploited for initial access on devices where a threat actor then left a mechanism giving read-only access to device files, including configuration, after the original flaw was patched. Fortinet stated that upgrading to FortiOS 7.6.2, 7.4.7, 7.2.11, 7.0.17 or 6.4.16 removes it, and asked customers to review configurations and treat them as potentially compromised.

Checking exposure

  1. Inventory every FortiOS and FortiProxy instance: physical, virtual and cloud-marketplace units, including ones run by managed service providers and acquired companies. Record branch, build and whether SSL VPN is enabled.
  2. Compare builds with the advisory tables: flag any unit in an affected range, and any unit below the April 2025 releases above if SSL VPN was ever enabled on it.
  3. Check external reachability: confirm from outside which SSL VPN portals and management interfaces answer on the internet, including non-default ports such as those named in AA21-092A. Your attack surface management tooling should agree with the inventory.
  4. Identify historic exposure: for each unit, establish whether it ran a vulnerable build while internet-facing, and for how long. A unit patched late is a candidate for the response steps below even if it is current today.
  5. Check end of support: branches without fixes need migration, not exceptions. See the Edge Device End of Life Replacement Playbook.

Response if exploitation is suspected

Suspicion arises from threat intelligence or vendor indicators, unexplained configuration changes, unexpected administrator or VPN sessions, or a history of running a vulnerable build while exposed. Fortinet's community guidance on a compromised host sets out the core sequence; the steps below put it in incident response order. See the Edge Device Compromise Investigation Playbook for the investigation side.

  1. Preserve evidence first: export logs, configuration backups and diagnostic output before any reformat. Forward copies to a system the device cannot reach.
  2. Contain: isolate the unit or disable SSL VPN, and move remote users to an alternative access path if one exists.
  3. Scope downstream: review VPN session logs for logins from unusual locations or at unusual times, authentications for accounts that should not use VPN, and internal connections from VPN address pools to domain controllers, file servers and management systems. See the VPN and Firewall Log Detection Guide and the Lateral Movement Guide.
  4. Rebuild from verified firmware: Fortinet's guidance is to download firmware from Fortinet Support, check its SHA512 checksum, format the flash, perform a clean install and format the log disk.
  5. Restore a validated configuration: use a known-good backup or build a clean configuration, and review it for unknown administrators, policies, local-in rules, scripts and VPN users before it goes live.
  6. Rotate every secret held on the device: see the next section.
  7. Verify integrity: Fortinet TAC can help verify device integrity and run filesystem integrity checks.
  8. Report: check notification duties under the laws and contracts that apply, such as GDPR Article 33 where personal data may be affected.

Credential reset and NHI follow-up

A FortiGate is an identity store as much as a firewall. Fortinet's recovery guidance lists admin, local user and VPN user passwords, RADIUS secrets, IPsec pre-shared keys and LDAP bind credentials for reset, and certificates for reissue and revocation. Many of these are non-human identities that are easy to forget.

Credential on or behind the deviceWhy it mattersAction
LDAP or Active Directory bind accountOften a service account with directory read rights, sometimes moreRotate the password, reduce its rights to the minimum, alert on its use from anywhere but the FortiGate
RADIUS shared secretsAllow impersonation of the device to the authentication serverReplace on both sides; review RADIUS logs for unknown clients
IPsec pre-shared keysAllow rogue peers to establish site-to-site tunnelsReplace on every peer; consider certificate authentication
Device and VPN certificates and private keysAllow impersonation of the portal or of the deviceReissue and revoke the old certificates
REST API tokens and automation accountsProgrammatic admin access used by orchestration and backup toolsRegenerate tokens, restrict trusted hosts, record owners
Local and remote administrator accountsFull control of the deviceReset, remove unknown accounts, enforce MFA
VPN user passwordsReused in the directory and often elsewhereOrganisation-wide reset where they are directory accounts; enforce MFA

Also revoke active VPN and administrator sessions after the rebuild so that sessions established with stolen credentials do not persist. If directory credentials may have been exposed, extend the reset to accounts with privileged rights and check for new accounts, group changes and persistence in the directory. See the LDAP Security Deep Dive Guide and the Non-Human Identity (NHI) Guide.

Lessons for edge devices

  • Patch exploited edge flaws in days: KEV-listed edge vulnerabilities belong in the fastest service level you have, with emergency change approval pre-agreed.
  • Reduce what is exposed: disable SSL VPN where it is not used, keep management interfaces off the internet, and restrict portals with allow lists where the user population allows it.
  • Require MFA for every VPN login: Fortinet's CVE-2018-13379 advisory and its 2021 credential warning both point to MFA as the control that makes harvested passwords far less useful.
  • Log off-box: send device and VPN logs to a SIEM so evidence survives a compromise or a rebuild.
  • Keep golden configurations: store reviewed configuration baselines so a clean rebuild is fast and differences are easy to spot.
  • Plan the remote access model: consider whether ZTNA or other access patterns reduce reliance on internet-facing VPN portals. See the Edge Device Security Guide and the Secure Remote Access Beyond VPN Guide.

Framework mapping

FrameworkReferenceRelevance
MITRE ATT&CKT1190 Exploit Public-Facing ApplicationInitial access through the SSL VPN service
MITRE ATT&CKT1133 External Remote Services; T1078 Valid AccountsLater use of harvested VPN credentials
MITRE ATT&CKT1552.001 Credentials In FilesCredential exposure from device files
NIST SP 800-53 Rev. 5SI-2 Flaw Remediation; RA-5 Vulnerability Monitoring and ScanningPatching and exposure checks
NIST SP 800-53 Rev. 5IA-2(1) Multi-Factor Authentication to Privileged Accounts; IA-5 Authenticator ManagementMFA and credential rotation
CIS Controls v8.1Control 7 Continuous Vulnerability Management; Control 6 Access Control ManagementPatch cadence; MFA for remote access

Detection and measurement

  • Exposure age: days from KEV listing to fixed build across all FortiOS units (target: within the CISA due date or faster).
  • Inventory accuracy: internet-facing FortiOS services found by external scanning that were missing from the inventory (target: zero).
  • MFA coverage: percentage of SSL VPN users and administrators with enforced MFA.
  • Secret rotation completeness: after an incident, percentage of device-held secrets (bind accounts, RADIUS, PSKs, certificates, API tokens) rotated and verified.
  • Log coverage: FortiOS units forwarding event and VPN logs to the SIEM.

Practitioner checklist

  • Inventory every FortiOS and FortiProxy unit with branch, build and SSL VPN status.
  • Confirm every unit is on a fixed build and, if SSL VPN was ever enabled, at or above the April 2025 releases named by Fortinet.
  • Disable SSL VPN where it is not needed; keep management off the internet.
  • Enforce MFA for all VPN users and administrators.
  • For any unit that ran a vulnerable build while exposed, run the response steps: preserve, contain, rebuild, restore, rotate.
  • Rotate LDAP bind, RADIUS, IPsec PSK, certificate and API token secrets after any suspected compromise.
  • Reset directory passwords for VPN users where exposure is possible, and revoke active sessions.
  • Forward FortiOS logs off-box and alert on unusual VPN and administrator logins.
  • Track KEV-listed edge flaws to closure within an emergency patch service level.

Standards and references

Related NHI Mgmt Group resources: FortiGate Hardening Guide · VPN Security Guide · Edge Device Exploitation by Threat Actors Guide · Risk-Based Vulnerability Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.