CVEBrief

Home / Fortinet / FortiOS / CVE-2021-42757

CVE-2021-42757: is it exploited, and which versions of Fortinet FortiOS are affected and fixed?

CVE-2021-42757 is a buffer overflow vulnerability in Fortinet FortiOS. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: FortiOS from 7.0.0 through 7.0.2, FortiOS from 6.4.0 through 6.4.7, FortiOS from 6.2.0 through 6.2.9 and 81 more (CVE record by fortinet). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.3, CVSS 3.1, from fortinet).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:52 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 17:39 UTC
Affected
FortiOS from 7.0.0 through 7.0.2, FortiOS from 6.4.0 through 6.4.7, FortiOS from 6.2.0 through 6.2.9 and 81 more
CVE record by fortinet
Fixed in
Not listed
check the vendor advisory
Severity
Medium 6.3
CVSS 3.1 from fortinet
Exploit odds (EPSS)
0.52% in 30 days
higher than 45% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-42757?

A buffer overflow [CWE-121] 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 arbitrary code execution via specially crafted command line arguments.

From the CVE record by fortinet, last updated October 16, 2025, 09:46 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
FortinetFortiOSfrom 7.0.0 through 7.0.2
from 6.4.0 through 6.4.7
from 6.2.0 through 6.2.9
from 6.0.0 through 6.0.13
from 5.6.0 through 5.6.14
from 5.4.0 through 5.4.13
from 5.2.0 through 5.2.15
from 5.0.0 through 5.0.14
FortinetFortiDDoS-Ffrom 6.4.0 through 6.4.1
6.3.0
from 6.2.0 through 6.2.2
from 6.1.0 through 6.1.4
FortinetFortiVoicefrom 6.4.0 through 6.4.4
from 6.0.0 through 6.0.10
FortinetFortiProxyfrom 7.0.0 through 7.0.1
from 2.0.0 through 2.0.7
from 1.2.0 through 1.2.13
from 1.1.0 through 1.1.6
from 1.0.0 through 1.0.7
FortinetFortiRecorderfrom 6.4.0 through 6.4.2
from 6.0.0 through 6.0.10
from 2.7.0 through 2.7.7
from 2.6.0 through 2.6.3
FortinetFortiPortalfrom 6.0.0 through 6.0.10
from 5.3.0 through 5.3.8
from 5.2.0 through 5.2.6
from 5.1.0 through 5.1.2
from 5.0.0 through 5.0.3
FortinetFortiMailfrom 7.0.0 through 7.0.2
from 6.4.0 through 6.4.6
from 6.2.0 through 6.2.7
from 6.0.0 through 6.0.12
from 5.4.0 through 5.4.12
FortinetFortiAnalyzerfrom 7.0.0 through 7.0.2
from 6.4.0 through 6.4.7
from 6.2.0 through 6.2.13
from 6.0.0 through 6.0.12
FortinetFortiNDRfrom 1.5.0 through 1.5.2
1.4.0
from 1.3.0 through 1.3.1
1.2.0
1.1.0
FortinetFortiDDoSfrom 5.5.0 through 5.5.1
from 5.4.0 through 5.4.3
from 5.3.0 through 5.3.2
5.2.0
5.1.0
5.0.0
4.7.0
4.6.0
4.5.0
from 4.4.0 through 4.4.2
FortinetFortiSwitchfrom 7.0.0 through 7.0.3
from 6.4.0 through 6.4.9
from 6.2.0 through 6.2.7
from 6.0.0 through 6.0.7
FortinetFortiADCfrom 6.2.0 through 6.2.2
from 6.1.0 through 6.1.5
from 6.0.0 through 6.0.4
from 5.4.0 through 5.4.5
from 5.3.0 through 5.3.7
from 5.2.0 through 5.2.8
from 5.1.0 through 5.1.7
from 5.0.0 through 5.0.4
FortinetFortiWebfrom 6.4.0 through 6.4.1
from 6.3.0 through 6.3.16
from 6.2.0 through 6.2.8
from 6.1.0 through 6.1.4
from 6.0.0 through 6.0.8
from 5.9.0 through 5.9.2
from 5.8.5 through 5.8.7
from 5.8.0 through 5.8.3
from 5.7.0 through 5.7.3
from 5.6.0 through 5.6.2
from 5.5.0 through 5.5.7
from 5.4.0 through 5.4.1
and 4 more ranges
FortinetFortiManagerfrom 7.0.0 through 7.0.2
from 6.4.0 through 6.4.7
from 6.2.0 through 6.2.13
from 6.0.0 through 6.0.12

