CVE-2021-42757

Local code execution via TFTP argument overflow

Published Dec 8, 2021 · Updated Oct 16, 2025

Stack-based buffer overflow in the TFTP client library in FortiOS and affected Fortinet appliances allows local users to execute code. Fortinet has not disclosed the affected function or the exact operation that fails to bound crafted command-line arguments. Administrative CLI access is required; successful exploitation executes attacker-controlled code in the appliance context.

CVSS severity6.7
Medium
EPSS probability0.48%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Stack-based buffer overflow in the TFTP client library in FortiOS and affected Fortinet appliances allows local users to execute code. Fortinet has not disclosed the affected function or the exact operation that fails to bound crafted command-line arguments. Administrative CLI access is required; successful exploitation executes attacker-controlled code in the appliance context.

The record

CVE
CVE-2021-42757
Published
Dec 8, 2021
Updated
Oct 16, 2025
Vendor
Fortinet
Product
FortiManager
Classifications
CWE-787, CWE-121
Attack vector
local
Privileges
admin

Timeline

How it unfolded

  1. Dec 8, 2021CVE publishedPublication date reported by the CVE source.
  2. Oct 16, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=6.0.0 <=6.0.12
  2. Affected versionversion=6.2.0 <=6.2.13
  3. Affected versionversion=6.4.0 <=6.4.7
  4. Affected versionversion=7.0.0 <=7.0.2

What conditions does exploitation require?

Attack vectorlocal
Required privilegesadmin

What is affected?

Fortinet · FortiManagerversion=6.0.0 <=6.0.12; version=6.2.0 <=6.2.13; version=6.4.0 <=6.4.7; version=7.0.0 <=7.0.2
Fortinet · FortiSwitchversion=6.0.0 <=6.0.7; version=6.2.0 <=6.2.7; version=6.4.0 <=6.4.9; version=7.0.0 <=7.0.3
Fortinet · FortiWebversion=5.0.0 <=5.0.6; version=5.1.0 <=5.1.4; version=5.2.0 <=5.2.4; version=5.3.0 <=5.3.9; version=5.4.0 <=5.4.1; version=5.5.0 <=5.5.7; version=5.6.0 <=5.6.2; version=5.7.0 <=5.7.3; version=5.8.0 <=5.8.3; version=5.8.5 <=5.8.7; version=5.9.0 <=5.9.2; version=6.0.0 <=6.0.8; version=6.1.0 <=6.1.4; version=6.2.0 <=6.2.8; version=6.3.0 <=6.3.16; version=6.4.0 <=6.4.1
Fortinet · FortiDDoS-Fversion=6.1.0 <=6.1.4; version=6.2.0 <=6.2.2; version=6.3.0; version=6.4.0 <=6.4.1
Fortinet · FortiPortalversion=5.0.0 <=5.0.3; version=5.1.0 <=5.1.2; version=5.2.0 <=5.2.6; version=5.3.0 <=5.3.8; version=6.0.0 <=6.0.10
Fortinet · FortiNDRversion=1.1.0; version=1.2.0; version=1.3.0 <=1.3.1; version=1.4.0; version=1.5.0 <=1.5.2
Fortinet · FortiDDoSversion=4.4.0 <=4.4.2; version=4.5.0; version=4.6.0; version=4.7.0; version=5.0.0; version=5.1.0; version=5.2.0; version=5.3.0 <=5.3.2; version=5.4.0 <=5.4.3; version=5.5.0 <=5.5.1
Fortinet · FortiOSversion=5.0.0 <=5.0.14; version=5.2.0 <=5.2.15; version=5.4.0 <=5.4.13; version=5.6.0 <=5.6.14; version=6.0.0 <=6.0.13; version=6.2.0 <=6.2.9; version=6.4.0 <=6.4.7; version=7.0.0 <=7.0.2
Fortinet · FortiAnalyzerversion=6.0.0 <=6.0.12; version=6.2.0 <=6.2.13; version=6.4.0 <=6.4.7; version=7.0.0 <=7.0.2
Fortinet · FortiVoiceversion=6.0.0 <=6.0.10; version=6.4.0 <=6.4.4
Fortinet · FortiRecorderversion=2.6.0 <=2.6.3; version=2.7.0 <=2.7.7; version=6.0.0 <=6.0.10; version=6.4.0 <=6.4.2
Fortinet · FortiADCversion=5.0.0 <=5.0.4; version=5.1.0 <=5.1.7; version=5.2.0 <=5.2.8; version=5.3.0 <=5.3.7; version=5.4.0 <=5.4.5; version=6.0.0 <=6.0.4; version=6.1.0 <=6.1.5; version=6.2.0 <=6.2.2
Fortinet · FortiProxyversion=1.0.0 <=1.0.7; version=1.1.0 <=1.1.6; version=1.2.0 <=1.2.13; version=2.0.0 <=2.0.7; version=7.0.0 <=7.0.1
Fortinet · FortiMailversion=5.4.0 <=5.4.12; version=6.0.0 <=6.0.12; version=6.2.0 <=6.2.7; version=6.4.0 <=6.4.6; version=7.0.0 <=7.0.2

Published CVSS scores

6.3FortinetCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C
6.7NIST NVDCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.6NIST NVDAV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesadmin
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-787Out-of-bounds Write
CWE-121Stack-based Buffer Overflow

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo