Skip to content

    Type a page, a command such as keryn scan, or a rule id.

    CWE

    View as Markdown

    CWE is MITRE’s catalog of software weaknesses. 143 CWE entries appear in rule metadata (rules 0.8.0). The matrix lists all of them, most covered first; the 30 with the most rules also get a section with their rules. A row without a section links to the catalog filtered to that CWE.

    This is an edge map, not a score. A count says how many rules look at a class of weakness and how sure they are, not how safe a system is; a class with few rules may simply need few, and no number here means a framework is satisfied. Confidence: P0 exploitable as written, P1 dangerous in context, P2 heuristic or posture. Edges are the relationships the rules inspect (reaches, calls, reads, writes, sends, grants, depends_on, trusts).

    EntryRulesP0P1P2Edges
    CWE-78 OS Command Injection136327331reaches 4 · calls 109 · sends 11 · grants 4 · depends_on 8
    CWE-200 Exposure of Sensitive Information to an Unauthorized Actor11987239reaches 19 · calls 10 · reads 12 · writes 5 · sends 38 · grants 34 · depends_on 1
    CWE-20 Improper Input Validation8422458reaches 30 · calls 22 · reads 9 · writes 12 · grants 3 · depends_on 2 · trusts 6
    CWE-94 Code Injection84145812reaches 4 · calls 70 · writes 2 · sends 1 · grants 2 · depends_on 4 · trusts 1
    CWE-829 Inclusion of Functionality from Untrusted Control Sphere80104426reaches 7 · calls 12 · writes 1 · sends 6 · grants 4 · depends_on 50
    CWE-22 Path Traversal7805919reaches 12 · calls 16 · reads 34 · writes 12 · grants 2 · depends_on 2
    CWE-79 Cross-site Scripting7024325calls 65 · writes 1 · sends 2 · grants 2
    CWE-639 Authorization Bypass Through User-Controlled Key6302439reaches 1 · calls 16 · writes 5 · grants 41
    CWE-862 Missing Authorization6113129reaches 1 · calls 9 · writes 1 · grants 50
    CWE-798 Use of Hard-coded Credentials5632132reaches 3 · calls 1 · reads 13 · sends 2 · grants 37
    CWE-918 Server-Side Request Forgery5614114reaches 41 · calls 9 · writes 1 · grants 5
    CWE-250 Execution with Unnecessary Privileges5554010calls 11 · writes 1 · grants 42 · depends_on 1
    CWE-306 Missing Authentication for Critical Function5222426reaches 14 · calls 3 · sends 1 · grants 30 · trusts 4
    CWE-502 Deserialization of Untrusted Data498338reaches 1 · calls 3 · reads 1 · grants 1 · depends_on 43
    CWE-494 Download of Code Without Integrity Check4753012calls 7 · sends 1 · grants 3 · depends_on 36
    CWE-89 SQL Injection4372214calls 43
    CWE-532 Insertion of Sensitive Information into Log File4012019reaches 1 · calls 1 · reads 8 · writes 1 · sends 25 · grants 4
    CWE-1427 Improper Neutralization of Input Used for LLM Prompting3702512reaches 19 · calls 5 · writes 6 · grants 3 · trusts 4
    CWE-770 Allocation of Resources Without Limits or Throttling3611322reaches 3 · calls 6 · writes 3 · sends 1 · grants 23
    CWE-345 Insufficient Verification of Data Authenticity3271510reaches 2 · calls 4 · writes 5 · grants 5 · depends_on 3 · trusts 13
    CWE-312 Cleartext Storage of Sensitive Information2941213reads 1 · writes 8 · sends 9 · grants 11
    CWE-73 External Control of File Name or Path2801810reaches 2 · calls 9 · reads 8 · writes 9
    CWE-506 Embedded Malicious Code2614102calls 9 · writes 5 · sends 11 · depends_on 1
    CWE-346 Origin Validation Error2421210reaches 13 · grants 11
    CWE-522 Insufficiently Protected Credentials237124sends 1 · grants 22
    CWE-77 Command Injection220148reaches 15 · calls 2 · grants 5
    CWE-116 Improper Encoding or Escaping of Output212145reaches 6 · calls 7 · sends 3 · grants 5
    CWE-915200416calls 6 · reads 2 · writes 9 · grants 3
    CWE-327180162sends 7 · depends_on 1 · trusts 9 · none 1
    CWE-668 Exposure of Resource to Wrong Sphere183105reaches 7 · calls 1 · grants 10
    CWE-269172132calls 5 · writes 1 · grants 11
    CWE-201161123reads 1 · writes 1 · sends 14
    CWE-40016196calls 4 · writes 3 · grants 9
    CWE-601160151reaches 9 · calls 6 · writes 1
    CWE-95155100calls 13 · depends_on 2
    CWE-319150123sends 12 · grants 1 · depends_on 2
    CWE-1007152103calls 9 · grants 5 · depends_on 1
    CWE-8814941calls 14
    CWE-693 Protection Mechanism Failure140122calls 2 · grants 10 · depends_on 1 · trusts 1
    CWE-132713256reaches 11 · grants 2
    CWE-451120102calls 4 · grants 8
    CWE-77812075calls 2 · reads 1 · grants 5 · none 4
    CWE-295110110sends 1 · grants 3 · depends_on 2 · trusts 5
    CWE-441110110calls 4 · writes 1 · grants 6
    CWE-732 Incorrect Permission Assignment for Critical Resource11191reaches 3 · calls 4 · grants 4
    CWE-118811038grants 1 · trusts 10
    CWE-26610064calls 1 · reads 1 · grants 7 · depends_on 1
    CWE-34710910calls 1 · depends_on 1 · trusts 8
    CWE-2878233calls 3 · grants 4 · depends_on 1
    CWE-12408080trusts 8
    CWE-1426 Improper Validation of Generative AI Output8053calls 3 · sends 1 · trusts 4
    CWE-747052reaches 6 · grants 1
    CWE-2097043reaches 2 · calls 2 · sends 3
    CWE-3527025calls 6 · grants 1
    CWE-4707151calls 5 · depends_on 2
    CWE-6367043calls 1 · grants 6
    CWE-9127520calls 1 · writes 6
    CWE-13367340calls 7
    CWE-2856051calls 1 · grants 5
    CWE-7546042reads 4 · trusts 2
    CWE-13576150calls 1 · depends_on 5
    CWE-155050reaches 1 · calls 4
    CWE-2805041grants 5
    CWE-3115104reaches 3 · calls 1 · writes 1
    CWE-3595041calls 1 · sends 4
    CWE-4275104calls 4 · depends_on 1
    CWE-749 Exposed Dangerous Method or Function5023reaches 4 · calls 1
    CWE-7555050calls 2 · grants 3
    CWE-9435041calls 5
    CWE-10215023grants 2 · trusts 3
    CWE-10395140trusts 5
    CWE-13335032calls 5
    CWE-1204040grants 4
    CWE-1794040trusts 4
    CWE-1804040trusts 4
    CWE-6114031reaches 3 · calls 1
    CWE-807 Reliance on Untrusted Inputs in a Security Decision4031calls 2 · grants 2
    CWE-11044031depends_on 4
    CWE-1220 Insufficient Granularity of Access Control4040grants 4
    CWE-2593201grants 3
    CWE-2813003grants 3
    CWE-2903021calls 3
    CWE-3003030sends 3
    CWE-3203003reaches 3
    CWE-3623003writes 3
    CWE-3673003writes 3
    CWE-390 Detection of Error Condition Without Action3021calls 3
    CWE-4543030calls 3
    CWE-6253021calls 3
    CWE-7763012calls 2 · depends_on 1
    CWE-863 Incorrect Authorization3021grants 3
    CWE-9423030grants 3
    CWE-2032002sends 2
    CWE-284 Improper Access Control2020calls 1 · grants 1
    CWE-2942002trusts 2
    CWE-3262020calls 1 · sends 1
    CWE-3282011calls 1 · sends 1
    CWE-3382011calls 1 · sends 1
    CWE-3772011writes 1 · grants 1
    CWE-3842020reaches 2
    CWE-5262020grants 2
    CWE-5982020reaches 2
    CWE-653 Improper Isolation or Compartmentalization2011grants 2
    CWE-7572020sends 2
    CWE-7992002trusts 2
    CWE-8342020grants 2
    CWE-8402200calls 2
    CWE-10592002calls 2
    CWE-13212011calls 1 · writes 1
    CWE-1171001reads 1
    CWE-1251010calls 1
    CWE-1341100calls 1
    CWE-1551010calls 1
    CWE-1851010grants 1
    CWE-2081001sends 1
    CWE-2421010grants 1
    CWE-3221010depends_on 1
    CWE-3301001calls 1
    CWE-3791001grants 1
    CWE-3911010none 1
    CWE-4091001writes 1
    CWE-4591100calls 1
    CWE-4721001calls 1
    CWE-4891010grants 1
    CWE-4971001reaches 1
    CWE-5521010calls 1
    CWE-6021001grants 1
    CWE-6101010reaches 1
    CWE-617 Reachable Assertion1001calls 1
    CWE-6651010writes 1
    CWE-696 Incorrect Behavior Order1001grants 1
    CWE-7061001depends_on 1
    CWE-7801010calls 1
    CWE-7871010calls 1
    CWE-8351001grants 1
    CWE-8381010reaches 1
    CWE-9081010writes 1
    CWE-9161010sends 1
    CWE-10041010calls 1
    CWE-10881010grants 1
    CWE-12871010calls 1
    CWE-12951010grants 1
    CWE-13951010depends_on 1

    136 rules · confidence P0 32, P1 73, P2 31 · severity error 85, warning 42, info 9

    Edges inspected: reaches 4 · calls 109 · sends 11 · grants 4 · depends_on 8

    30 of 136 rules, surest first

    All 136 rules in the catalog filter

    CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

    Section titled “CWE-200 Exposure of Sensitive Information to an Unauthorized Actor”

    119 rules · confidence P0 8, P1 72, P2 39 · severity error 22, warning 81, info 16

    Edges inspected: reaches 19 · calls 10 · reads 12 · writes 5 · sends 38 · grants 34 · depends_on 1

    30 of 119 rules, surest first

    All 119 rules in the catalog filter

    84 rules · confidence P0 2, P1 24, P2 58 · severity error 8, warning 67, info 9

    Edges inspected: reaches 30 · calls 22 · reads 9 · writes 12 · grants 3 · depends_on 2 · trusts 6

    30 of 84 rules, surest first

    All 84 rules in the catalog filter

    84 rules · confidence P0 14, P1 58, P2 12 · severity error 61, warning 23, info 0

    Edges inspected: reaches 4 · calls 70 · writes 2 · sends 1 · grants 2 · depends_on 4 · trusts 1

    30 of 84 rules, surest first

    All 84 rules in the catalog filter

    CWE-829 Inclusion of Functionality from Untrusted Control Sphere

    Section titled “CWE-829 Inclusion of Functionality from Untrusted Control Sphere”

    80 rules · confidence P0 10, P1 44, P2 26 · severity error 25, warning 50, info 5

    Edges inspected: reaches 7 · calls 12 · writes 1 · sends 6 · grants 4 · depends_on 50

    30 of 80 rules, surest first

    All 80 rules in the catalog filter

    78 rules · confidence P0 0, P1 59, P2 19 · severity error 41, warning 34, info 3

    Edges inspected: reaches 12 · calls 16 · reads 34 · writes 12 · grants 2 · depends_on 2

    30 of 78 rules, surest first

    All 78 rules in the catalog filter

    70 rules · confidence P0 2, P1 43, P2 25 · severity error 7, warning 61, info 2

    Edges inspected: calls 65 · writes 1 · sends 2 · grants 2

    30 of 70 rules, surest first

    All 70 rules in the catalog filter

    CWE-639 Authorization Bypass Through User-Controlled Key

    Section titled “CWE-639 Authorization Bypass Through User-Controlled Key”

    63 rules · confidence P0 0, P1 24, P2 39 · severity error 7, warning 46, info 10

    Edges inspected: reaches 1 · calls 16 · writes 5 · grants 41

    30 of 63 rules, surest first

    All 63 rules in the catalog filter

    61 rules · confidence P0 1, P1 31, P2 29 · severity error 9, warning 42, info 10

    Edges inspected: reaches 1 · calls 9 · writes 1 · grants 50

    30 of 61 rules, surest first

    All 61 rules in the catalog filter

    56 rules · confidence P0 3, P1 21, P2 32 · severity error 18, warning 37, info 1

    Edges inspected: reaches 3 · calls 1 · reads 13 · sends 2 · grants 37

    30 of 56 rules, surest first

    All 56 rules in the catalog filter

    56 rules · confidence P0 1, P1 41, P2 14 · severity error 26, warning 30, info 0

    Edges inspected: reaches 41 · calls 9 · writes 1 · grants 5

    30 of 56 rules, surest first

    All 56 rules in the catalog filter

    CWE-250 Execution with Unnecessary Privileges

    Section titled “CWE-250 Execution with Unnecessary Privileges”

    55 rules · confidence P0 5, P1 40, P2 10 · severity error 23, warning 29, info 3

    Edges inspected: calls 11 · writes 1 · grants 42 · depends_on 1

    30 of 55 rules, surest first

    All 55 rules in the catalog filter

    CWE-306 Missing Authentication for Critical Function

    Section titled “CWE-306 Missing Authentication for Critical Function”

    52 rules · confidence P0 2, P1 24, P2 26 · severity error 1, warning 41, info 10

    Edges inspected: reaches 14 · calls 3 · sends 1 · grants 30 · trusts 4

    30 of 52 rules, surest first

    All 52 rules in the catalog filter

    49 rules · confidence P0 8, P1 33, P2 8 · severity error 28, warning 19, info 2

    Edges inspected: reaches 1 · calls 3 · reads 1 · grants 1 · depends_on 43

    30 of 49 rules, surest first

    All 49 rules in the catalog filter

    CWE-494 Download of Code Without Integrity Check

    Section titled “CWE-494 Download of Code Without Integrity Check”

    47 rules · confidence P0 5, P1 30, P2 12 · severity error 18, warning 26, info 3

    Edges inspected: calls 7 · sends 1 · grants 3 · depends_on 36

    30 of 47 rules, surest first

    All 47 rules in the catalog filter

    43 rules · confidence P0 7, P1 22, P2 14 · severity error 21, warning 22, info 0

    Edges inspected: calls 43

    30 of 43 rules, surest first

    All 43 rules in the catalog filter

    CWE-532 Insertion of Sensitive Information into Log File

    Section titled “CWE-532 Insertion of Sensitive Information into Log File”

    40 rules · confidence P0 1, P1 20, P2 19 · severity error 6, warning 27, info 7

    Edges inspected: reaches 1 · calls 1 · reads 8 · writes 1 · sends 25 · grants 4

    30 of 40 rules, surest first

    All 40 rules in the catalog filter

    CWE-1427 Improper Neutralization of Input Used for LLM Prompting

    Section titled “CWE-1427 Improper Neutralization of Input Used for LLM Prompting”

    37 rules · confidence P0 0, P1 25, P2 12 · severity error 9, warning 28, info 0

    Edges inspected: reaches 19 · calls 5 · writes 6 · grants 3 · trusts 4

    30 of 37 rules, surest first

    All 37 rules in the catalog filter

    CWE-770 Allocation of Resources Without Limits or Throttling

    Section titled “CWE-770 Allocation of Resources Without Limits or Throttling”

    36 rules · confidence P0 1, P1 13, P2 22 · severity error 5, warning 20, info 11

    Edges inspected: reaches 3 · calls 6 · writes 3 · sends 1 · grants 23

    30 of 36 rules, surest first

    All 36 rules in the catalog filter

    CWE-345 Insufficient Verification of Data Authenticity

    Section titled “CWE-345 Insufficient Verification of Data Authenticity”

    32 rules · confidence P0 7, P1 15, P2 10 · severity error 21, warning 10, info 1

    Edges inspected: reaches 2 · calls 4 · writes 5 · grants 5 · depends_on 3 · trusts 13

    30 of 32 rules, surest first

    All 32 rules in the catalog filter

    CWE-312 Cleartext Storage of Sensitive Information

    Section titled “CWE-312 Cleartext Storage of Sensitive Information”

    29 rules · confidence P0 4, P1 12, P2 13 · severity error 2, warning 15, info 12

    Edges inspected: reads 1 · writes 8 · sends 9 · grants 11

    29 rules

    These rules in the catalog filter

    CWE-73 External Control of File Name or Path

    Section titled “CWE-73 External Control of File Name or Path”

    28 rules · confidence P0 0, P1 18, P2 10 · severity error 12, warning 14, info 2

    Edges inspected: reaches 2 · calls 9 · reads 8 · writes 9

    28 rules

    These rules in the catalog filter

    26 rules · confidence P0 14, P1 10, P2 2 · severity error 23, warning 3, info 0

    Edges inspected: calls 9 · writes 5 · sends 11 · depends_on 1

    26 rules

    These rules in the catalog filter

    24 rules · confidence P0 2, P1 12, P2 10 · severity error 8, warning 15, info 1

    Edges inspected: reaches 13 · grants 11

    24 rules

    These rules in the catalog filter

    CWE-522 Insufficiently Protected Credentials

    Section titled “CWE-522 Insufficiently Protected Credentials”

    23 rules · confidence P0 7, P1 12, P2 4 · severity error 12, warning 11, info 0

    Edges inspected: sends 1 · grants 22

    23 rules

    These rules in the catalog filter

    22 rules · confidence P0 0, P1 14, P2 8 · severity error 1, warning 21, info 0

    Edges inspected: reaches 15 · calls 2 · grants 5

    22 rules

    These rules in the catalog filter

    CWE-116 Improper Encoding or Escaping of Output

    Section titled “CWE-116 Improper Encoding or Escaping of Output”

    21 rules · confidence P0 2, P1 14, P2 5 · severity error 11, warning 6, info 4

    Edges inspected: reaches 6 · calls 7 · sends 3 · grants 5

    21 rules

    These rules in the catalog filter

    20 rules · confidence P0 0, P1 4, P2 16 · severity error 0, warning 19, info 1

    Edges inspected: calls 6 · reads 2 · writes 9 · grants 3

    20 rules

    These rules in the catalog filter

    18 rules · confidence P0 0, P1 16, P2 2 · severity error 9, warning 7, info 2

    Edges inspected: sends 7 · depends_on 1 · trusts 9 · none 1

    18 rules

    These rules in the catalog filter

    CWE-668 Exposure of Resource to Wrong Sphere

    Section titled “CWE-668 Exposure of Resource to Wrong Sphere”

    18 rules · confidence P0 3, P1 10, P2 5 · severity error 8, warning 10, info 0

    Edges inspected: reaches 7 · calls 1 · grants 10

    18 rules

    These rules in the catalog filter