Fortinet FortiOS 5.4 vulnerabilities

55 published vulnerabilities affect Fortinet FortiOS 5.4, 7 of them known to be exploited in the wild.

55CVEs
4critical (CVSS 9+)
18high (CVSS 7–8.9)
7exploited in the wild

What to upgrade to

The newest release on the 5.4 line is 5.4.13, with 42 known CVEs. The newest Fortinet FortiOS release we know of is 8.0.3, with no known CVEs.

Upgrade toFixesStill openNew in that release
5.4.13newest 5.4 release14 of 551 exploited41CVE-2022-42475, CVE-2020-12812, CVE-2023-25610 and 38 more1CVE-2021-42755
8.0.3newest releaseall 557 exploited, 4 criticalnonenone

"Fixes": CVEs on this page that don't affect that release. "New in that release": CVEs that affect it and not this one.

CVEs affecting Fortinet FortiOS 5.4

Worst first: ranked by Dawnsentry's score for a device that faces the internet (CVSS, plus known exploitation and EPSS). "Fixed in" is the first release that carries the fix, where the source names one.

CVECVSSExploitationEPSSFixed in
CVE-2022-42475Heap-based buffer overflow in sslvpnd9.8Exploited97%–vendor advisory
CVE-2020-12812An improper authentication vulnerability in SSL VPN in FortiOS 6.4.0, 6.2.0 to 6.2.3, 6.0.9 and below may result in a user being able to log in successfully…9.8Exploited45%6.0.10CVE record
CVE-2023-25610Heap buffer underflow in administrative interface9.8None known18%6.2.13vendor advisory
CVE-2021-26109An integer overflow or wraparound vulnerability in the memory allocator of SSLVPN in FortiOS before 7.0.1 may allow an unauthenticated attacker to corrupt…9.8None known2%7.0.1CVE record
CVE-2021-44168A download of code without integrity check vulnerability in the "execute restore src-vis" command of FortiOS before 7.0.3 may allow a local authenticated…7.8Exploitedunder 1%7.0.3CVE record
CVE-2021-24018A buffer underwrite vulnerability in the firmware verification routine of FortiOS before 7.0.1 may allow an attacker located in the adjacent network to…8.8None known1%7.0.1CVE record
CVE-2018-13371An external control of system vulnerability in FortiOS may allow an authenticated, regular user to change the routing settings of the device via connecting to…8.8None known1%–CVE record
CVE-2020-12820Under non-default configuration, a stack-based buffer overflow in FortiOS version 6.0.10 and below, version 5.6.12 and below may allow a remote attacker…8.8None knownunder 1%5.6.13NVD
CVE-2023-29181Format String Bug in Fclicense daemon8.8None knownunder 1%–vendor advisory
CVE-2018-13383A heap buffer overflow in Fortinet FortiOS 6.0.0 through 6.0.4, 5.6.0 through 5.6.10, 5.4.0 through 5.4.12, 5.2.14 and earlier and FortiProxy 2.0.0, 1.2.8 and…6.5Exploited31%5.4.13NVD
CVE-2019-5591A Default Configuration vulnerability in FortiOS may allow an unauthenticated attacker on the same subnet to intercept sensitive information by impersonating…6.5Exploited19%–CVE record
CVE-2022-30307A key management error vulnerability affecting the RSA SSH host key in FortiOS 7.2.0 and below, 7.0.6 and below, 6.4.9 and below may allow an unauthenticated…8.1None knownunder 1%–CVE record
CVE-2019-6693Use of a hard-coded cryptographic key to cipher sensitive data in FortiOS configuration backup file may allow an attacker with access to the backup file to…6.5Exploited8%–NVD
CVE-2018-9185An information disclosure vulnerability in Fortinet FortiOS 6.0.0 and below versions reveals user's web portal login credentials in a Javascript file sent to…8.1None known2%–CVE record
CVE-2022-22299A format string vulnerability in the command line interpreter of FortiADC version 6.0.0 through 6.0.4, FortiADC version 6.1.0 through 6.1.5, FortiADC version…7.8None knownunder 1%–NVD
CVE-2020-12819A heap-based buffer overflow vulnerability in the processing of Link Control Protocol messages in FortiGate versions 5.6.12, 6.0.10, 6.2.4 and 6.4.1 and…7.5None knownunder 1%5.6.13NVD
CVE-2021-26108A use of hard-coded cryptographic key vulnerability in the SSLVPN of FortiOS before 7.0.1 may allow an attacker to retrieve the key by reverse engineering7.5None known1%7.0.1CVE record
CVE-2020-15938When traffic other than HTTP/S (eg: SSH traffic, etc...) traverses the FortiGate in version below 6.2.5 and below 6.4.2 on port 80/443, it is not redirected to…7.5None knownunder 1%–NVD
CVE-2019-17655A cleartext storage in a file or on disk (CWE-313) vulnerability in FortiOS SSL VPN 6.2.0 through 6.2.2, 6.0.9 and earlier and FortiProxy 2.0.0, 1.2.9 and…7.5None known1%6.2.3NVD
CVE-2019-15705An Improper Input Validation vulnerability in the SSL VPN portal of FortiOS versions 6.2.1 and below, and 6.0.6 and below may allow an unauthenticated remote…7.5None known2%–NVD
CVE-2019-15703An Insufficient Entropy in PRNG vulnerability in Fortinet FortiOS 6.2.1, 6.2.0, 6.0.8 and below for device not enable hardware TRNG token and models not…7.5None known1%–CVE record
CVE-2018-13381A buffer overflow vulnerability in Fortinet FortiOS 6.0.0 through 6.0.4, 5.6.0 through 5.6.7, 5.4 and earlier versions and FortiProxy 2.0.0, 1.2.8 and earlier…7.5None known2%–NVD
CVE-2017-3130An information disclosure vulnerability in Fortinet FortiOS 5.6.0, 5.4.4 and below versions allows attacker to get FortiOS version info by inspecting FortiOS…7.5None known1%–CVE record
CVE-2018-13380A Cross-site Scripting (XSS) vulnerability in Fortinet FortiOS 6.0.0 to 6.0.4, 5.6.0 to 5.6.7, 5.4.0 to 5.4.12, 5.2 and below and Fortinet FortiProxy 2.0.0…6.1Proof of concept62%–NVD
CVE-2017-17544A privilege escalation vulnerability in Fortinet FortiOS 6.0.0 to 6.0.6, 5.6.0 to 5.6.10, 5.4 and below allows admin users to elevate their profile to…7.2None known2%6.2.0CVE record
CVE-2017-7738An Information Disclosure vulnerability in Fortinet FortiOS 5.6.0 to 5.6.2, 5.4.0 to 5.4.5, 5.2 and below versions allow an admin user with super_admin…7.2None known1%–CVE record
CVE-2021-42757A buffer overflow in the TFTP client library of FortiOS before 6.4.7 and FortiOS 7.0.0 through 7.0.2, may allow an authenticated local attacker to achieve…6.7None knownunder 1%–CVE record
CVE-2017-3133A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.6.0 and earlier allows attackers to execute unauthorized code or commands via the…6.1Proof of concept11%–CVE record
CVE-2017-3132A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.6.0 and earlier allows attackers to Execute unauthorized code or commands via the action…6.1Proof of concept8%–CVE record
CVE-2016-3978The Web User Interface (WebUI) in FortiOS 5.0.x before 5.0.13, 5.2.x before 5.2.3, and 5.4.x before 5.4.0 allows remote attackers to redirect users to…6.1Proof of concept6%–NVD
CVE-2023-33305A loop with unreachable exit condition ('infinite loop') in Fortinet FortiOS version 7.2.0 through 7.2.4, FortiOS version 7.0.0 through 7.0.10, FortiOS 6.4 all…6.5None knownunder 1%–CVE record
CVE-2019-17656A Stack-based Buffer Overflow vulnerability in the HTTPD daemon of FortiOS 6.0.10 and below, 6.2.2 and below and FortiProxy 1.0.x, 1.1.x, 1.2.9 and below…6.5None known2%–NVD
CVE-2020-6648A cleartext storage of sensitive information vulnerability in FortiOS command line interface in versions 6.2.4 and earlier and FortiProxy 2.0.0, 1.2.9 and…6.5None knownunder 1%6.0.12NVD
CVE-2019-5587Lack of root file system integrity checking in Fortinet FortiOS VM application images all versions below 6.0.5 may allow attacker to implant malicious programs…6.5None knownunder 1%6.0.5CVE record
CVE-2018-13374A Improper Access Control in Fortinet FortiOS 6.0.2, 5.6.7 and before, FortiADC 6.1.0, 6.0.0 to 6.0.1, 5.4.0 to 5.4.4 allows attacker to obtain the LDAP server…4.3Exploited38%6.0.3NVD
CVE-2017-14187A local privilege escalation and local code execution vulnerability in Fortinet FortiOS 5.6.0 to 5.6.2, 5.4.0 to 5.4.8, and 5.2 and below versions allows…6.2None knownunder 1%–CVE record
CVE-2022-23438An improper neutralization of input during web page generation ('Cross-site Scripting') vulnerability in FortiOS version 7.0.5 and prior and 6.4.9 and prior…6.1None knownunder 1%–NVD
CVE-2021-26092Failure to sanitize input in the SSL VPN web portal of FortiOS 5.2.10 through 5.2.15, 5.4.0 through 5.4.13, 5.6.0 through 5.6.14, 6.0.0 through 6.0.12, 6.2.0…6.1None known1%–NVD
CVE-2019-6696An improper input validation vulnerability in FortiOS 6.2.1, 6.2.0, 6.0.8 and below until 5.4.0 under admin webUI may allow an attacker to perform an URL…6.1None knownunder 1%–CVE record
CVE-2019-5586A reflected Cross-Site-Scripting (XSS) vulnerability in Fortinet FortiOS 5.2.0 to 5.6.10, 6.0.0 to 6.0.4 under SSL VPN web portal may allow an attacker to…6.1None knownunder 1%–CVE record
CVE-2018-13384A Host Header Redirection vulnerability in Fortinet FortiOS all versions below 6.0.5 under SSL VPN web portal allows a remote attacker to potentially poison…6.1None known1%6.0.5CVE record
CVE-2017-14190A Cross-site Scripting vulnerability in Fortinet FortiOS 5.6.0 to 5.6.2, 5.4.0 to 5.4.7, 5.2 and earlier, allows attacker to inject arbitrary web script or…6.1None known1%–CVE record
CVE-2017-14186A Cross-site Scripting (XSS) vulnerability in Fortinet FortiOS 6.0.0 to 6.0.4, 5.6.0 to 5.6.7, 5.4 and below versions under SSL VPN web portal allows a remote…5.4Proof of concept4%–CVE record
CVE-2017-3131A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.4.0 through 5.4.4 and 5.6.0 allows attackers to execute unauthorized code or commands via…5.4Proof of concept8%–CVE record
CVE-2018-9195Use of a hardcoded cryptographic key in the FortiGuard services communication protocol may allow a Man in the middle with knowledge of the key to eavesdrop on…5.9None known2%–CVE record
CVE-2019-5593Improper permission or value checking in the CLI console may allow a non-privileged user to obtain Fortinet FortiOS plaint text private keys of system's…5.5None knownunder 1%–CVE record
CVE-2017-14185An Information Disclosure vulnerability in Fortinet FortiOS 5.6.0 to 5.6.2, 5.4.0 to 5.4.8 and 5.2 all versions allows SSL VPN web portal users to access…5.3None known1%–CVE record
CVE-2017-7735A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.2.0 through 5.2.11 and 5.4.0 through 5.4.4 allows attackers to execute unauthorized code or…5.4None knownunder 1%–CVE record
CVE-2017-7734A Cross-Site Scripting vulnerability in Fortinet FortiOS versions 5.4.0 through 5.4.4 allows attackers to execute unauthorized code or commands via 'Comments'…5.4None knownunder 1%–CVE record
CVE-2026-71408UI DoS attack5.3None knownunder 1%7.6.7NVD
CVE-2020-12818An insufficient logging vulnerability in FortiGate before 6.4.1 may allow the traffic from an unauthenticated attacker to Fortinet owned IP addresses to go…5.3None knownunder 1%6.4.1CVE record
CVE-2018-13367An information exposure vulnerability in FortiOS 6.2.3, 6.2.0 and below may allow an unauthenticated attacker to gain platform information such as version…5.3None knownunder 1%–CVE record
CVE-2018-13365An Information Exposure vulnerability in Fortinet FortiOS 6.0.1, 5.6.5 and below, allow attackers to learn private IP as well as the hostname of FortiGate via…5.3None knownunder 1%–CVE record
CVE-2018-13366An information disclosure vulnerability in Fortinet FortiOS 6.0.1, 5.6.7 and below allows attacker to reveals serial number of FortiGate via hostname field…5.3None knownunder 1%–CVE record
CVE-2026-25815Fortinet FortiOS through 7.6.6 allows attackers to decrypt LDAP credentials stored in device configuration files, as exploited in the wild from 2025-12-16…3.2None knownunder 1%–CVE record

Other Fortinet FortiOS 5.4 releases

5.4.1342 5.4.1246 5.4.1146 5.4.1048 5.4.950 5.4.852 5.4.754 5.4.655 5.4.555 5.4.459 5.4.359 5.4.259 5.4.160 5.4.059

All Fortinet FortiOS versions

How this list is made

These are the CVEs Dawnsentry matches to each Fortinet FortiOS version, with the same engine its customers use. Where the vendor publishes its own advisory, that decides whether a version is affected, down to hotfix level; otherwise the CVE record and NVD's version data decide. CVSS comes from NVD or the reporting organisation, exploitation from CISA's Known Exploited Vulnerabilities catalogue, CISA's ratings, Metasploit and Nuclei, and EPSS (the probability of exploitation in the next 30 days) from FIRST. The list is rebuilt every day. Always confirm against the vendor's advisory before you act on it.

Updated 2 December 2026.