-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.xsd
More file actions
1333 lines (1333 loc) · 93.4 KB
/
Copy pathschema.xsd
File metadata and controls
1333 lines (1333 loc) · 93.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://cwe.mitre.org/cwe-7" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cwe="http://cwe.mitre.org/cwe-7" xmlns:xhtml="http://www.w3.org/1999/xhtml" elementFormDefault="qualified" attributeFormDefault="unqualified" version="7.2">
<xs:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd"/>
<xs:annotation>
<xs:documentation>The CWE Schema is maintained by The MITRE Corporation and developed in partnership with the public CWE Community. For more information, including how to get involved in the project and how to submit change requests, please visit the CWE website at https://cwe.mitre.org.</xs:documentation>
<xs:appinfo>
<schema>Core Definition</schema>
<version>7.2</version>
<date>July 16, 2024</date>
<terms_of_use>Copyright (c) 2006-2024, The MITRE Corporation. All rights reserved. The contents of this file are subject to the terms of the CWE License located at https://cwe.mitre.org/about/termsofuse.html. See the CWE License for the specific language governing permissions and limitations for use of this schema. When distributing copies of the CWE Schema, this license header must be included.</terms_of_use>
</xs:appinfo>
</xs:annotation>
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<xs:element name="Weakness_Catalog">
<xs:annotation>
<xs:documentation>The Weakness_Catalog root element is used to describe a collection of security issues known as weaknesses (e.g., flaws, faults, bugs). Each catalog can be organized by optional Views and Categories. The catalog also contains a list of all External_References that may be shared throughout the individual weaknesses. The required Name and Version attributes are used to uniquely identify the catalog. The required Date attribute identifies the date when this catalog was created or last updated.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Weaknesses" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Weakness" type="cwe:WeaknessType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Categories" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Category" type="cwe:CategoryType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Views" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="View" type="cwe:ViewType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="External_References" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="External_Reference" type="cwe:ExternalReferenceType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Version" type="xs:string" use="required"/>
<xs:attribute name="Date" type="xs:date" use="required"/>
</xs:complexType>
<xs:unique name="uniqueWeaknessID">
<xs:selector xpath="./cwe:Weaknesses/cwe:Weakness"/>
<xs:field xpath="@ID"/>
</xs:unique>
<xs:unique name="uniqueWeaknessName">
<xs:selector xpath="./cwe:*/cwe:*"/>
<xs:field xpath="@Name"/>
</xs:unique>
<xs:unique name="uniqueCategoryID">
<xs:selector xpath="./cwe:Categories/cwe:Category"/>
<xs:field xpath="@ID"/>
</xs:unique>
<xs:unique name="uniqueViewID">
<xs:selector xpath="./cwe:Views/cwe:View"/>
<xs:field xpath="@ID"/>
</xs:unique>
<xs:unique name="uniqueReferenceID">
<xs:selector xpath="./cwe:External_References/cwe:External_Reference"/>
<xs:field xpath="@Reference_ID"/>
</xs:unique>
</xs:element>
<!-- =============================================================================== -->
<!-- ================================= WEAKNESS ================================== -->
<!-- =============================================================================== -->
<xs:complexType name="WeaknessType">
<xs:annotation>
<xs:documentation>A weakness is a mistake or condition that, if left unaddressed, could under the proper conditions contribute to a cyber-enabled capability being vulnerable to attack, allowing an adversary to make items function in unintended ways. This complexType is used to describe a specific type of weakness and provide a variety of information related to it.</xs:documentation>
<xs:documentation>The required Description should be short and limited to the key points that define this weakness. The optional Extended_Description element provides a place for additional details important to this weakness, but that are not necessary to convey the fundamental concept behind the weakness. A number of other optional elements are available, each of which is described in more detail within the corresponding complexType that it references.</xs:documentation>
<xs:documentation>The required ID attribute provides a unique identifier for the entry. It is considered static for the lifetime of the entry. If this entry becomes deprecated, the identifier will not be reused. The required Name attribute is a string that identifies the entry. The name should focus on the weakness being described and should avoid mentioning the attack that exploits the weakness or the consequences of exploiting the weakness. All words in the entry name should be capitalized except for articles and prepositions, unless they begin or end the name. Subsequent words in a hyphenated chain are also not capitalized. The required Abstraction attribute defines the abstraction level for this weakness. The required Structure attribute defines the structural nature of the weakness. The required Status attribute defines the maturity of the information for this weakness.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Description" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Extended_Description" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Related_Weaknesses" type="cwe:RelatedWeaknessesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Weakness_Ordinalities" type="cwe:WeaknessOrdinalitiesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Applicable_Platforms" type="cwe:ApplicablePlatformsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Background_Details" type="cwe:BackgroundDetailsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Alternate_Terms" type="cwe:AlternateTermsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modes_Of_Introduction" type="cwe:ModesOfIntroductionType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Exploitation_Factors" type="cwe:ExploitationFactorsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Likelihood_Of_Exploit" type="cwe:LikelihoodEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Common_Consequences" type="cwe:CommonConsequencesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Detection_Methods" type="cwe:DetectionMethodsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Potential_Mitigations" type="cwe:PotentialMitigationsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Demonstrative_Examples" type="cwe:DemonstrativeExamplesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Observed_Examples" type="cwe:ObservedExampleType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Functional_Areas" type="cwe:FunctionalAreasType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Affected_Resources" type="cwe:AffectedResourcesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Taxonomy_Mappings" type="cwe:TaxonomyMappingsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Related_Attack_Patterns" type="cwe:RelatedAttackPatternsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="References" type="cwe:ReferencesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Mapping_Notes" type="cwe:MappingNotesType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Notes" type="cwe:NotesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Content_History" type="cwe:ContentHistoryType" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="ID" type="xs:integer" use="required"/>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Abstraction" type="cwe:AbstractionEnumeration" use="required"/>
<xs:attribute name="Structure" type="cwe:StructureEnumeration" use="required"/>
<xs:attribute name="Status" type="cwe:StatusEnumeration" use="required"/>
<xs:attribute name="Diagram" type="xs:string"/>
</xs:complexType>
<!-- =============================================================================== -->
<!-- ================================= CATEGORY ================================== -->
<!-- =============================================================================== -->
<xs:complexType name="CategoryType">
<xs:annotation>
<xs:documentation>A category is a collection of weaknesses based on some common characteristic or attribute. The shared attribute may be any number of things including, but not limited to, environment (J2EE, .NET), functional area (authentication, cryptography) and the relevant resource (credentials management, certificate issues). A Category is used primarily as an organizational mechanism for CWE and should not be mapped to by external sources.</xs:documentation>
<xs:documentation>The required Summary element contains the key points that define the category and helps the user understand what the category is attempting to be. The optional Relationships element is used to define relationships (Member_Of and Has_Member) with other weaknesses, categories, and views. The optional Taxonomy_Mappings element is used to relate this category to similar categories in taxomomies outside of CWE. The optional References element is used to provide further reading and insight into this category. This element should be used when the category is based on external sources or projects. The optional Notes element is used to provide additional comments or clarifications that cannot be captured using the other elements of the category. The optional Content_History element is used to keep track of the original author of the category and any subsequent modifications to the content. This provides a means of contacting the authors and modifiers for clarifying ambiguities, or in merging overlapping contributions.</xs:documentation>
<xs:documentation>The required ID attribute provides a unique identifier for the category. It is meant to be static for the lifetime of the category. If the category becomes deprecated, the ID should not be reused, and a placeholder for the deprecated category should be left in the catalog. The required Name attribute provides a descriptive title used to give the reader an idea of what characteristics this category represents. All words in the name should be capitalized except for articles and prepositions unless they begin or end the name. The required Status attribute defines the maturity of the information for this category. Please refer to the StatusEnumeration simple type for a list of valid values and their meanings.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Summary" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Relationships" type="cwe:RelationshipsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Taxonomy_Mappings" type="cwe:TaxonomyMappingsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="References" type="cwe:ReferencesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Mapping_Notes" type="cwe:MappingNotesType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Notes" type="cwe:NotesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Content_History" type="cwe:ContentHistoryType" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="ID" type="xs:integer" use="required"/>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Status" type="cwe:StatusEnumeration" use="required"/>
</xs:complexType>
<!-- =============================================================================== -->
<!-- =================================== VIEW ==================================== -->
<!-- =============================================================================== -->
<xs:complexType name="ViewType">
<xs:annotation>
<xs:documentation>A view represents a perspective with which one might look at the weaknesses in the catalog. There are three different types of views as defined by the type attribute: graphs, explicit slices, and implicit slices. The members of a view are either defined externally through the members element (in the case of a graph or an explicit slice) or by the optional filter element (in the case of an implicit slice).</xs:documentation>
<xs:documentation>The required Objective element describes the perspective from which the view has been constructed. The optional Audience element provides a reference to the target stakeholders or groups for whom the view is most relevant. The optional Members element is used to define Member_Of relationships with categories. The optional Filter element is only used for implicit slices (see the Type attribute) and holds an XSL query for identifying which entries are members of the view. The optional References element is used to provide further reading and insight into this view. This element should be used when the view is based on external sources or projects. The optional Notes element is used to provide any additional comments that cannot be captured using the other elements of the view. The optional Content_History element is used to keep track of the original author of the view and any subsequent modifications to the content. This provides a means of contacting the authors and modifiers for clarifying ambiguities, or in merging overlapping contributions.</xs:documentation>
<xs:documentation>The required ID attribute provides a unique identifier for the view. It is meant to be static for the lifetime of the view. If the view becomes deprecated, the ID should not be reused, and a placeholder for the deprecated view should be left in the catalog. The required Name attribute provides a descriptive title used to give the reader an idea of what perspective this view represents. All words in the name should be capitalized except for articles and prepositions, unless they begin or end the name. The required Type attribute describes how this view is being constructed. Please refer to the ViewTypeEnumeration simple type for a list of valid values and their meanings. The required Status attribute defines the maturity of the information for this view. Please refer to the StatusEnumeration simple type for a list of valid values and their meanings.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Objective" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Audience" type="cwe:AudienceType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Members" type="cwe:RelationshipsType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Filter" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="References" type="cwe:ReferencesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Mapping_Notes" type="cwe:MappingNotesType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Notes" type="cwe:NotesType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Content_History" type="cwe:ContentHistoryType" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="ID" type="xs:integer" use="required"/>
<xs:attribute name="Name" type="xs:string" use="required"/>
<xs:attribute name="Type" type="cwe:ViewTypeEnumeration" use="required"/>
<xs:attribute name="Status" type="cwe:StatusEnumeration" use="required"/>
</xs:complexType>
<!-- =============================================================================== -->
<!-- ============================= EXTERNAL REFERENCE ============================= -->
<!-- =============================================================================== -->
<xs:complexType name="ExternalReferenceType">
<xs:annotation>
<xs:documentation>The ExternalReferenceType complex type defines a collection of elements that provide a pointer to where more information and deeper insight can be obtained. Examples would be a research paper or an excerpt from a publication.</xs:documentation>
<xs:documentation>Not all of the elements need to be used, since some are designed for web references and others are designed for book references. The Author and Title elements should be filled out for all references if possible; Author is optional, but Title is required. The optional Edition element identifies the edition of the material being referenced in the event that multiple editions of the material exist. If the reference is part of a magazine or journal, the Publication element should be used to identify the name. The optional Publication_Year, Publication_Month, Publication_Day, and Publisher elements should be used to more specifically identify the book or publication via its date and publisher. The year must follow the YYYY format while the month must follow the --MM format and the day must follow the ---DD format. The URL and URL_Date elements are used to capture a URL for the material being referenced, if one exists, and the date when the URL was validated to exist.</xs:documentation>
<xs:documentation>The required Reference_ID attribute exists to provide a globally unique identifier for the reference (e.g., REF-1). The ID is used by other entities to link to this external reference.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Author" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Title" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Edition" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Publication" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Publication_Year" type="xs:gYear" minOccurs="0" maxOccurs="1"/>
<xs:element name="Publication_Month" type="xs:gMonth" minOccurs="0" maxOccurs="1"/>
<xs:element name="Publication_Day" type="xs:gDay" minOccurs="0" maxOccurs="1"/>
<xs:element name="Publisher" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="URL" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
<xs:element name="URL_Date" type="xs:date" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Reference_ID" type="xs:string" use="required"/>
</xs:complexType>
<!-- =============================================================================== -->
<!-- =============================== GLOBAL TYPES ================================ -->
<!-- =============================================================================== -->
<xs:complexType name="AffectedResourcesType">
<xs:annotation>
<xs:documentation>The AffectedResourcesType complex type is used to identify system resources that can be affected by an exploit of this weakness. If multiple resources could be affected, then each should be defined by its own Affected_Resource element.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Affected_Resource" type="cwe:ResourceEnumeration" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AlternateTermsType">
<xs:annotation>
<xs:documentation>The AlternateTermsType complex type indicates one or more other names used to describe this weakness. The required Term element contains the actual alternate term. The required Description element provides context for each alternate term by which this weakness may be known.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Alternate_Term" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Term" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Description" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ApplicablePlatformsType">
<xs:annotation>
<xs:documentation>The ApplicablePlatformsType complex type specifies the languages, operating systems, architectures, and technologies in which a given weakness could appear. A technology represents a generally accepted feature of a system and often refers to a high-level functional component within a system. The required Prevalence attribute identifies the regularity with which the weakness is applicable to that platform. When providing an operating system name, an optional Common Platform Enumeration (CPE) identifier can be used to a identify a specific OS.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Language" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="cwe:LanguageNameEnumeration"/>
<xs:attribute name="Class" type="cwe:LanguageClassEnumeration"/>
<xs:attribute name="Prevalence" type="cwe:PrevalenceEnumeration" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Operating_System" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="cwe:OperatingSystemNameEnumeration"/>
<xs:attribute name="Version" type="xs:string"/>
<xs:attribute name="CPE_ID" type="xs:string"/>
<xs:attribute name="Class" type="cwe:OperatingSystemClassEnumeration"/>
<xs:attribute name="Prevalence" type="cwe:PrevalenceEnumeration" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Architecture" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="cwe:ArchitectureNameEnumeration"/>
<xs:attribute name="Class" type="cwe:ArchitectureClassEnumeration"/>
<xs:attribute name="Prevalence" type="cwe:PrevalenceEnumeration" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Technology" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Name" type="cwe:TechnologyNameEnumeration"/>
<xs:attribute name="Class" type="cwe:TechnologyClassEnumeration"/>
<xs:attribute name="Prevalence" type="cwe:PrevalenceEnumeration" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AudienceType">
<xs:annotation>
<xs:documentation>The AudienceType complex type provides a reference to the target stakeholders or groups for a view. For each stakeholder, the required Type element specifies the type of members that might be interested in the view. The required Description element provides some text describing what properties of the view this particular stakeholder might find useful.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Stakeholder" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Type" type="cwe:StakeholderEnumeration" minOccurs="1" maxOccurs="1"/>
<xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BackgroundDetailsType">
<xs:annotation>
<xs:documentation>The BackgroundDetailsType complex type contains one or more Background_Detail elements, each of which contains information that is relevant but not related to the nature of the weakness itself.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Background_Detail" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CommonConsequencesType">
<xs:annotation>
<xs:documentation>The CommonConsequencesType complex type is used to specify individual consequences associated with a weakness. The required Scope element identifies the security property that is violated. The optional Impact element describes the technical impact that arises if an adversary succeeds in exploiting this weakness. The optional Likelihood element identifies how likely the specific consequence is expected to be seen relative to the other consequences. For example, there may be high likelihood that a weakness will be exploited to achieve a certain impact, but a low likelihood that it will be exploited to achieve a different impact. The optional Note element provides additional commentary about a consequence.</xs:documentation>
<xs:documentation>The optional Consequence_ID attribute is used by the internal CWE team to uniquely identify examples that are repeated across any number of individual weaknesses. To help make sure that the details of these common examples stay synchronized, the Consequence_ID is used to quickly identify those examples across CWE that should be identical. The identifier is a string and should match the following format: CC-1.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Consequence" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Scope" type="cwe:ScopeEnumeration" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Impact" type="cwe:TechnicalImpactEnumeration" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Likelihood" type="cwe:LikelihoodEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Note" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Consequence_ID" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ContentHistoryType">
<xs:annotation>
<xs:documentation>The ContentHistoryType complex type provides elements to keep track of the original author of an entry and any subsequent modifications to the content. The required Submission element is used to identify the submitter and/or their organization, the date on which the submission was made, the CWE version and release date in which the new CWE entry was added, and any optional comments related to an entry. The optional Modification element is used to identify a modifier's name, organization, the date on which the Modification was made or suggested, the CWE version and release date in which the modification first appeared, and any related comments. A new Modification element should exist for each change made to the content. Modifications that change the meaning of the entry, or how it might be interpreted, should be marked with an importance of critical to bring it to the attention of anyone previously dependent on the weakness. The optional Contribution element is used to identify a contributor's name, organization, the date, the CWE version and release date in which the contribution first appeared, and any related comments. This element has a single Type attribute, which indicates whether the contribution was part of general feedback given or actual content that was donated. The optional Previous_Entry_Name element is used to describe a previous name that was used for the entry. This should be filled out whenever a substantive name change occurs. The required Date attribute lists the date on which this name was no longer used, typically the date of the first CWE release that changed the previous name. A Previous_Entry_Name element should align with a corresponding Modification element.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Submission">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element name="Submission_Name" type="xs:string" minOccurs="1"/>
<xs:element name="Submission_Organization" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:element name="Submission_Organization" type="xs:string" minOccurs="1"/>
</xs:choice>
<xs:element name="Submission_Date" type="xs:date"/>
<xs:element name="Submission_Version" type="xs:string"/>
<xs:element name="Submission_ReleaseDate" type="xs:date"/>
<xs:element name="Submission_Comment" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Modification" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Modification_Name" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modification_Organization" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modification_Date" type="xs:date" minOccurs="1" maxOccurs="1"/>
<xs:element name="Modification_Version" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modification_ReleaseDate" type="xs:date" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modification_Importance" type="cwe:ImportanceEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Modification_Comment" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Contribution" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Contribution_Name" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Contribution_Organization" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Contribution_Date" type="xs:date" minOccurs="1" maxOccurs="1"/>
<xs:element name="Contribution_Version" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Contribution_ReleaseDate" type="xs:date" minOccurs="0" maxOccurs="1"/>
<xs:element name="Contribution_Comment" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Content"/>
<xs:enumeration value="Feedback"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Previous_Entry_Name" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Date" type="xs:date" use="required"/>
<xs:attribute name="Version" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DemonstrativeExamplesType">
<xs:annotation>
<xs:documentation>The DemonstrativeExamplesType complex type contains one or more Demonstrative_Example elements, each of which contains an example illustrating how a weakness may look in actual code. The optional Title_Text element provides a title for the example. The Intro_Text element describes the context and setting in which this code should be viewed, summarizing what the code is attempting to do. The Body_Text and Example_Code elements are a mixture of code and explanatory text about the example. The References element provides additional information.</xs:documentation>
<xs:documentation>The optional Demonstrative_Example_ID attribute is used by the internal CWE team to uniquely identify examples that are repeated across any number of individual weaknesses. To help make sure that the details of these common examples stay synchronized, the Demonstrative_Example_ID is used to quickly identify those examples across CWE that should be identical. The identifier is a string and should match the following format: DX-1.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Demonstrative_Example" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Title_Text" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Intro_Text" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Body_Text" type="cwe:StructuredTextType"/>
<xs:element name="Example_Code" type="cwe:StructuredCodeType"/>
</xs:choice>
<xs:element name="References" type="cwe:ReferencesType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Demonstrative_Example_ID" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DetectionMethodsType">
<xs:annotation>
<xs:documentation>The DetectionMethodsType complex type is used to identify methods that may be employed to detect this weakness, including their strengths and limitations. The required Method element identifies the particular detection method being described. The required Description element is intended to provide some context of how this method can be applied to a specific weakness. The optional Effectiveness element says how effective the detection method may be in detecting the associated weakness. This assumes the use of best-of-breed tools, analysts, and methods. There is limited consideration for financial costs, labor, or time. The optional Effectiveness_Notes element provides additional discussion of the strengths and shortcomings of this detection method.</xs:documentation>
<xs:documentation>The optional Detection_Method_ID attribute is used by the internal CWE team to uniquely identify methods that are repeated across any number of individual weaknesses. To help make sure that the details of these common methods stay synchronized, the Detection_Method_ID is used to quickly identify those Detection_Method elements across CWE that should be identical. The identifier is a string and should match the following format: DM-1.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Detection_Method" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Method" type="cwe:DetectionMethodEnumeration" minOccurs="1" maxOccurs="1"/>
<xs:element name="Description" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Effectiveness" type="cwe:DetectionEffectivenessEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Effectiveness_Notes" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Detection_Method_ID" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ExploitationFactorsType">
<xs:annotation>
<xs:documentation>The ExploitationFactorsType complex type points out conditions or factors that could increase the likelihood of exploit for this weakness.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Exploitation_Factor" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="FunctionalAreasType">
<xs:annotation>
<xs:documentation>The FunctionalAreasType complex type contains one or more functional_area elements, each of which identifies the functional area in which the weakness is most likely to occur. For example, CWE-23: Relative Path Traversal may occur in functional areas of software related to file processing. Each applicable functional area should have a new Functional_Area element, and standard title capitalization should be applied to each area.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Functional_Area" type="cwe:FunctionalAreaEnumeration" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="MappingNotesType">
<xs:annotation>
<xs:documentation>The MappingNotesType complex type provides guidance for when (and whether) to map an issue to this CWE entry or to suggest alternatives. The Usage element describes whether the CWE should be used for mapping vulnerabilities to their underlying weaknesses as part of root cause analysis. The Rationale element provides context for the Usage. The Comments element provides further clarification to the reader. The Reasons element uses a limited vocabulary to summarize the Usage. The Suggestions element includes suggestions for additional CWEs that might be more appropriate for the mapping task.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Usage" type="cwe:UsageEnumeration" minOccurs="1" maxOccurs="1"/>
<xs:element name="Rationale" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Comments" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Reasons" type="cwe:ReasonsType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Suggestions" type="cwe:SuggestionsType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="MemberType">
<xs:annotation>
<xs:documentation>The MemberType complex type may be used to establish a Has_Member or Member_Of type relationship within the designated View_ID. This type will establish a relationship between the container Category/View ID and the target CWE_ID.</xs:documentation>
</xs:annotation>
<xs:attribute name="CWE_ID" type="xs:integer" use="required"/>
<xs:attribute name="View_ID" type="xs:integer" use="required"/>
</xs:complexType>
<xs:complexType name="ModesOfIntroductionType">
<xs:annotation>
<xs:documentation>The ModeOfIntroductionType complex type is used to provide information about how and when a given weakness may be introduced. If there are multiple possible introduction points, then a separate Introduction element should be included for each. The required Phase element identifies the point in the product life cycle at which the weakness may be introduced. The optional Note element identifies the typical scenarios under which the weakness may be introduced during the given phase.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Introduction" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Phase" type="cwe:PhaseEnumeration" minOccurs="1" maxOccurs="1"/>
<xs:element name="Note" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NotesType">
<xs:annotation>
<xs:documentation>The NotesType complex type contains one or more Note elements, each of which is used to provide any additional comments about an entry that cannot be captured using other elements.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Note" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="cwe:StructuredTextType">
<xs:attribute name="Type" type="cwe:NoteTypeEnumeration" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ObservedExampleType">
<xs:annotation>
<xs:documentation>The ObservedExampleType complex type specifies references to a specific observed instance of a weakness in real-world products. Typically this will be a CVE reference. Each Observed_Example element represents a single example. The required Reference element should contain the identifier for the example being cited. For example, if a CVE is being cited, it should be of the standard CVE identifier format, such as CVE-2005-1951 or CVE-1999-0046. The required Description element should contain a brief description of the weakness being cited, without including irrelevant details such as the product name or attack vectors. The description should present an unambiguous correlation between the example being described and the weakness(es) that it is meant to exemplify. It should also be short and easy to understand. The Link element should provide a valid URL where more information regarding this example can be obtained.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Observed_Example" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Reference" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="Description" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Link" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PotentialMitigationsType">
<xs:annotation>
<xs:documentation>The PotentialMitigationsType complex type is used to describe potential mitigations associated with a weakness. It contains one or more Mitigation elements, which each represent individual mitigations for the weakness. The Phase element indicates the development life cycle phase during which this particular mitigation may be applied. The Strategy element describes a general strategy for protecting a system to which this mitigation contributes. The Effectiveness element summarizes how effective the mitigation may be in preventing the weakness. The Description element contains a description of this individual mitigation including any strengths and shortcomings of this mitigation for the weakness.</xs:documentation>
<xs:documentation>The optional Mitigation_ID attribute is used by the internal CWE team to uniquely identify mitigations that are repeated across any number of individual weaknesses. To help make sure that the details of these common mitigations stay synchronized, the Mitigation_ID is used to quickly identify those mitigation elements across CWE that should be identical. The identifier is a string and should match the following format: MIT-1.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Mitigation" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Phase" type="cwe:PhaseEnumeration" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Strategy" type="cwe:MitigationStrategyEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Description" type="cwe:StructuredTextType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Effectiveness" type="cwe:EffectivenessEnumeration" minOccurs="0" maxOccurs="1"/>
<xs:element name="Effectiveness_Notes" type="cwe:StructuredTextType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Mitigation_ID" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ReasonsType">
<xs:annotation>
<xs:documentation>The ReasonsType complex type is used to identify the different reasons to why a CWE should not be considered.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Reason" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Type" type="cwe:ReasonEnumeration" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ReferencesType">
<xs:annotation>
<xs:documentation>The ReferencesType complex type contains one or more reference elements, each of which is used to link to an external reference defined within the catalog. The required External_Reference_ID attribute represents the external reference entry being linked to (e.g., REF-1). Text or quotes within the same CWE entity can cite this External_Reference_ID similar to how a footnote is used, and should use the format [REF-1]. The optional Section attribute holds any section title or page number that is specific to this use of the reference.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Reference" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="External_Reference_ID" type="xs:string" use="required"/>
<xs:attribute name="Section" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RelatedAttackPatternsType">
<xs:annotation>
<xs:documentation>The RelatedAttackPatternsType complex type contains references to attack patterns associated with this weakness. The association implies those attack patterns may be applicable if an instance of this weakness exists. Each related attack pattern is identified by a CAPEC identifier.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Related_Attack_Pattern" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="CAPEC_ID" type="xs:integer" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RelatedWeaknessesType">
<xs:annotation>
<xs:documentation>The RelatedWeaknessesType complex type is used to refer to other weaknesses that differ only in their level of abstraction. It contains one or more Related_Weakness elements, each of which is used to link to the CWE identifier of the other Weakness. The nature of the relation is captured by the Nature attribute. Please see the RelatedNatureEnumeration simple type definition for details about the valid value and meanings. The optional Chain_ID attribute specifies the unique ID of a named chain that a CanFollow or CanPrecede relationship pertains to. The optional Ordinal attribute is used to determine if this relationship is the primary ChildOf relationship for this weakness for a given View_ID. This attribute can only have the value "Primary" and should only be included for the primary parent/child relationship. For each unique triple of <Nature, CWE_ID, View_ID>, there should be only one relationship that is given a "Primary" ordinal.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Related_Weakness" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="Nature" type="cwe:RelatedNatureEnumeration" use="required"/>
<xs:attribute name="CWE_ID" type="xs:integer" use="required"/>
<xs:attribute name="View_ID" type="xs:integer" use="required"/>
<xs:attribute name="Chain_ID" type="xs:integer"/>
<xs:attribute name="Ordinal" type="cwe:OrdinalEnumeration"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RelationshipsType">
<xs:annotation>
<xs:documentation>The RelationshipsType complex type provides elements to show the associated relationships with a given view or category. The Member_Of element is used to denote the individual categories that are included as part of the target view. The Has_Member element is used to define the weaknesses or other categories that are grouped together by a category. In both cases, the required MemberType's CWE_ID attribute specifies the unique CWE ID that is the target entry of the relationship, while the View_ID specifies which view the given relationship is relevant to.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:sequence>
<xs:element name="Member_Of" type="cwe:MemberType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Has_Member" type="cwe:MemberType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:element name="Has_Member" type="cwe:MemberType" minOccurs="1" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="SuggestionsType">
<xs:annotation>
<xs:documentation>The SuggestionsType complex type is used to suggest other CWE entries that might be more appropriate to use for mapping.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Suggestion" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="CWE_ID" type="xs:integer" use="required"/>
<xs:attribute name="Comment" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TaxonomyMappingsType">
<xs:annotation>
<xs:documentation>The TaxonomyMappingsType complex type is used to provide a mapping from an entry (Weakness or Category) in CWE to an equivalent entry in a different taxonomy. The required Taxonomy_Name attribute identifies the taxonomy to which the mapping is being made. The Entry_ID and Entry_Name elements identify the ID and name of the entry which is being mapped. The Mapping_Fit element identifies how close the CWE is to the entry in the taxonomy.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Taxonomy_Mapping" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Entry_ID" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Entry_Name" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="Mapping_Fit" type="cwe:TaxonomyMappingFitEnumeration" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="Taxonomy_Name" type="cwe:TaxonomyNameEnumeration" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="WeaknessOrdinalitiesType">
<xs:annotation>
<xs:documentation>The WeaknessOrdinalitiesType complex type indicates potential ordering relationships with other weaknesses. The required Ordinality element identifies whether the weakness has a primary, resultant, or indirect relationship. The optional Description contains the context in which the relationship exists. It is important to note that it is possible for the same entry to be primary in some instances and resultant in others.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Weakness_Ordinality" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Ordinality" type="cwe:OrdinalityEnumeration" minOccurs="1" maxOccurs="1"/>
<xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<!-- =============================================================================== -->
<!-- =============================== ENUMERATIONS ================================ -->
<!-- =============================================================================== -->
<xs:simpleType name="AbstractionEnumeration">
<xs:annotation>
<xs:documentation>The AbstractionEnumeration simple type defines the different abstraction levels that apply to a weakness. A "Pillar" is the most abstract type of weakness and represents a theme for all class/base/variant weaknesses related to it. A Pillar is different from a Category as a Pillar is still technically a type of weakness that describes a mistake, while a Category represents a common characteristic used to group related things. A "Class" is a weakness also described in a very abstract fashion, typically independent of any specific language or technology. More specific than a Pillar Weakness, but more general than a Base Weakness. Class level weaknesses typically describe issues in terms of 1 or 2 of the following dimensions: behavior, property, and resource. A "Base" is a more specific type of weakness that is still mostly independent of a resource or technology, but with sufficient details to provide specific methods for detection and prevention. Base level weaknesses typically describe issues in terms of 2 or 3 of the following dimensions: behavior, property, technology, language, and resource. A "Variant" is a weakness that is linked to a certain type of product, typically involving a specific language or technology. More specific than a Base weakness. Variant level weaknesses typically describe issues in terms of 3 to 5 of the following dimensions: behavior, property, technology, language, and resource. A "Compound" weakness is a meaningful aggregation of several weaknesses, currently known as either a Chain or Composite.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Pillar"/>
<xs:enumeration value="Class"/>
<xs:enumeration value="Base"/>
<xs:enumeration value="Variant"/>
<xs:enumeration value="Compound"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ArchitectureClassEnumeration">
<xs:annotation>
<xs:documentation>The ArchitectureClassEnumeration simple type contains a list of values corresponding to known classes of architectures. The value "Not Architecture-Specific" is used to indicate that the entry is not limited to a small set of architectures, i.e., it can appear in many different architectures.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Embedded"/>
<xs:enumeration value="Microcomputer"/>
<xs:enumeration value="Workstation"/>
<xs:enumeration value="Not Architecture-Specific">
<xs:annotation>
<xs:documentation>Used to indicate that the entry is not limited to a small set of architectures, i.e., it can appear in many different architectures</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ArchitectureNameEnumeration">
<xs:annotation>
<xs:documentation>The ArchitectureNameEnumeration simple type contains a list of values corresponding to known architectures.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Alpha"/>
<xs:enumeration value="ARM"/>
<xs:enumeration value="Itanium"/>
<xs:enumeration value="Power Architecture"/>
<xs:enumeration value="SPARC"/>
<xs:enumeration value="x86"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DetectionMethodEnumeration">
<xs:annotation>
<xs:documentation>The DetectionMethodEnumeration simple type defines the different methods used to detect a weakness.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Automated Analysis"/>
<xs:enumeration value="Automated Dynamic Analysis"/>
<xs:enumeration value="Automated Static Analysis"/>
<xs:enumeration value="Automated Static Analysis - Source Code"/>
<xs:enumeration value="Automated Static Analysis - Binary or Bytecode"/>
<xs:enumeration value="Fuzzing"/>
<xs:enumeration value="Manual Analysis"/>
<xs:enumeration value="Manual Dynamic Analysis"/>
<xs:enumeration value="Manual Static Analysis"/>
<xs:enumeration value="Manual Static Analysis - Source Code"/>
<xs:enumeration value="Manual Static Analysis - Binary or Bytecode"/>
<xs:enumeration value="White Box"/>
<xs:enumeration value="Black Box"/>
<xs:enumeration value="Architecture or Design Review"/>
<xs:enumeration value="Dynamic Analysis with Manual Results Interpretation"/>
<xs:enumeration value="Dynamic Analysis with Automated Results Interpretation"/>
<xs:enumeration value="Formal Verification"/>
<xs:enumeration value="Simulation / Emulation"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DetectionEffectivenessEnumeration">
<xs:annotation>
<xs:documentation>The DetectionEffectivenessEnumeration simple type defines the different levels of effectiveness that a detection method may have in detecting an associated weakness. The value "High" is used to describe a method that succeeds frequently and does not result in many false reports. The value "Moderate" is used to describe a method that is applicable to multiple circumstances, but it may not have complete coverage of the weakness, or it may result in a number of incorrect reports. The "SOAR Partial" value means that according to SOAR this method can be cost-effective for partial coverage of the objective. The value "Opportunistic" is used to describe a method that does not directly target the weakness but may still succeed by chance, rather than in a reliable manner. The value "Limited" is used to describe a method that may be useful in limited circumstances, only applicable to a subset of potential instances of a given weakness type, requires training/customization, or gives limited visibility. Even in its limited capacity, this may be part of a good defense in depth strategy. The value "None" is used to describe a method that is highly unlikely to work. However, it may be included in an entry to emphasize common, yet incorrect, methods that developers might introduce.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="High"/>
<xs:enumeration value="Moderate"/>
<xs:enumeration value="SOAR Partial">
<xs:annotation>
<xs:documentation>Used to indicate that according to the IATAC State Of the Art Report (SOAR), the detection method is partially effective.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Opportunistic"/>
<xs:enumeration value="Limited"/>
<xs:enumeration value="None"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EffectivenessEnumeration">
<xs:annotation>
<xs:documentation>The EffectivenessEnumeration simple type defines the different values related to how effective a mitigation may be in preventing the weakness. A value of "High" means the mitigation is frequently successful in eliminating the weakness entirely. A value of "Moderate" means the mitigation will prevent the weakness in multiple forms, but it does not have complete coverage of the weakness. A value of "Limited" means the mitigation may be useful in limited circumstances, or it is only applicable to a subset of potential errors of this weakness type. A value of "Incidental" means the mitigation is generally not effective and will only provide protection by chance, rather than in a reliable manner. A value of "Defense in Depth" means the mitigation may not necessarily prevent the weakness, but it may help to minimize the potential impact of an attacker exploiting the weakness. A value of "Discouraged Common Practice" is used to indicate mitigations that are commonly attempted but known to be ineffective or highly risky.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="High"/>
<xs:enumeration value="Moderate"/>
<xs:enumeration value="Limited"/>
<xs:enumeration value="Incidental"/>
<xs:enumeration value="Discouraged Common Practice"/>
<xs:enumeration value="Defense in Depth"/>
<xs:enumeration value="None"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FunctionalAreaEnumeration">
<xs:annotation>
<xs:documentation>The FunctionalAreaEnumeration simple type defines the different functional areas in which the weakness may appear. The value "Functional-Area-Independent" is used to indicate that the entry is not limited to a small set of functional areas, i.e., it can appear in many different functional areas</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Authentication"/>
<xs:enumeration value="Authorization"/>
<xs:enumeration value="Code Libraries"/>
<xs:enumeration value="Counters"/>
<xs:enumeration value="Cryptography"/>
<xs:enumeration value="Error Handling"/>
<xs:enumeration value="Interprocess Communication"/>
<xs:enumeration value="File Processing"/>
<xs:enumeration value="Logging"/>
<xs:enumeration value="Memory Management"/>
<xs:enumeration value="Networking"/>
<xs:enumeration value="Number Processing"/>
<xs:enumeration value="Program Invocation"/>
<xs:enumeration value="Protection Mechanism"/>
<xs:enumeration value="Session Management"/>
<xs:enumeration value="Signals"/>
<xs:enumeration value="String Processing"/>
<xs:enumeration value="Not Functional-Area-Specific">
<xs:annotation>
<xs:documentation>Used to indicate that the entry is not limited to a small set of functional areas, i.e., it can appear in many different functional areas</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Power"/>
<xs:enumeration value="Clock"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ImportanceEnumeration">
<xs:annotation>
<xs:documentation>The ImportanceEnumeration simple type lists different values for importance.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Normal"/>
<xs:enumeration value="Critical"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LanguageClassEnumeration">
<xs:annotation>
<xs:documentation>The LanguageClassEnumeration simple type contains a list of values corresponding to different classes of source code languages. The value "Not Language-Specific" is used to indicate that the entry is not limited to a small set of languages.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Assembly"/>
<xs:enumeration value="Compiled"/>
<xs:enumeration value="Hardware Description Language"/>
<xs:enumeration value="Interpreted"/>
<xs:enumeration value="Not Language-Specific">
<xs:annotation>
<xs:documentation>Used to indicate that the entry is not limited to a small set of language classes, i.e., it can appear in many different language classes.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LanguageNameEnumeration">
<xs:annotation>
<xs:documentation>The LanguageNameEnumeration simple type contains a list of values corresponding to different source code languages or data formats.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Ada"/>
<xs:enumeration value="ARM Assembly"/>
<xs:enumeration value="ASP"/>
<xs:enumeration value="ASP.NET"/>
<xs:enumeration value="Basic"/>
<xs:enumeration value="C"/>
<xs:enumeration value="C++"/>
<xs:enumeration value="C#"/>
<xs:enumeration value="COBOL"/>
<xs:enumeration value="Fortran"/>
<xs:enumeration value="F#"/>
<xs:enumeration value="Go"/>
<xs:enumeration value="HTML"/>
<xs:enumeration value="Java"/>
<xs:enumeration value="JavaScript"/>
<xs:enumeration value="JSON"/>
<xs:enumeration value="JSP"/>
<xs:enumeration value="Objective-C"/>
<xs:enumeration value="Pascal"/>
<xs:enumeration value="Perl"/>
<xs:enumeration value="PHP"/>
<xs:enumeration value="Pseudocode"/>
<xs:enumeration value="Python"/>
<xs:enumeration value="Ruby"/>
<xs:enumeration value="Rust"/>
<xs:enumeration value="Shell"/>
<xs:enumeration value="SQL"/>
<xs:enumeration value="Swift"/>
<xs:enumeration value="VB.NET"/>
<xs:enumeration value="Verilog"/>
<xs:enumeration value="VHDL"/>
<xs:enumeration value="XML"/>
<xs:enumeration value="x86 Assembly"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LikelihoodEnumeration">
<xs:annotation>
<xs:documentation>The LikelihoodEnumeration simple type contains a list of values corresponding to different likelihoods. The value "Unknown" should be used when the actual likelihood of something occurring is not known.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="High"/>
<xs:enumeration value="Medium"/>
<xs:enumeration value="Low"/>
<xs:enumeration value="Unknown"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="MitigationStrategyEnumeration">
<xs:annotation>
<xs:documentation>The MitigationStrategyEnumeration simple type lists general strategies for protecting a system to which a mitigation contributes.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Attack Surface Reduction"/>
<xs:enumeration value="Compilation or Build Hardening"/>
<xs:enumeration value="Enforcement by Conversion"/>
<xs:enumeration value="Environment Hardening"/>
<xs:enumeration value="Firewall"/>
<xs:enumeration value="Input Validation"/>
<xs:enumeration value="Language Selection"/>
<xs:enumeration value="Libraries or Frameworks"/>
<xs:enumeration value="Resource Limitation"/>
<xs:enumeration value="Output Encoding"/>
<xs:enumeration value="Parameterization"/>
<xs:enumeration value="Refactoring"/>
<xs:enumeration value="Sandbox or Jail"/>
<xs:enumeration value="Separation of Privilege"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NoteTypeEnumeration">
<xs:annotation>
<xs:documentation>The NoteTypeEnumeration simple type defines the different types of notes that can be associated with a weakness. An "Applicable Platform" note provides additional information about the list of applicable platforms for a given weakness. A "Maintenance" note contains significant maintenance tasks within this entry that still need to be addressed, such as clarifying the concepts involved or improving relationships. A "Relationship" note provides clarifying details regarding the relationships between entities. A "Research Gap" note identifies potential opportunities for the vulnerability research community to conduct further exploration of issues related to this weakness. It is intended to highlight parts of CWE that have not received sufficient attention from researchers. A "Terminology" note contains a discussion of terminology issues related to this weakness, or clarifications when there is no established terminology, or if there are multiple uses of the same key term. It is different from the Alternate_Terms element, which is focused on specific terms that are commonly used. A "Theoretical" note describes the weakness using vulnerability theory concepts. It should be provided as needed, especially in cases where the application of vulnerability theory is not necessarily obvious for the weakness.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Applicable Platform"/>
<xs:enumeration value="Maintenance"/>
<xs:enumeration value="Relationship"/>
<xs:enumeration value="Research Gap"/>
<xs:enumeration value="Terminology"/>
<xs:enumeration value="Theoretical"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OrdinalEnumeration">
<xs:annotation>
<xs:documentation>The OrdinalEnumeration simple type contains a list of values used to determine if a relationship is the primary relationship for a given weakness entry within a given view. Currently, this attribute can only have the value "Primary".</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Primary"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OrdinalityEnumeration">
<xs:annotation>
<xs:documentation>The OrdinalityEnumeration simple type contains a list of values used to indicates potential ordering relationships with other weaknesses. A primary relationship means the weakness exists independent of other weaknesses, while a resultant relationship is when a weakness exists only in the presence of some other weaknesses. An indirect relationship means the weakness does not directly lead to security-relevant weaknesses but is a quality issue that might indirectly make it easier to introduce security-relevant weaknesses or make them more difficult to detect.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Indirect"/>
<xs:enumeration value="Primary"/>
<xs:enumeration value="Resultant"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OperatingSystemClassEnumeration">
<xs:annotation>
<xs:documentation>The OperatingSystemClassEnumeration simple type contains a list of values corresponding to different classes of operating systems. The value "Not OS-Specific" is used to indicate that the entry is not limited to a small set of operating system classes, i.e., it can appear in many different operating system classes.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Linux"/>
<xs:enumeration value="macOS"/>
<xs:enumeration value="Unix"/>
<xs:enumeration value="Windows"/>
<xs:enumeration value="Not OS-Specific">
<xs:annotation>
<xs:documentation>Used to indicate that the entry is not limited to a small set of operating system classes, i.e., it can appear in many different operating system classes.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OperatingSystemNameEnumeration">
<xs:annotation>
<xs:documentation>The OperatingSystemNameEnumeration simple type contains a list of values corresponding to different operating systems.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="AIX"/>
<xs:enumeration value="Android"/>
<xs:enumeration value="BlackBerry OS"/>
<xs:enumeration value="Chrome OS"/>
<xs:enumeration value="Darwin"/>
<xs:enumeration value="FreeBSD"/>
<xs:enumeration value="iOS"/>
<xs:enumeration value="macOS"/>
<xs:enumeration value="NetBSD"/>
<xs:enumeration value="OpenBSD"/>
<xs:enumeration value="Red Hat"/>
<xs:enumeration value="Solaris"/>
<xs:enumeration value="SUSE"/>
<xs:enumeration value="tvOS"/>
<xs:enumeration value="Ubuntu"/>
<xs:enumeration value="watchOS"/>
<xs:enumeration value="Windows 9x"/>
<xs:enumeration value="Windows Embedded"/>
<xs:enumeration value="Windows NT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PhaseEnumeration">
<xs:annotation>
<xs:documentation>The PhaseEnumeration simple type lists different phases in the product life cycle.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Policy"/>
<xs:enumeration value="Requirements"/>
<xs:enumeration value="Architecture and Design"/>
<xs:enumeration value="Implementation"/>
<xs:enumeration value="Build and Compilation"/>
<xs:enumeration value="Testing"/>
<xs:enumeration value="Documentation"/>
<xs:enumeration value="Bundling"/>
<xs:enumeration value="Distribution"/>
<xs:enumeration value="Installation"/>
<xs:enumeration value="System Configuration"/>
<xs:enumeration value="Operation"/>
<xs:enumeration value="Patching and Maintenance"/>
<xs:enumeration value="Porting"/>
<xs:enumeration value="Integration"/>
<xs:enumeration value="Manufacturing"/>
<xs:enumeration value="Decommissioning and End-of-Life"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PrevalenceEnumeration">
<xs:annotation>
<xs:documentation>The PrevalenceEnumeration simple type defines the different regularities that guide the applicability of platforms.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Often"/>
<xs:enumeration value="Sometimes"/>
<xs:enumeration value="Rarely"/>
<xs:enumeration value="Undetermined"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ReasonEnumeration">
<xs:annotation>
<xs:documentation>The ReasonEnumeration simple type holds all the different types of reasons to why a CWE might not be considered for mapping.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Abstraction"/>
<xs:enumeration value="Category"/>
<xs:enumeration value="View"/>
<xs:enumeration value="Deprecated"/>
<xs:enumeration value="Potential Deprecation"/>
<xs:enumeration value="Frequent Misuse"/>
<xs:enumeration value="Frequent Misinterpretation"/>
<xs:enumeration value="Multiple Use"/>
<xs:enumeration value="CWE Overlap"/>
<xs:enumeration value="Acceptable-Use"/>
<xs:enumeration value="Potential Major Changes"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="RelatedNatureEnumeration">
<xs:annotation>
<xs:documentation>The RelatedNatureEnumeration simple type defines the different values that can be used to define the nature of a related weakness. A ChildOf nature denotes a related weakness at a higher level of abstraction. A ParentOf nature denotes a related weakness at a lower level of abstraction. The StartsWith, CanPrecede, and CanFollow relationships are used to denote weaknesses that are part of a chaining structure. The RequiredBy and Requires relationships are used to denote a weakness that is part of a composite weakness structure. The CanAlsoBe relationship denotes a weakness that, in the proper environment and context, can also be perceived as the target weakness. Note that the CanAlsoBe relationship is not necessarily reciprocal. The PeerOf relationship is used to show some similarity with the target weakness that does not fit any of the other type of relationships.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="ChildOf"/>
<xs:enumeration value="ParentOf"/>
<xs:enumeration value="StartsWith"/>
<xs:enumeration value="CanFollow"/>
<xs:enumeration value="CanPrecede"/>
<xs:enumeration value="RequiredBy"/>
<xs:enumeration value="Requires"/>
<xs:enumeration value="CanAlsoBe"/>
<xs:enumeration value="PeerOf"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ResourceEnumeration">
<xs:annotation>
<xs:documentation>The ResourceEnumeration simple type defines different resources of a system.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="CPU"/>
<xs:enumeration value="File or Directory"/>
<xs:enumeration value="Memory"/>
<xs:enumeration value="System Process"/>
<xs:enumeration value="Other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ScopeEnumeration">
<xs:annotation>
<xs:documentation>The ScopeEnumeration simple type defines the different areas of security that can be affected by exploiting a weakness.</xs:documentation>
</xs:annotation>