Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-42757

MEDIUM 6.3EPSS 37%

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 all…

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Fortinet FortiOS >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 6.0.0, <= 6.0.13; >= 5.6.0, <= 5.6.14; >= 5.4.0, <= 5.4.13; >= 5.2.0, <= 5.2.15; >= 5.0.0, <= 5.0.14
  • Anyone running Fortinet FortiDDoS-F >= 6.4.0, <= 6.4.1; 6.3.0; >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.4
  • Anyone running Fortinet FortiVoice >= 6.4.0, <= 6.4.4; >= 6.0.0, <= 6.0.10
  • Anyone running Fortinet FortiProxy >= 7.0.0, <= 7.0.1; >= 2.0.0, <= 2.0.7; >= 1.2.0, <= 1.2.13; >= 1.1.0, <= 1.1.6; >= 1.0.0, <= 1.0.7
  • Anyone running Fortinet FortiRecorder >= 6.4.0, <= 6.4.2; >= 6.0.0, <= 6.0.10; >= 2.7.0, <= 2.7.7; >= 2.6.0, <= 2.6.3
  • Anyone running Fortinet FortiPortal >= 6.0.0, <= 6.0.10; >= 5.3.0, <= 5.3.8; >= 5.2.0, <= 5.2.6; >= 5.1.0, <= 5.1.2; >= 5.0.0, <= 5.0.3
  • Anyone running Fortinet FortiMail >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.6; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.12; >= 5.4.0, <= 5.4.12
  • Anyone running Fortinet FortiAnalyzer >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12

Vulnerability facts

Affected
Fortinet FortiOS >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 6.0.0, <= 6.0.13; >= 5.6.0, <= 5.6.14; >= 5.4.0, <= 5.4.13; >= 5.2.0, <= 5.2.15; >= 5.0.0, <= 5.0.14; Fortinet FortiDDoS-F >= 6.4.0, <= 6.4.1; 6.3.0; >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.4; Fortinet FortiVoice >= 6.4.0, <= 6.4.4; >= 6.0.0, <= 6.0.10; Fortinet FortiProxy >= 7.0.0, <= 7.0.1; >= 2.0.0, <= 2.0.7; >= 1.2.0, <= 1.2.13; >= 1.1.0, <= 1.1.6; >= 1.0.0, <= 1.0.7; Fortinet FortiRecorder >= 6.4.0, <= 6.4.2; >= 6.0.0, <= 6.0.10; >= 2.7.0, <= 2.7.7; >= 2.6.0, <= 2.6.3; Fortinet FortiPortal >= 6.0.0, <= 6.0.10; >= 5.3.0, <= 5.3.8; >= 5.2.0, <= 5.2.6; >= 5.1.0, <= 5.1.2; >= 5.0.0, <= 5.0.3; Fortinet FortiMail >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.6; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.12; >= 5.4.0, <= 5.4.12; Fortinet FortiAnalyzer >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12; Fortinet FortiNDR >= 1.5.0, <= 1.5.2; 1.4.0; >= 1.3.0, <= 1.3.1; 1.2.0; 1.1.0; Fortinet FortiDDoS >= 5.5.0, <= 5.5.1; >= 5.4.0, <= 5.4.3; >= 5.3.0, <= 5.3.2; 5.2.0; 5.1.0; 5.0.0; 4.7.0; 4.6.0; 4.5.0; >= 4.4.0, <= 4.4.2; Fortinet FortiSwitch >= 7.0.0, <= 7.0.3; >= 6.4.0, <= 6.4.9; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.7; Fortinet FortiADC >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.5; >= 6.0.0, <= 6.0.4; >= 5.4.0, <= 5.4.5; >= 5.3.0, <= 5.3.7; >= 5.2.0, <= 5.2.8; >= 5.1.0, <= 5.1.7; >= 5.0.0, <= 5.0.4; Fortinet FortiWeb >= 6.4.0, <= 6.4.1; >= 6.3.0, <= 6.3.16; >= 6.2.0, <= 6.2.8; >= 6.1.0, <= 6.1.4; >= 6.0.0, <= 6.0.8; >= 5.9.0, <= 5.9.2; >= 5.8.5, <= 5.8.7; >= 5.8.0, <= 5.8.3; >= 5.7.0, <= 5.7.3; >= 5.6.0, <= 5.6.2; …; Fortinet FortiManager >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12
Fixed in
No fix listed yet
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:COpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • E: P
  • RL: U
  • RC: C
