nvdcve_0.xsd 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. <?xml version="1.0"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://nvd.nist.gov/feeds/cve/1.2"
  4. xmlns:cve="http://nvd.nist.gov/feeds/cve/1.2"
  5. elementFormDefault="qualified" attributeFormDefault="unqualified"
  6. version="1.2">
  7. <xs:annotation>
  8. <xs:documentation>This schema defines the structure of the National
  9. Vulnerability Database XML feed files version: 1.2. The elements and
  10. attribute in this document are described by xs:annotation tags. This
  11. file is kept at http://nvd.nist.gov/schema/nvdcve.xsd. The NVD XML
  12. feeds are available at http://nvd.nist.gov/download.cfm.
  13. Release Notes:
  14. Version 1.2:
  15. * CVSS version 2 scores and vectors have been added. Please see
  16. http://nvd.nist.gov/cvss.cfm?vectorinfo and
  17. http://www.first.org/cvss/cvss-guide.html for more information on
  18. how to interpret this data. </xs:documentation>
  19. </xs:annotation>
  20. <xs:element name="nvd">
  21. <xs:annotation>
  22. <xs:documentation>The root element of the NVD CVE feed. Multiple "entry" child elements describe specific NVD CVE entries.</xs:documentation>
  23. </xs:annotation>
  24. <xs:complexType>
  25. <xs:sequence>
  26. <xs:element ref="cve:entry" minOccurs="0" maxOccurs="unbounded"/>
  27. </xs:sequence>
  28. <xs:attribute name="nvd_xml_version" type="xs:NMTOKEN" use="required">
  29. <xs:annotation>
  30. <xs:documentation>The schema version number supported by the feed.</xs:documentation>
  31. </xs:annotation>
  32. </xs:attribute>
  33. <xs:attribute name="pub_date" type="cve:dateType" use="required">
  34. <xs:annotation>
  35. <xs:documentation>The date the feed was generated.</xs:documentation>
  36. </xs:annotation>
  37. </xs:attribute>
  38. </xs:complexType>
  39. </xs:element>
  40. <xs:element name="entry" type="cve:entryType">
  41. <xs:annotation>
  42. <xs:documentation>A CVE entry.</xs:documentation>
  43. </xs:annotation>
  44. </xs:element>
  45. <!-- ******************************************************************* -->
  46. <!-- * Complex Types * -->
  47. <!-- ******************************************************************* -->
  48. <xs:complexType name="entryType">
  49. <xs:annotation>
  50. <xs:documentation> Documents one CVE entry. The child elements should always
  51. appear in the sequence defined below. These elements are compatible with
  52. entry elements from the CVE XML feeds.</xs:documentation>
  53. </xs:annotation>
  54. <xs:sequence>
  55. <xs:element name="desc">
  56. <xs:annotation>
  57. <xs:documentation>Description wrapper tag, parent to any
  58. documented descriptions of this CVE entry. While the "desc"
  59. tag will always be present, there may be no "descript" child
  60. tags. Only one "descript" tag will exist for each
  61. description source (i.e. CVE, NVD, ...). </xs:documentation>
  62. </xs:annotation>
  63. <xs:complexType>
  64. <xs:sequence>
  65. <xs:element name="descript" type="cve:descriptType" minOccurs="0" maxOccurs="2">
  66. <xs:annotation>
  67. <xs:documentation>A description of a CVE entry
  68. from the source indicated by the "source"
  69. attribute.</xs:documentation>
  70. </xs:annotation>
  71. </xs:element>
  72. </xs:sequence>
  73. </xs:complexType>
  74. </xs:element>
  75. <xs:element name="impacts" minOccurs="0">
  76. <xs:annotation>
  77. <xs:documentation> Impact wrapper tag (may or may not be
  78. present). Only one "impact" tag will exist for each impact
  79. explanation source. </xs:documentation>
  80. </xs:annotation>
  81. <xs:complexType>
  82. <xs:sequence>
  83. <xs:element name="impact" type="cve:impactType">
  84. <xs:annotation>
  85. <xs:documentation> Contains a specific impact
  86. explanation of this CVE entry from source
  87. indicated by the "source" attribute.
  88. </xs:documentation>
  89. </xs:annotation>
  90. </xs:element>
  91. </xs:sequence>
  92. </xs:complexType>
  93. </xs:element>
  94. <xs:element name="sols" type="cve:solsType" minOccurs="0">
  95. <xs:annotation>
  96. <xs:documentation> Solution wrapper tag (may or may not be
  97. present). Only one "sol" tag will exist for each solution
  98. explanation source. </xs:documentation>
  99. </xs:annotation>
  100. </xs:element>
  101. <xs:element name="loss_types" type="cve:lossTypeType" minOccurs="0">
  102. <xs:annotation>
  103. <xs:documentation> Loss type tag (may or may not be present).
  104. Contains one loss type child for each loss type of this CVE
  105. entry. Potential loss types are: "avail" => availability
  106. "conf" => confidentiality "int" => integrity "sec_prot" =>
  107. security protection </xs:documentation>
  108. </xs:annotation>
  109. </xs:element>
  110. <xs:element name="vuln_types" type="cve:vulnType" minOccurs="0">
  111. <xs:annotation>
  112. <xs:documentation> Vulnerability type tag (may or may not be
  113. present). Contains one vulnerability type child for each
  114. vulnerability type of this CVE entry. Potential
  115. vulnerability types are: "access" => Access validation error
  116. "input" => Input validation error "design" => Design error
  117. "exception" => Exceptional condition error "env" =>
  118. Environmental error "config" => Configuration error "race"
  119. => Race condition error "other" => other </xs:documentation>
  120. </xs:annotation>
  121. </xs:element>
  122. <xs:element name="range" type="cve:rangeType" minOccurs="0">
  123. <xs:annotation>
  124. <xs:documentation> Vulnerability range tag (may or may not be
  125. present). Contains one vulnerability range child for each
  126. vulnerability range of this CVE entry. Potential
  127. vulnerability ranges are: "local" => Locally exploitable
  128. "local_network" => Local network exploitable "network" =>
  129. Network exploitable "user_init" => User accesses attacker
  130. </xs:documentation>
  131. </xs:annotation>
  132. </xs:element>
  133. <xs:element name="refs">
  134. <xs:annotation>
  135. <xs:documentation> Reference wrapper tag (always present).
  136. External references to this CVE entry are contained within
  137. this tag. </xs:documentation>
  138. </xs:annotation>
  139. <xs:complexType>
  140. <xs:sequence>
  141. <xs:element name="ref" type="cve:refType" minOccurs="0" maxOccurs="unbounded">
  142. <xs:annotation>
  143. <xs:documentation> Individual reference to this CVE
  144. entry. Text is the name of this vulnerability at
  145. this particular reference. Attributes: "source"
  146. (required) => Name of reference source "url"
  147. (required) => hyperlink to reference "sig" =>
  148. indicates this reference includes a tool
  149. signature "adv" => indicates this reference is a
  150. Security Advisory "patch" => indicates this
  151. reference includes a patch for this
  152. vulnerability </xs:documentation>
  153. </xs:annotation>
  154. </xs:element>
  155. </xs:sequence>
  156. </xs:complexType>
  157. </xs:element>
  158. <xs:element name="vuln_soft" type="cve:vulnSoftType" minOccurs="0">
  159. <xs:annotation>
  160. <xs:documentation> Vulnerable software wrapper tag (may or may
  161. not be present). Software affected by this CVE entry are
  162. listed within this tag. </xs:documentation>
  163. </xs:annotation>
  164. </xs:element>
  165. </xs:sequence>
  166. <xs:attribute name="type" use="required">
  167. <xs:annotation>
  168. <xs:documentation>CVE or CAN</xs:documentation>
  169. </xs:annotation>
  170. <xs:simpleType>
  171. <xs:restriction base="xs:NMTOKEN">
  172. <xs:enumeration value="CAN"/>
  173. <xs:enumeration value="CVE"/>
  174. </xs:restriction>
  175. </xs:simpleType>
  176. </xs:attribute>
  177. <xs:attribute name="name" use="required">
  178. <xs:annotation>
  179. <xs:documentation>the full CVE name</xs:documentation>
  180. </xs:annotation>
  181. <xs:simpleType>
  182. <xs:restriction base="xs:ID">
  183. <xs:pattern value="(CAN|CVE)\-\d\d\d\d\-\d\d\d\d"/>
  184. </xs:restriction>
  185. </xs:simpleType>
  186. </xs:attribute>
  187. <xs:attribute name="seq" use="required">
  188. <xs:annotation>
  189. <xs:documentation>the sequence number from CVE name</xs:documentation>
  190. </xs:annotation>
  191. <xs:simpleType>
  192. <xs:restriction base="xs:NMTOKEN">
  193. <xs:pattern value="\d\d\d\d\-\d\d\d\d"/>
  194. </xs:restriction>
  195. </xs:simpleType>
  196. </xs:attribute>
  197. <xs:attribute name="nvd_name" type="xs:string">
  198. <xs:annotation>
  199. <xs:documentation>the NVD name (if it exists)</xs:documentation>
  200. </xs:annotation>
  201. </xs:attribute>
  202. <xs:attribute name="discovered" type="cve:dateType">
  203. <xs:annotation>
  204. <xs:documentation>the date this entry was discovered</xs:documentation>
  205. </xs:annotation>
  206. </xs:attribute>
  207. <xs:attribute name="published" type="cve:dateType" use="required">
  208. <xs:annotation>
  209. <xs:documentation>the date this entry was published</xs:documentation>
  210. </xs:annotation>
  211. </xs:attribute>
  212. <xs:attribute name="modified" type="cve:dateType">
  213. <xs:annotation>
  214. <xs:documentation>the date this entry was last modified</xs:documentation>
  215. </xs:annotation>
  216. </xs:attribute>
  217. <xs:attribute name="severity">
  218. <xs:annotation>
  219. <xs:documentation>the entry's severity as determined by the NVD analysts: High, Medium, or Low</xs:documentation>
  220. </xs:annotation>
  221. <xs:simpleType>
  222. <xs:restriction base="xs:NMTOKEN">
  223. <xs:enumeration value="High"/>
  224. <xs:enumeration value="Medium"/>
  225. <xs:enumeration value="Low"/>
  226. </xs:restriction>
  227. </xs:simpleType>
  228. </xs:attribute>
  229. <xs:attribute name="reject" type="cve:trueOnlyAttribute">
  230. <xs:annotation>
  231. <xs:documentation>indicates that this CVE entry has been rejected by CVE or NVD</xs:documentation>
  232. </xs:annotation>
  233. </xs:attribute>
  234. <xs:attribute name="CVSS_version" type="xs:string">
  235. <xs:annotation>
  236. <xs:documentation>the CVSS Version Indicator</xs:documentation>
  237. </xs:annotation>
  238. </xs:attribute>
  239. <xs:attribute name="CVSS_score" type="cve:zeroToTen">
  240. <xs:annotation>
  241. <xs:documentation>Same as the CVSS_base_score to provide backwards compatability with the previous CVE XML feed format. This field is deprecated an may be removed at a future date.</xs:documentation>
  242. </xs:annotation>
  243. </xs:attribute>
  244. <xs:attribute name="CVSS_base_score" type="cve:zeroToTen">
  245. <xs:annotation>
  246. <xs:documentation>CVSS version 2 Base Score</xs:documentation>
  247. </xs:annotation>
  248. </xs:attribute>
  249. <xs:attribute name="CVSS_impact_subscore" type="cve:zeroToTen">
  250. <xs:annotation>
  251. <xs:documentation>CVSS version 2 Impact Score</xs:documentation>
  252. </xs:annotation>
  253. </xs:attribute>
  254. <xs:attribute name="CVSS_exploit_subscore" type="cve:zeroToTen">
  255. <xs:annotation>
  256. <xs:documentation>CVSS version 2 Exploit Score</xs:documentation>
  257. </xs:annotation>
  258. </xs:attribute>
  259. <xs:attribute name="CVSS_vector" type="cve:CVSSVector">
  260. <xs:annotation>
  261. <xs:documentation>the CVSS version 2 Vector string</xs:documentation>
  262. </xs:annotation>
  263. </xs:attribute>
  264. </xs:complexType>
  265. <xs:complexType name="descriptType">
  266. <xs:simpleContent>
  267. <xs:extension base="xs:string">
  268. <xs:attribute name="source" type="cve:descriptSourceType" use="required">
  269. <xs:annotation>
  270. <xs:documentation>The source of the CVE description.</xs:documentation>
  271. </xs:annotation>
  272. </xs:attribute>
  273. </xs:extension>
  274. </xs:simpleContent>
  275. </xs:complexType>
  276. <xs:complexType name="impactType">
  277. <xs:simpleContent>
  278. <xs:extension base="xs:string">
  279. <xs:attribute name="source" type="cve:impactSourceType" use="required">
  280. </xs:attribute>
  281. </xs:extension>
  282. </xs:simpleContent>
  283. </xs:complexType>
  284. <xs:complexType name="vulnType">
  285. <xs:sequence>
  286. <xs:element name="access" minOccurs="0"/>
  287. <xs:element name="input" minOccurs="0">
  288. <xs:annotation>
  289. <xs:documentation> Input validation error tag with
  290. one attribute for each input validation error
  291. type. Potential input validation error types
  292. are: "bound" => Boundary condition error
  293. "buffer" => Buffer overflow </xs:documentation>
  294. </xs:annotation>
  295. <xs:complexType>
  296. <xs:attribute name="bound" type="cve:trueOnlyAttribute"/>
  297. <xs:attribute name="buffer" type="cve:trueOnlyAttribute"
  298. />
  299. </xs:complexType>
  300. </xs:element>
  301. <xs:element name="design" minOccurs="0"/>
  302. <xs:element name="exception" minOccurs="0"/>
  303. <xs:element name="env" minOccurs="0"/>
  304. <xs:element name="config" minOccurs="0"/>
  305. <xs:element name="race" minOccurs="0"/>
  306. <xs:element name="other" minOccurs="0"/>
  307. </xs:sequence>
  308. </xs:complexType>
  309. <xs:complexType name="solsType">
  310. <xs:sequence>
  311. <xs:element name="sol">
  312. <xs:annotation>
  313. <xs:documentation> Contains a specific solution
  314. explanation of this CVE entry from source
  315. indicated by the "source" attribute.
  316. </xs:documentation>
  317. </xs:annotation>
  318. <xs:complexType mixed="true">
  319. <xs:simpleContent>
  320. <xs:extension base="xs:string">
  321. <xs:attribute name="source" type="cve:solsSourceType" use="required">
  322. </xs:attribute>
  323. </xs:extension>
  324. </xs:simpleContent>
  325. </xs:complexType>
  326. </xs:element>
  327. </xs:sequence>
  328. </xs:complexType>
  329. <xs:complexType name="lossTypeType">
  330. <xs:sequence>
  331. <xs:element name="avail" minOccurs="0"/>
  332. <xs:element name="conf" minOccurs="0"/>
  333. <xs:element name="int" minOccurs="0"/>
  334. <xs:element name="sec_prot" minOccurs="0">
  335. <xs:annotation>
  336. <xs:documentation> Security Protection tag with one
  337. attribute for each security protection type.
  338. Potential security protection types are: "admin"
  339. => gain administrative access "user" => gain
  340. user access "other" => other </xs:documentation>
  341. </xs:annotation>
  342. <xs:complexType>
  343. <xs:attribute name="admin" type="cve:trueOnlyAttribute"/>
  344. <xs:attribute name="user" type="cve:trueOnlyAttribute"/>
  345. <xs:attribute name="other" type="cve:trueOnlyAttribute"
  346. />
  347. </xs:complexType>
  348. </xs:element>
  349. </xs:sequence>
  350. </xs:complexType>
  351. <xs:complexType name="rangeType">
  352. <xs:sequence>
  353. <xs:element name="local" minOccurs="0"/>
  354. <xs:element name="local_network" minOccurs="0"/>
  355. <xs:element name="network" minOccurs="0"/>
  356. <xs:element name="user_init" minOccurs="0"/>
  357. </xs:sequence>
  358. </xs:complexType>
  359. <xs:complexType name="refType">
  360. <xs:simpleContent>
  361. <xs:extension base="xs:string">
  362. <xs:attribute name="source" type="xs:string" use="required"/>
  363. <xs:attribute name="url" type="cve:urlType" use="required"/>
  364. <xs:attribute name="sig" type="cve:trueOnlyAttribute"/>
  365. <xs:attribute name="adv" type="cve:trueOnlyAttribute"/>
  366. <xs:attribute name="patch" type="cve:trueOnlyAttribute"/>
  367. </xs:extension>
  368. </xs:simpleContent>
  369. </xs:complexType>
  370. <xs:complexType name="vulnSoftType">
  371. <xs:sequence>
  372. <xs:element name="prod" maxOccurs="unbounded">
  373. <xs:annotation>
  374. <xs:documentation> Product wrapper tag. Versions of
  375. this product that are affected by this
  376. vulnerability are listed within this tag.
  377. Attributes: "name" => Product name "vendor" =>
  378. Vendor of this product </xs:documentation>
  379. </xs:annotation>
  380. <xs:complexType>
  381. <xs:sequence>
  382. <xs:element name="vers" maxOccurs="unbounded">
  383. <xs:annotation>
  384. <xs:documentation> Represents a version
  385. of this product that is affected by
  386. this vulnerability. Attributes:
  387. "num" => This version number "prev"
  388. => Indicates that versions previous
  389. to this version number are also
  390. affected by this vulnerability
  391. "edition" => Indicates the edition
  392. associated with the version number
  393. </xs:documentation>
  394. </xs:annotation>
  395. <xs:complexType>
  396. <xs:attribute name="num"
  397. type="xs:string" use="required"/>
  398. <xs:attribute name="prev"
  399. type="cve:trueOnlyAttribute"/>
  400. <xs:attribute name="edition"
  401. type="xs:string"/>
  402. </xs:complexType>
  403. </xs:element>
  404. </xs:sequence>
  405. <xs:attribute name="name" type="xs:string"
  406. use="required"/>
  407. <xs:attribute name="vendor" type="xs:string"
  408. use="required"/>
  409. </xs:complexType>
  410. </xs:element>
  411. </xs:sequence>
  412. </xs:complexType>
  413. <!-- ******************************************************************* -->
  414. <!-- * Simple Types * -->
  415. <!-- ******************************************************************* -->
  416. <xs:simpleType name="descriptSourceType">
  417. <xs:restriction base="xs:NMTOKEN">
  418. <xs:enumeration value="cve"/>
  419. <xs:enumeration value="nvd"/>
  420. </xs:restriction>
  421. </xs:simpleType>
  422. <xs:simpleType name="impactSourceType">
  423. <xs:restriction base="xs:NMTOKEN">
  424. <xs:enumeration value="nvd"/>
  425. </xs:restriction>
  426. </xs:simpleType>
  427. <xs:simpleType name="solsSourceType">
  428. <xs:restriction base="xs:NMTOKEN">
  429. <xs:enumeration value="nvd"/>
  430. </xs:restriction>
  431. </xs:simpleType>
  432. <xs:simpleType name="dateType">
  433. <xs:annotation>
  434. <xs:documentation> Defines date format for NVD. Dates follow the mask "yyyy-mm-dd"
  435. </xs:documentation>
  436. </xs:annotation>
  437. <xs:restriction base="xs:string">
  438. <xs:pattern
  439. value="(19|20)\d\d-((01|03|05|07|08|10|12)-(0[1-9]|[1-2]\d|3[01])|(04|06|09|11)-(0[1-9]|[1-2]\d|30)|02-(0[1-9]|1\d|2\d))"
  440. />
  441. </xs:restriction>
  442. </xs:simpleType>
  443. <xs:simpleType name="urlType">
  444. <xs:annotation>
  445. <xs:documentation> Restricts urls in NVD beyond the xs:anyURI restrictions.
  446. </xs:documentation>
  447. </xs:annotation>
  448. <xs:restriction base="xs:anyURI">
  449. <xs:whiteSpace value="collapse"/>
  450. <xs:pattern value="(news|(ht|f)tp(s)?)://.+"/>
  451. </xs:restriction>
  452. </xs:simpleType>
  453. <xs:simpleType name="trueOnlyAttribute">
  454. <xs:annotation>
  455. <xs:documentation> simpleType used for attributes that are only present when they are
  456. true. Such attributes appear only in the form attribute_name="1".
  457. </xs:documentation>
  458. </xs:annotation>
  459. <xs:restriction base="xs:NMTOKEN">
  460. <xs:enumeration value="1"/>
  461. </xs:restriction>
  462. </xs:simpleType>
  463. <xs:simpleType name="zeroToTen">
  464. <xs:annotation>
  465. <xs:documentation> simpleType used when scoring on a scale of 0-10, inclusive
  466. </xs:documentation>
  467. </xs:annotation>
  468. <xs:restriction base="xs:decimal">
  469. <xs:minInclusive value="0" fixed="true"/>
  470. <xs:maxInclusive value="10" fixed="true"/>
  471. </xs:restriction>
  472. </xs:simpleType>
  473. <xs:simpleType name="CVSSVector">
  474. <xs:annotation>
  475. <xs:documentation>simpleType to describe the CVSS Base Vector </xs:documentation>
  476. </xs:annotation>
  477. <xs:restriction base="xs:string">
  478. <xs:pattern
  479. value="\(AV:[LAN]/AC:[HML]/Au:[NSM]/C:[NPC]/I:[NPC]/A:[NPC]\)"/>
  480. </xs:restriction>
  481. </xs:simpleType>
  482. </xs:schema>