# CVE-2021-42757: 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…

- Severity: Medium 6.3 (CVSS:3.1, scored by fortinet) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2021-12-08T11:01:11.000Z
- Modified: 2026-06-17T04:10:05.000Z
- Weaknesses: CWE-120, CWE-787
- Assigned by: fortinet

## 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.

(As written by CVE List.)

## Affected

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

## Every score

- fortinet: CVSS:3.1 6.3 Medium `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`
- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://fortiguard.com/advisory/FG-IR-21-173> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-42757](https://www.cve.org/CVERecord?id=CVE-2021-42757), CVE Terms of Use, modified 2025-10-16
- NVD: [CVE-2021-42757](https://nvd.nist.gov/vuln/detail/CVE-2021-42757), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42757 · Whole record: https://cve.day/CVE-2021-42757.json · Rebuilt by cve.day 2026-11-25T22:58:05.872Z
