Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2018-13379: Unauthenticated Path Traversal in Fortinet FortiOS and FortiProxy SSL VPN

Published Jun 4, 2019 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Fortinet
IdentifiersCVE-2018-13379CWE-22 · Improper Limitation of a Pathname…

CVE-2018-13379 is a path traversal vulnerability in the SSL VPN web portal of Fortinet FortiOS and FortiProxy. Improper restriction of requested paths allows an unauthenticated remote attacker to download system files using specially crafted HTTP resource requests, including language resource requests. Affected releases are FortiOS 5.4.6–5.4.12, 5.6.3–5.6.7, and 6.0.0–6.0.4, and FortiProxy 1.0.0–1.0.7, 1.1.0–1.1.6, 1.2.0–1.2.8, and 2.0.0. FortiOS is vulnerable when SSL VPN is enabled in either web-mode or tunnel-mode. Exposed files can include credentials belonging to logged-in SSL VPN users.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises confidentiality by disclosing system files without authentication, including credentials of logged-in SSL VPN users on FortiOS. Stolen credentials can enable user impersonation and unauthorized VPN access when two-factor authentication is not enabled and the credentials remain valid. Subsequent network compromise and ransomware deployment are possible downstream consequences, but the vulnerability itself provides file disclosure rather than direct code execution.

Mitigation

If you can’t patch tonight, do this now.

For FortiOS, the temporary workaround for the underlying vulnerability is to completely disable SSL VPN in both web-mode and tunnel-mode, removing applicable SSL VPN authentication rules and firewall policies as necessary and unsetting the SSL VPN source interface. Disabling web-mode alone is insufficient. Restricting network access to the SSL VPN service reduces exposure. Enable two-factor authentication to reduce impersonation using stolen credentials, but recognize that it does not prevent file disclosure.

Remediation

Patch, then assume compromise.

Apply vendor-fixed firmware. FortiOS fixes are available in 5.4.13, 5.6.8, 6.0.5, and 6.2.0 or later appropriate releases. FortiProxy fixes are available in 1.2.9 or later and 2.0.1 or later. Prefer a currently supported, fully patched release rather than an obsolete minimum fixed version. Where exposure or exploitation is suspected, investigate unauthorized access, rotate potentially disclosed VPN credentials, and revoke affected sessions; patching does not invalidate previously stolen credentials.

Public exploits

Exploits