As the CVE record by fortinet states it, last updated October 16, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
fortinetfortiadcfrom 5.0.0 through 6.1.5application
fortinetfortiadcfrom 6.2.0 through 6.2.2application
fortinetfortianalyzerfrom 6.0.0 through 6.4.7application
fortinetfortianalyzerfrom 7.0.0 through 7.0.2application
fortinetfortimailfrom 5.4.0 through 6.2.7application
fortinetfortimailfrom 6.4.0 through 6.4.6application
fortinetfortimailfrom 7.0.0 through 7.0.2application
fortinetfortimanagerfrom 6.0.0 through 6.4.7application
fortinetfortimanagerfrom 7.0.0 through 7.0.2application
fortinetfortindrfrom 1.1.0 through 1.5.2application
fortinetfortios-6k7kthrough 6.2.8application
fortinetfortios-6k7k6.4.2application
fortinetfortios-6k7k6.4.6application
fortinetfortiportalfrom 5.0.0 through 6.0.10application
fortinetfortiproxyfrom 1.0.0 through 2.0.7application
fortinetfortiproxy7.0.0application
fortinetfortiproxy7.0.1application
fortinetfortivoicefrom 6.0.0 through 6.0.10application
fortinetfortivoicefrom 6.4.0 through 6.4.4application
fortinetfortiwebfrom 5.0.0 through 6.3.16application
fortinetfortiweb6.4.0application
fortinetfortiweb6.4.1application
fortinetfortiosfrom 5.0.0 through 6.0.13operating system
fortinetfortiosfrom 6.2.0 through 6.2.9operating system
fortinetfortiosfrom 6.4.0 through 6.4.7operating system

NVD analysis (status Modified), last modified June 17, 2026, 04:10 UTC.

How severe is CVE-2021-42757?

ScoreVersionVectorSource
Medium 6.3CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:Cfortinet
Medium 6.7CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HNVD
Medium 4.6CVSS 2.0AV:L/AC:L/Au:N/C:P/I:P/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-42757 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.52% probability of exploitation activity in the next 30 days, percentile 45.5 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

How do I fix it? (from the CVE record)

Upgrade to FortiOS version 7.0.3 or above Upgrade to FortiOS version 6.4.8 or above Upgrade to FortiOS version 6.2.10 or above Upgrade to FortiOS version 6.0.14 or above Upgrade to FortiDDoS-F version 6.4.2 or above Upgrade to FortiDDoS-F version 6.3.1 or above Upgrade to FortiDDoS-F version 6.2.3 or above Upgrade to FortiDDoS-F version 6.1.5 or above Upgrade to FortiOS-6K7K version 6.4.8 or above Upgrade to FortiOS-6K7K version 6.2.9 or above Upgrade to FortiVoice version 6.4.5 or above Upgrade to FortiVoice version 6.0.11 or above Upgrade to FortiProxy version 7.0.2 or above Upgrade to FortiProxy version 2.0.8 or above Upgrade to FortiRecorder version 7.0.0 or above Upgrade to FortiRecorder version 6.4.3 or above Upgrade to FortiRecorder version 6.0.11 or above Upgrade to upcoming FortiRecorder version 2.7.8 or above Upgrade to FortiPortal version 6.0.11 or above Upgrade to FortiMail version 7.2.0 or above Upgrade to FortiMail version 7.0.3 or above Upgrade to FortiMail version 6.4.7 or above Upgrade to FortiAnalyzer version 7.0.3 or above Upgrade to FortiAnalyzer version 6.4.8 or above Upgrade to FortiNDR version 7.0.0 or above Upgrade to FortiDDoS version 5.6.0 or above Upgrade to FortiDDoS version 5.5.2 or above Upgrade to FortiSwitch version 7.2.0 or above Upgrade to FortiSwitch version 7.0.4 or above Upgrade to FortiSwitch version 6.4.10 or above Upgrade to FortiADC version 7.0.1 or above Upgrade to FortiADC version 6.2.3 or above Upgrade to FortiADC version 6.1.6 or above Upgrade to FortiWeb version 7.0.0 or above Upgrade to FortiWeb version 6.4.2 or above Upgrade to FortiWeb version 6.3.17 or above Upgrade to FortiManager version 7.0.3 or above Upgrade to FortiManager version 6.4.8 or above

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
October 20, 2021
Published
December 8, 2021, 11:01 UTC
CVE record updated
October 16, 2025, 09:46 UTC by fortinet
NVD
Modified, last modified June 17, 2026, 04:10 UTC
Last checked
CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect FortiOS?

Every CVE in FortiOS

Questions about CVE-2021-42757

Is CVE-2021-42757 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.52% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Fortinet FortiOS are affected by CVE-2021-42757?

FortiOS from 7.0.0 through 7.0.2, FortiOS from 6.4.0 through 6.4.7, FortiOS from 6.2.0 through 6.2.9, FortiOS from 6.0.0 through 6.0.13, FortiOS from 5.6.0 through 5.6.14, FortiOS from 5.4.0 through 5.4.13 and 78 more, per the CVE record by fortinet. The tables above give every range the sources list.

Which version fixes CVE-2021-42757?

None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.

How severe is CVE-2021-42757?

Medium (6.3, CVSS 3.1, from fortinet). The severity table above shows each score with its source.

Where is the official record of CVE-2021-42757?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.