CVE-2021-42757
Fortinet FortiOS: Buffer Copy without Checking Size of Input
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.4% of all scored CVEs. Scores of 2 Dec 2026.
Weakness
- CWE-120 Buffer Copy without Checking Size of Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| FortiOS |
affected from 7.0.0 up to and including 7.0.2 affected from 6.4.0 up to and including 6.4.7 affected from 6.2.0 up to and including 6.2.9 affected from 6.0.0 up to and including 6.0.13 affected from 5.6.0 up to and including 5.6.14 affected from 5.4.0 up to and including 5.4.13 affected from 5.2.0 up to and including 5.2.15 affected from 5.0.0 up to and including 5.0.14
Other versions: unaffected
|
| FortiDDoS-F |
affected from 6.4.0 up to and including 6.4.1 affected 6.3.0 affected from 6.2.0 up to and including 6.2.2 affected from 6.1.0 up to and including 6.1.4
Other versions: unaffected
|
| FortiVoice |
affected from 6.4.0 up to and including 6.4.4 affected from 6.0.0 up to and including 6.0.10
Other versions: unaffected
|
| FortiProxy |
affected from 7.0.0 up to and including 7.0.1 affected from 2.0.0 up to and including 2.0.7 affected from 1.2.0 up to and including 1.2.13 affected from 1.1.0 up to and including 1.1.6 affected from 1.0.0 up to and including 1.0.7
Other versions: unaffected
|
| FortiRecorder |
affected from 6.4.0 up to and including 6.4.2 affected from 6.0.0 up to and including 6.0.10 affected from 2.7.0 up to and including 2.7.7 affected from 2.6.0 up to and including 2.6.3
Other versions: unaffected
|
| FortiPortal |
affected from 6.0.0 up to and including 6.0.10 affected from 5.3.0 up to and including 5.3.8 affected from 5.2.0 up to and including 5.2.6 affected from 5.1.0 up to and including 5.1.2 affected from 5.0.0 up to and including 5.0.3
Other versions: unaffected
|
| FortiMail |
affected from 7.0.0 up to and including 7.0.2 affected from 6.4.0 up to and including 6.4.6 affected from 6.2.0 up to and including 6.2.7 affected from 6.0.0 up to and including 6.0.12 affected from 5.4.0 up to and including 5.4.12
Other versions: unaffected
|
| FortiAnalyzer |
affected from 7.0.0 up to and including 7.0.2 affected from 6.4.0 up to and including 6.4.7 affected from 6.2.0 up to and including 6.2.13 affected from 6.0.0 up to and including 6.0.12
Other versions: unaffected
|
| FortiNDR |
affected from 1.5.0 up to and including 1.5.2 affected 1.4.0 affected from 1.3.0 up to and including 1.3.1 affected 1.2.0 affected 1.1.0
Other versions: unaffected
|
| FortiDDoS |
affected from 5.5.0 up to and including 5.5.1 affected from 5.4.0 up to and including 5.4.3 affected from 5.3.0 up to and including 5.3.2 affected 5.2.0 affected 5.1.0 affected 5.0.0 affected 4.7.0 affected 4.6.0 affected 4.5.0 affected from 4.4.0 up to and including 4.4.2
Other versions: unaffected
|
| FortiSwitch |
affected from 7.0.0 up to and including 7.0.3 affected from 6.4.0 up to and including 6.4.9 affected from 6.2.0 up to and including 6.2.7 affected from 6.0.0 up to and including 6.0.7
Other versions: unaffected
|
| FortiADC |
affected from 6.2.0 up to and including 6.2.2 affected from 6.1.0 up to and including 6.1.5 affected from 6.0.0 up to and including 6.0.4 affected from 5.4.0 up to and including 5.4.5 affected from 5.3.0 up to and including 5.3.7 affected from 5.2.0 up to and including 5.2.8 affected from 5.1.0 up to and including 5.1.7 affected from 5.0.0 up to and including 5.0.4
Other versions: unaffected
|
| FortiWeb |
affected from 6.4.0 up to and including 6.4.1 affected from 6.3.0 up to and including 6.3.16 affected from 6.2.0 up to and including 6.2.8 affected from 6.1.0 up to and including 6.1.4 affected from 6.0.0 up to and including 6.0.8 affected from 5.9.0 up to and including 5.9.2 affected from 5.8.5 up to and including 5.8.7 affected from 5.8.0 up to and including 5.8.3 affected from 5.7.0 up to and including 5.7.3 affected from 5.6.0 up to and including 5.6.2 affected from 5.5.0 up to and including 5.5.7 affected from 5.4.0 up to and including 5.4.1 affected from 5.3.0 up to and including 5.3.9 affected from 5.2.0 up to and including 5.2.4 affected from 5.1.0 up to and including 5.1.4 affected from 5.0.0 up to and including 5.0.6
Other versions: unaffected
|
| FortiManager |
affected from 7.0.0 up to and including 7.0.2 affected from 6.4.0 up to and including 6.4.7 affected from 6.2.0 up to and including 6.2.13 affected from 6.0.0 up to and including 6.0.12
Other versions: unaffected
|
Is my server affected?
This CVE is in FortiOS of Fortinet, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.
Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.
References
Advisories
- https://fortiguard.com/advisory/FG-IR-21-173 fortiguard.com
Source: the record CVE-2021-42757 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse