CVE-2021-42757: FortiOS - Buffer Overflow
- Cve: CVE-2021-42757
- Name: FortiOS - Buffer Overflow
- 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.
- Impact: Authenticated local attackers can execute arbitrary code, potentially leading to full system compromise.
- Remediation: Update to FortiOS 6.4.7 or later, and 7.0.3 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker needs to be authenticated locally
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.7
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00516
- Epss percentile: 0.44511
- Assignee: [email protected]
- Published at: 2021-12-08T11:15:11Z
- Age in days: 1812
- Modified at: 2026-06-17T04:10:05Z
- References total: 1
- Products total: 13
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42757
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input |
| CWE-787 | Out-of-bounds Write |
References
| Url | Source | Tags |
|---|---|---|
| https://fortiguard.com/advisory/FG-IR-21-173 | nvd | Vendor Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| fortinet:fortios | >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.7; >= 6.2.0, <= 6.2.9; >= 5.0.0, <= 6.0.13 | /v1/products/fortinet/fortios |
| fortinet:fortimanager | >= 7.0.0, <= 7.0.2; >= 6.0.0, <= 6.4.7 | /v1/products/fortinet/fortimanager |
| fortinet:fortianalyzer | >= 7.0.0, <= 7.0.2; >= 6.0.0, <= 6.4.7 | /v1/products/fortinet/fortianalyzer |
| fortinet:fortiproxy | = 7.0.1; = 7.0.0; >= 1.0.0, <= 2.0.7 | /v1/products/fortinet/fortiproxy |
| fortinet:fortiweb | = 6.4.1; = 6.4.0; >= 5.0.0, <= 6.3.16 | /v1/products/fortinet/fortiweb |
| fortinet:fortimail | >= 7.0.0, <= 7.0.2; >= 6.4.0, <= 6.4.6; >= 5.4.0, <= 6.2.7 | /v1/products/fortinet/fortimail |
| fortinet:fortiportal | >= 5.0.0, <= 6.0.10 | /v1/products/fortinet/fortiportal |
| fortinet:fortiadc | >= 6.2.0, <= 6.2.2; >= 5.0.0, <= 6.1.5 | /v1/products/fortinet/fortiadc |
| fortinet:fortivoice | >= 6.4.0, <= 6.4.4; >= 6.0.0, <= 6.0.10 | /v1/products/fortinet/fortivoice |
| fortinet:fortiswitch | >= 7.0.0, <= 7.0.3; >= 6.0.0, <= 6.4.9 | /v1/products/fortinet/fortiswitch |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 368277
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports