Remote code execution in FortiGate FortiOS

Published: 2016-08-18
Severity High
Patch available YES
Number of vulnerabilities 1
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software FortiOS Subscribe
Vendor Fortinet, Inc

Security Advisory

This security advisory describes one high risk vulnerability.

1) Buffer overflow in cookie parser

Severity: High



CWE-ID: CWE-119 - Improper Restriction of Operations within the Bounds of a Memory Buffer


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in cookie parser within management we interface. A remote unauthenticated attacker can send a specially crafted HTTP request containing a very long cookie, trigger buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in denial of service or complete compromise of the device.


This vulnerability is fixed in FortiOS firmware versions 4.1.11, 4.2.13, 4.3.9 and 5.0.

Vulnerable software versions

FortiOS: 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.1.9, 4.1.10, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.2.5, 4.2.6, 4.2.7, 4.2.8, 4.2.9, 4.2.10, 4.2.11, 4.2.12, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 4.3.8

CPE External links

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.