CWE-111Direct Use of Unsafe JNI

PUBLISHEDweakness record
released 2006-07-19 · last modified 2024-02-29

Metadata

CWE ID:
CWE-111
摘要:
Variant
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2024-02-29

名称

Direct Use of Unsafe JNI

描述

When a Java application uses the Java Native Interface (JNI) to call code written in another programming language, it can expose the application to weaknesses in that code, even if those weaknesses cannot occur in Java.

Many safety features that programmers may take for granted do not apply for native code, so you must carefully review all such code for potential problems. The languages used to implement native code may be more susceptible to buffer overflows and other attacks. Native code is unprotected by the security features enforced by the runtime environment, such as strong typing and array bounds checking.

常见后果

范围:
Access Control
影响:
Bypass Protection Mechanism

相关 CWE