Cyber Posture

CWE · MITRE source

CWE-242Use of Inherently Dangerous Function

Abstraction: Base · CVEs in our corpus: 10

The product calls a function that can never be guaranteed to work safely.

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.

Last updated: 15 May 2026 07:07 UTC

NIST 800-53 r5 controls that address this weakness (0)AI

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2017-10021572.09.80.01372019-01-10
CVE-2024-523242.09.80.00132024-12-06
CVE-2022-363101.88.80.00952022-08-16
CVE-2025-492151.88.80.00132025-06-17
CVE-2026-64771.88.80.00002026-05-14
CVE-2017-0904 UPD1.78.10.00862017-11-13
CVE-2021-425431.67.80.00172021-11-05
CVE-2025-13311.67.80.00042025-05-08
CVE-2025-19941.67.80.00022025-08-26
CVE-2021-406981.57.40.00122023-09-07