8 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
fortios_vpnssl_traversal_creds_leak.rbThis repository contains a single Metasploit auxiliary module targeting a path traversal vulnerability (CVE-2018-13379) in Fortinet FortiOS SSL VPN web portals. The module exploits the vulnerability by sending a crafted HTTP GET request to the /remote/fgt_lang endpoint with a path traversal payload, allowing unauthenticated attackers to read the /dev/cmdb/sslvpn_websession file. This file contains plaintext usernames and passwords of users currently logged into the VPN. The module parses the response, extracts credentials, and can store them in the Metasploit database. The code is written in Ruby and is structured as a typical Metasploit auxiliary scanner, with options for output format and credential storage. The exploit is operational and provides direct credential theft from vulnerable FortiOS devices.Framework: metasploit · ruby · networkWeaponizedFortiOS-Credentials-DisclosureThis repository contains a Python exploit script (CVE-2018-13379.py) targeting Fortinet FortiOS devices vulnerable to CVE-2018-13379, a path traversal vulnerability in the SSL VPN web interface. The exploit automates the process of sending a crafted HTTPS request to the vulnerable endpoint, allowing unauthenticated attackers to read the sensitive file '/dev/cmdb/sslvpn_websession' and extract VPN session credentials. The script supports batch exploitation by reading a list of targets from a file, processes each target in a new thread, and saves the extracted credentials to individual text files. The code also attempts to enrich the output with information from Shodan about each target. The repository includes a README with usage instructions, a .gitignore, and a GPLv3 license. The main entry point is the CVE-2018-13379.py script, which is operational and provides real credential extraction functionality against vulnerable FortiOS devices.0xHunter · Disclosed Sep 24, 2019 · python · networkOperationalCVE-2018-13379-FortinetThis repository contains a Python exploit script (cve-2018-13379.py) targeting CVE-2018-13379, a path traversal vulnerability in Fortinet FortiOS SSL VPN (versions 5.6.3-5.6.7 and 6.0.0-6.0.4). The exploit takes a file containing a list of target hosts, then for each host, sends a crafted HTTPS request to the /remote/fgt_lang endpoint with a path traversal payload to access the /dev/cmdb/sslvpn_websession file. If successful, it downloads the file, parses it to extract cleartext VPN usernames and passwords, and saves both the raw and parsed data to local files. The script is operational and automates both exploitation and credential extraction. The README is minimal and provides only a title and screenshot. The main entry point is cve-2018-13379.py, written in Python, and the attack vector is network-based, requiring access to the SSL VPN web interface.k4nfr3 · Disclosed Nov 19, 2020 · python · networkOperationalfortios_vpnssl_traversal_leakThis repository contains a Metasploit auxiliary scanner module (fortios_vpnssl_traversal_leak.rb) that exploits a path traversal vulnerability (CVE-2018-13379) in the FortiOS SSL VPN web portal. The exploit targets FortiOS versions 5.4.6-5.4.12, 5.6.3-5.6.7, and 6.0.0-6.0.4, allowing unauthenticated attackers to download the /dev/cmdb/sslvpn_websession file via a crafted HTTP GET request to the /remote/fgt_lang endpoint. The module parses the downloaded file to extract cleartext VPN session credentials (usernames and passwords) and can optionally store them in the Metasploit database. The repository includes a README and a markdown description of the vulnerability, but the main exploit logic resides in the Ruby module file. The attack vector is network-based, requiring access to the SSL VPN web interface (typically on port 10443/tcp).Zeop-CyberSec · Disclosed Nov 30, 2020 · Framework: metasploit · ruby · networkOperationalCVE-2018-13379This repository contains a Python exploit script (CVE-2018-13379.py) targeting the critical path traversal vulnerability CVE-2018-13379 in Fortinet FortiOS SSL VPN and FortiProxy. The exploit works by sending a specially crafted HTTPS request to the /remote/fgt_lang endpoint on the target device, using a path traversal payload to access the internal file /dev/cmdb/sslvpn_websession. If successful, the script downloads this file, saves it locally, and parses it to extract usernames and session tokens, which can be used for session hijacking. The script supports scanning single or multiple targets (with multithreading), and is intended for use against vulnerable Fortinet devices running specific versions of FortiOS or FortiProxy. The repository also includes a README with usage instructions and a license file. No fake or detection-only code is present; this is a functional exploit.kh4sh3i · Disclosed Sep 21, 2025 · python · networkOperationalCVE-2018-13379Repository contains a single Python3 exploit script plus a README. - Primary exploit file: `CVE-2018-13379` (Python). Implements an unauthenticated network exploit for Fortinet FortiGate SSL-VPN path traversal / arbitrary file read (CVE-2018-13379). It targets the SSL-VPN web portal endpoint `/remote/fgt_lang` and supplies a crafted `lang` parameter containing traversal sequences to retrieve `/dev/cmdb/sslvpn_websession`. - Capabilities: - Single-target or bulk scanning: accepts `--ip` for one target or `--file` for a list; uses `multiprocessing.Pool` with configurable `--threads` (default 10). - Exploitation and collection: performs `requests.get()` over HTTPS with certificate verification disabled and a short timeout (2s). If the response contains the marker `var fgt_lang =`, it treats the host as vulnerable, saves the raw response to `sslvpn_websession_<target>.dat`, and then parses the file. - Post-processing: `parseFile()` reads the saved file and prints printable ASCII characters in 61-byte lines (non-printables replaced with `.`), effectively dumping readable strings from the session database to the console. - Notable implementation details / limitations: - The script hardcodes HTTPS scheme; targets may include a port (e.g., `ip:10443`) which is interpolated directly into `https://{ip}/...`. - Output directory is supported via `--output` by changing the current working directory before writing files. - This is not a full RCE exploit; it is an operational data-exfiltration PoC focused on session information disclosure. - README: documents CVE, affected FortiOS version ranges, the vulnerable endpoint, and references.Zierax · Disclosed Feb 5, 2026 · python · markdown · networkOperationalMulti-threaded-mass-exploiter-CVE-2018-13379-POCThis repository is a small standalone Python exploit tool for mass exploitation of CVE-2018-13379 against Fortinet FortiOS SSL VPN devices. It contains two files: a README describing usage and one executable script, exploit.py. The script is the main entry point and implements a multithreaded scanner/exploiter using 20 worker threads by default. Core behavior: the script reads targets from targets.txt, builds an HTTPS request to /remote/fgt_lang with a path traversal payload pointing to /dev/cmdb/sslvpn_websession, disables TLS certificate warnings, and sends the request with requests. If the response is HTTP 200 and begins with the marker 'var fgt_lang', it treats the target as vulnerable and parses the returned binary content for credential records. Extracted username/password pairs are deduplicated and immediately written to fortios_creds.csv; if PostgreSQL is configured and reachable, they are also inserted into a dynamically named table fortios_creds_<timestamp>. Repository structure is minimal and purpose-built: README.md documents installation, configuration, and expected output; exploit.py contains configuration constants, PostgreSQL connection-pool setup, credential parsing logic, CSV/DB persistence, worker-thread logic, and the main routine. This is not merely a detector: it performs active exploitation and credential harvesting. The payload is fixed rather than user-customizable, so the maturity is best classified as OPERATIONAL rather than framework-grade weaponized.Instructor-Admin · Disclosed May 23, 2026 · python · markdown · network · webOperationalCVE-2018-13379This repository contains a Python proof-of-concept exploit for CVE-2018-13379, a path traversal vulnerability in Fortinet FortiOS SSL VPN. The main file, CVE-2018-13379.py, allows an attacker to target one or more FortiOS devices by sending a crafted HTTPS request to the /remote/fgt_lang endpoint with a path traversal payload. If successful, the exploit downloads the contents of the sensitive file '/dev/cmdb/sslvpn_websession', which may contain session information, and parses it to display printable ASCII data. The script supports multi-threaded scanning of multiple targets and can take input from a file or command line. The README provides references and lists affected FortiOS versions. No payload for code execution is included; the exploit is limited to file disclosure.milo2012 · Disclosed Aug 11, 2019 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
FortinetFortiosoperating_system
FortinetFortiproxyapplication
FAQ

Frequently asked questions

Is CVE-2018-13379 exploited in the wild?
Yes. As of Nov 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2018-13379?
Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2018-13379, the earliest disclosed Aug 11, 2019.
Is there a patch for CVE-2018-13379?
Apply vendor-fixed firmware. FortiOS fixes are available in 5.4.13, 5.6.8, 6.0.5, and 6.2.0 or later appropriate releases.
What products are affected by CVE-2018-13379?
Fortinet Fortios and Fortinet Fortiproxy.
How severe is CVE-2018-13379?
CVE-2018-13379 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence49Every report linking this CVE to a named adversary.
Associated malware35Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.