EPSS
0.52% chance of exploitation in 30 days (percentile 37, 2026-11-26)
CWE
CWE-120
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Fortinet FortiOS>= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 6.0.0, <= 6.0.13; >= 5.6.0, <= 5.6.14; >= 5.4.0, <= 5.4.13; >= 5.2.0, <= 5.2.15; >= 5.0.0, <= 5.0.14—cvelist
Fortinet FortiDDoS-F>= 6.4.0, <= 6.4.1; 6.3.0; >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.4—cvelist
Fortinet FortiVoice>= 6.4.0, <= 6.4.4; >= 6.0.0, <= 6.0.10—cvelist
Fortinet FortiProxy>= 7.0.0, <= 7.0.1; >= 2.0.0, <= 2.0.7; >= 1.2.0, <= 1.2.13; >= 1.1.0, <= 1.1.6; >= 1.0.0, <= 1.0.7—cvelist
Fortinet FortiRecorder>= 6.4.0, <= 6.4.2; >= 6.0.0, <= 6.0.10; >= 2.7.0, <= 2.7.7; >= 2.6.0, <= 2.6.3—cvelist
Fortinet FortiPortal>= 6.0.0, <= 6.0.10; >= 5.3.0, <= 5.3.8; >= 5.2.0, <= 5.2.6; >= 5.1.0, <= 5.1.2; >= 5.0.0, <= 5.0.3—cvelist
Fortinet FortiMail>= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.6; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.12; >= 5.4.0, <= 5.4.12—cvelist
Fortinet FortiAnalyzer>= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12—cvelist
Fortinet FortiNDR>= 1.5.0, <= 1.5.2; 1.4.0; >= 1.3.0, <= 1.3.1; 1.2.0; 1.1.0—cvelist
Fortinet FortiDDoS>= 5.5.0, <= 5.5.1; >= 5.4.0, <= 5.4.3; >= 5.3.0, <= 5.3.2; 5.2.0; 5.1.0; 5.0.0; 4.7.0; 4.6.0; 4.5.0; >= 4.4.0, <= 4.4.2—cvelist
Fortinet FortiSwitch>= 7.0.0, <= 7.0.3; >= 6.4.0, <= 6.4.9; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.7—cvelist
Fortinet FortiADC>= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.5; >= 6.0.0, <= 6.0.4; >= 5.4.0, <= 5.4.5; >= 5.3.0, <= 5.3.7; >= 5.2.0, <= 5.2.8; >= 5.1.0, <= 5.1.7; >= 5.0.0, <= 5.0.4—cvelist
Fortinet FortiWeb>= 6.4.0, <= 6.4.1; >= 6.3.0, <= 6.3.16; >= 6.2.0, <= 6.2.8; >= 6.1.0, <= 6.1.4; >= 6.0.0, <= 6.0.8; >= 5.9.0, <= 5.9.2; >= 5.8.5, <= 5.8.7; >= 5.8.0, <= 5.8.3; >= 5.7.0, <= 5.7.3; >= 5.6.0, <= 5.6.2; …—cvelist
Fortinet FortiManager>= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-42757. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-42757.md
Affected: Fortinet FortiOS >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 6.0.0, <= 6.0.13; >= 5.6.0, <= 5.6.14; >= 5.4.0, <= 5.4.13; >= 5.2.0, <= 5.2.15; >= 5.0.0, <= 5.0.14; Fortinet FortiDDoS-F >= 6.4.0, <= 6.4.1; 6.3.0; >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.4; Fortinet FortiVoice >= 6.4.0,…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Fortinet FortiOS, Fortinet FortiDDoS-F, Fortinet FortiVoice, Fortinet FortiProxy, Fortinet FortiRecorder, Fortinet FortiPortal: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-42757 being exploited?

There is no confirmed exploitation: CVE-2021-42757 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-42757?

Medium: CVSS 6.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2021-42757?

Fortinet FortiOS >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 6.0.0, <= 6.0.13; >= 5.6.0, <= 5.6.14; >= 5.4.0, <= 5.4.13; >= 5.2.0, <= 5.2.15; >= 5.0.0, <= 5.0.14; Fortinet FortiDDoS-F >= 6.4.0, <= 6.4.1; 6.3.0; >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.4; Fortinet FortiVoice >= 6.4.0, <= 6.4.4; >= 6.0.0, <= 6.0.10; Fortinet FortiProxy >= 7.0.0, <= 7.0.1; >= 2.0.0, <= 2.0.7; >= 1.2.0, <= 1.2.13; >= 1.1.0, <= 1.1.6; >= 1.0.0, <= 1.0.7; Fortinet FortiRecorder >= 6.4.0, <= 6.4.2; >= 6.0.0, <= 6.0.10; >= 2.7.0, <= 2.7.7; >= 2.6.0, <= 2.6.3; Fortinet FortiPortal >= 6.0.0, <= 6.0.10; >= 5.3.0, <= 5.3.8; >= 5.2.0, <= 5.2.6; >= 5.1.0, <= 5.1.2; >= 5.0.0, <= 5.0.3; Fortinet FortiMail >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.6; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.12; >= 5.4.0, <= 5.4.12; Fortinet FortiAnalyzer >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12; Fortinet FortiNDR >= 1.5.0, <= 1.5.2; 1.4.0; >= 1.3.0, <= 1.3.1; 1.2.0; 1.1.0; Fortinet FortiDDoS >= 5.5.0, <= 5.5.1; >= 5.4.0, <= 5.4.3; >= 5.3.0, <= 5.3.2; 5.2.0; 5.1.0; 5.0.0; 4.7.0; 4.6.0; 4.5.0; >= 4.4.0, <= 4.4.2; Fortinet FortiSwitch >= 7.0.0, <= 7.0.3; >= 6.4.0, <= 6.4.9; >= 6.2.0, <= 6.2.7; >= 6.0.0, <= 6.0.7; Fortinet FortiADC >= 6.2.0, <= 6.2.2; >= 6.1.0, <= 6.1.5; >= 6.0.0, <= 6.0.4; >= 5.4.0, <= 5.4.5; >= 5.3.0, <= 5.3.7; >= 5.2.0, <= 5.2.8; >= 5.1.0, <= 5.1.7; >= 5.0.0, <= 5.0.4; Fortinet FortiWeb >= 6.4.0, <= 6.4.1; >= 6.3.0, <= 6.3.16; >= 6.2.0, <= 6.2.8; >= 6.1.0, <= 6.1.4; >= 6.0.0, <= 6.0.8; >= 5.9.0, <= 5.9.2; >= 5.8.5, <= 5.8.7; >= 5.8.0, <= 5.8.3; >= 5.7.0, <= 5.7.3; >= 5.6.0, <= 5.6.2; …; Fortinet FortiManager >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.13; >= 6.0.0, <= 6.0.12.

Is there a fix for CVE-2021-42757?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2021-42757?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors