patchminder
No public exploit found CVE-2021-42757

Code executionin Fortinet FortiOS.

Published 8 Dec 2021 · Updated 16 Oct 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 6.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
No source names a fixed version yet
In plain words

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.

What to do now
  • 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

Not confirmed by any source yet: fixed version not confirmed. We show these as not confirmed instead of guessing.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
FortiOS
7.0.0 to 7.0.2
Not confirmed
CVE record
FortiOS
6.4.0 to 6.4.7
Not confirmed
CVE record
FortiOS
6.2.0 to 6.2.9
Not confirmed
CVE record
FortiOS
6.0.0 to 6.0.13
Not confirmed
CVE record
FortiOS
5.6.0 to 5.6.14
Not confirmed
CVE record
FortiOS
5.4.0 to 5.4.13
Not confirmed
CVE record
FortiOS
5.2.0 to 5.2.15
Not confirmed
CVE record
FortiOS
5.0.0 to 5.0.14
Not confirmed
CVE record
FortiDDoS-F
6.4.0 to 6.4.1
Not confirmed
CVE record
FortiDDoS-F
6.3.0
Not confirmed
CVE record
FortiDDoS-F
6.2.0 to 6.2.2
Not confirmed
CVE record
FortiDDoS-F
6.1.0 to 6.1.4
Not confirmed
CVE record
FortiVoice
6.4.0 to 6.4.4
Not confirmed
CVE record
FortiVoice
6.0.0 to 6.0.10
Not confirmed
CVE record
FortiProxy
7.0.0 to 7.0.1
Not confirmed
CVE record
FortiProxy
2.0.0 to 2.0.7
Not confirmed
CVE record
FortiProxy
1.2.0 to 1.2.13
Not confirmed
CVE record
FortiProxy
1.1.0 to 1.1.6
Not confirmed
CVE record
FortiProxy
1.0.0 to 1.0.7
Not confirmed
CVE record
FortiRecorder
6.4.0 to 6.4.2
Not confirmed
CVE record
FortiRecorder
6.0.0 to 6.0.10
Not confirmed
CVE record
FortiRecorder
2.7.0 to 2.7.7
Not confirmed
CVE record
FortiRecorder
2.6.0 to 2.6.3
Not confirmed
CVE record
FortiPortal
6.0.0 to 6.0.10
Not confirmed
CVE record
FortiPortal
5.3.0 to 5.3.8
Not confirmed
CVE record
FortiPortal
5.2.0 to 5.2.6
Not confirmed
CVE record
FortiPortal
5.1.0 to 5.1.2
Not confirmed
CVE record
FortiPortal
5.0.0 to 5.0.3
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 20 Oct 2021
    CVE ID reserved by fortinet.
  2. 8 Dec 2021
    Published in the CVE List.
  3. 16 Oct 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other FortiOS vulnerabilities

Same weakness: Classic buffer overflow

All CWE-120 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-42757: Code execution in Fortinet FortiOS. https://patchminder.com/cve/cve-2021-42757/ (accessed 5 December 2026).