Katalog CWE

CWE-913 · Słabość

Improper Control of Dynamically-Managed Code Resources

Abstrakcja
Klasa
Status
Niekompletny
Dodano
26 stycznia 2013
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

The product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements.

Many languages offer powerful features that allow the programmer to dynamically create or modify existing code, or resources used by code such as variables and objects. While these features can offer significant flexibility and reduce development time, they can be extremely dangerous if attackers can directly influence these code resources in unexpected ways.

Skutki

  • Integrity

    Execute Unauthorized Code or Commands

  • Other, Integrity

    Varies by Context; Alter Execution Logic

Zapobieganie

  • Implementation · Input Validation

    For any externally-influenced input, check the input against an allowlist of acceptable values.

  • Implementation, Architecture and Design · Refactoring

    Refactor the code so that it does not need to be dynamically managed.

Przykłady podatności

Słabość nadrzędna

Słabości podrzędne

Kiedy powstaje

Dotyczy

Not Language-Specific, Interpreted

Wpis z katalogu CWE 4.20.