Cyber Resilience

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: 04 July 2026 00:28 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: mostly · 5 mapping(s) from 1 framework(s): ATT&CK 5 (mostly)

See the full cumulative-coverage rollup →

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

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

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.

Direction: other covers this; this covers other (F/M/P = full / mostly / partial).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2017-10021577.09.80.02802019-01-10
CVE-2024-523247.09.80.00692024-12-06
CVE-2017-09045.58.10.02422017-11-13
CVE-2021-425435.57.80.00772021-11-05
CVE-2022-363105.58.80.01332022-08-16
CVE-2021-406985.57.40.00542023-09-07
CVE-2025-1331 UPD5.57.80.00232025-05-08
CVE-2025-49215 UPD5.58.80.00342025-06-17
CVE-2025-1994 UPD5.57.80.00152025-08-26
CVE-2026-6477 UPD5.58.80.00462026-05-14