Description
The product calls a function that can never be guaranteed to work safely.
Extended Description
Certain functions behave in dangerous ways regardless of how they are used. Functions in this category were often implemented without taking security concerns into account. The gets() function is unsafe because it does not perform bounds checking on the size of its input. An attacker can easily send arbitrarily-sized input to gets() and overflow the destination buffer. Similarly, the >> operator is unsafe to use when reading into a statically-allocated character array because it does not perform bounds checking on the size of its input. An attacker can easily send arbitrarily-sized input to the >> operator and overflow the destination buffer.
CVE vulnerabilities with CWE-242 (10)
9.8
CVSS
CRITICAL
CVE-2017-1002157
pub. 2019-01-10
9.2
CVSS
CRITICAL
CVE-2024-52324
pub. 2024-12-06
8.8
CVSS
HIGH
CVE-2026-6477
pub. 2026-05-14
8.8
CVSS
HIGH
CVE-2025-49215
pub. 2025-06-17
8.8
CVSS
HIGH
CVE-2022-36310
pub. 2022-08-16
8.1
CVSS
HIGH
CVE-2017-0904
pub. 2017-11-13
7.8
CVSS
HIGH
CVE-2025-1994
pub. 2025-08-26
7.8
CVSS
HIGH
CVE-2025-1331
pub. 2025-05-08
7.8
CVSS
HIGH
CVE-2021-42543
pub. 2021-11-05
7.4
CVSS
HIGH
CVE-2021-40698
pub. 2023-09-07