From c1d8cd5a183060cc6a3aa79aa1c1b3665b691e8f Mon Sep 17 00:00:00 2001 From: ccoffin Date: Mon, 16 Sep 2024 16:33:12 -0500 Subject: [PATCH 01/11] Add cpeApplicability block based on NIST NVD CVE API v2.0 configurations block --- schema/CVE_Record_Format.json | 93 +++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index f74450c32c..642b7bc656 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -487,6 +487,87 @@ "required": ["orgId"], "additionalProperties": false }, + "cpeApplicability": { + "properties": { + "operator": { + "type": "string", + "enum": [ + "AND", + "OR" + ] + }, + "negate": { + "type": "boolean" + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/cpe_node" + } + } + }, + "required": [ + "nodes" + ] + }, + "cpe_node": { + "description": "Defines a CPE configuration node in an applicability statement.", + "properties": { + "operator": { + "type": "string", + "enum": [ + "AND", + "OR" + ] + }, + "negate": { + "type": "boolean" + }, + "cpeMatch": { + "type": "array", + "items": { + "$ref": "#/definitions/cpe_match" + } + } + }, + "required": [ + "operator", + "cpeMatch" + ] + }, + "cpe_match": { + "description": "CPE match string or range", + "type": "object", + "properties": { + "vulnerable": { + "type": "boolean" + }, + "criteria": { + "type": "string" + }, + "matchCriteriaId": { + "type": "string", + "format": "uuid" + }, + "versionStartExcluding": { + "type": "string" + }, + "versionStartIncluding": { + "type": "string" + }, + "versionEndExcluding": { + "type": "string" + }, + "versionEndIncluding": { + "type": "string" + } + }, + "required": [ + "vulnerable", + "criteria", + ], + "additionalProperties": false + }, "cnaPublishedContainer": { "description": "An object containing the vulnerability information provided by a CVE Numbering Authority (CNA) for a published CVE ID. There can only be one CNA container per CVE record since there can only be one assigning CNA. The CNA container must include the required information defined in the CVE Rules, which includes a product, version, problem type, prose description, and a reference.", "type": "object", @@ -514,6 +595,12 @@ "affected": { "$ref": "#/definitions/affected" }, + "cpeApplicability": { + "type": "array", + "items": { + "$ref": "#/definitions/cpeApplicability" + } + }, "problemTypes": { "$ref": "#/definitions/problemTypes" }, @@ -620,6 +707,12 @@ "affected": { "$ref": "#/definitions/affected" }, + "cpeApplicability": { + "type": "array", + "items": { + "$ref": "#/definitions/cpeApplicability" + } + }, "problemTypes": { "$ref": "#/definitions/problemTypes" }, From bd13ba390facc67f910720da5185d68412017882 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Tue, 17 Sep 2024 13:44:15 -0500 Subject: [PATCH 02/11] created a shared definition for cpeId and referenced from cpes array and cpeMatch. Referenced shared uuidType and version definitions within cpeMatch. --- schema/CVE_Record_Format.json | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index 642b7bc656..dde2e770d1 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -53,6 +53,13 @@ "type": "string", "pattern": "^CVE-[0-9]{4}-[0-9]{4,19}$" }, + "cpeId": { + "type": "string", + "description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format", + "pattern": "([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9._\\-~%]*){0,6})|(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})", + "minLength": 1, + "maxLength": 2048 + }, "orgId": { "description": "A UUID for an organization participating in the CVE program. This UUID can be used to lookup the organization record in the user registry service.", "$ref": "#/definitions/uuidType" @@ -196,15 +203,12 @@ }, "cpes": { "type": "array", - "description": "Affected products defined by CPE. This is an array of CPE values (vulnerable and not), we use an array so that we can make multiple statements about the same version and they are separate (if we used a JSON object we'd essentially be keying on the CPE name and they would have to overlap). Also, this allows things like cveDataVersion or cveDescription to be applied directly to the product entry. This also allows more complex statements such as \"Product X between versions 10.2 and 10.8\" to be put in a machine-readable format. As well since multiple statements can be used multiple branches of the same product can be defined here.", + "description": "NOTE: Use newer cpeApplicability block for defining CPE data using the CPE Applicability Language. Affected products defined by CPE. This is an array of CPE values (vulnerable and not), we use an array so that we can make multiple statements about the same version and they are separate (if we used a JSON object we'd essentially be keying on the CPE name and they would have to overlap). Also, this allows things like cveDataVersion or cveDescription to be applied directly to the product entry. This also allows more complex statements such as \"Product X between versions 10.2 and 10.8\" to be put in a machine-readable format. As well since multiple statements can be used multiple branches of the same product can be defined here.", "uniqueItems": true, "items": { "title": "CPE Name", - "type": "string", "description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format", - "pattern": "([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9._\\-~%]*){0,6})|(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})", - "minLength": 1, - "maxLength": 2048 + "$ref": "#/definitions/cpeId" } }, "modules": { @@ -543,23 +547,22 @@ "type": "boolean" }, "criteria": { - "type": "string" + "$ref": "#/definitions/cpeId" }, "matchCriteriaId": { - "type": "string", - "format": "uuid" + "$ref": "#/definitions/uuidType" }, "versionStartExcluding": { - "type": "string" + "$ref": "#/definitions/version" }, "versionStartIncluding": { - "type": "string" + "$ref": "#/definitions/version" }, "versionEndExcluding": { - "type": "string" + "$ref": "#/definitions/version" }, "versionEndIncluding": { - "type": "string" + "$ref": "#/definitions/version" } }, "required": [ From e339e8fa0671cfcbbceb26af049147299f823122 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Tue, 17 Sep 2024 15:59:41 -0500 Subject: [PATCH 03/11] removed array from cpeApplicability in both cna and adp. removed stray comma and fixed whitespace issue. --- schema/CVE_Record_Format.json | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index dde2e770d1..53fb8ce9c3 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -53,7 +53,7 @@ "type": "string", "pattern": "^CVE-[0-9]{4}-[0-9]{4,19}$" }, - "cpeId": { + "cpeId": { "type": "string", "description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format", "pattern": "([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9._\\-~%]*){0,6})|(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})", @@ -567,7 +567,7 @@ }, "required": [ "vulnerable", - "criteria", + "criteria" ], "additionalProperties": false }, @@ -599,10 +599,7 @@ "$ref": "#/definitions/affected" }, "cpeApplicability": { - "type": "array", - "items": { - "$ref": "#/definitions/cpeApplicability" - } + "$ref": "#/definitions/cpeApplicability" }, "problemTypes": { "$ref": "#/definitions/problemTypes" @@ -711,10 +708,7 @@ "$ref": "#/definitions/affected" }, "cpeApplicability": { - "type": "array", - "items": { - "$ref": "#/definitions/cpeApplicability" - } + "$ref": "#/definitions/cpeApplicability" }, "problemTypes": { "$ref": "#/definitions/problemTypes" From 17f9295ef6a4559ad9a35a190fa86a1a34702b30 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Wed, 18 Sep 2024 06:58:40 -0500 Subject: [PATCH 04/11] added array back to cpeApplicability as some NVD Records use it. Renamed cpeApplicability definition to cpeApplicabilityElement. --- schema/CVE_Record_Format.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index 53fb8ce9c3..356a8442ef 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -491,7 +491,7 @@ "required": ["orgId"], "additionalProperties": false }, - "cpeApplicability": { + "cpeApplicabilityElement": { "properties": { "operator": { "type": "string", @@ -599,7 +599,10 @@ "$ref": "#/definitions/affected" }, "cpeApplicability": { - "$ref": "#/definitions/cpeApplicability" + "type": "array", + "items": { + "$ref": "#/definitions/cpeApplicabilityElement" + } }, "problemTypes": { "$ref": "#/definitions/problemTypes" @@ -708,7 +711,10 @@ "$ref": "#/definitions/affected" }, "cpeApplicability": { - "$ref": "#/definitions/cpeApplicability" + "type": "array", + "items": { + "$ref": "#/definitions/cpeApplicabilityElement" + } }, "problemTypes": { "$ref": "#/definitions/problemTypes" From 88a44e00a034488796b416b062ab1a92f326f6f3 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Fri, 27 Sep 2024 13:14:09 -0500 Subject: [PATCH 05/11] added new cpe23 definition for use with new cpeApplicability block which supports only CPE 2.3 format. renamed old cpeId definition to cpe22and23 which is referenced by cpes array and supports both CPE 2.2 and 2.3. --- schema/CVE_Record_Format.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index 356a8442ef..25c0debbf0 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -53,13 +53,20 @@ "type": "string", "pattern": "^CVE-[0-9]{4}-[0-9]{4,19}$" }, - "cpeId": { + "cpe22and23": { "type": "string", "description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format", "pattern": "([c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9._\\-~%]*){0,6})|(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})", "minLength": 1, "maxLength": 2048 }, + "cpe23": { + "type": "string", + "description":"Common Platform Enumeration (CPE) Name in 2.3 format", + "pattern": "(cpe:2\\.3:[aho*\\-](:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[*\\-]))(:(((\\?*|\\*?)([a-zA-Z0-9\\-._]|(\\\\[\\\\*?!\"#$%&'()+,/:;<=>@\\[\\]\\^`{|}~]))+(\\?*|\\*?))|[*\\-])){4})", + "minLength": 1, + "maxLength": 2048 + }, "orgId": { "description": "A UUID for an organization participating in the CVE program. This UUID can be used to lookup the organization record in the user registry service.", "$ref": "#/definitions/uuidType" @@ -208,7 +215,7 @@ "items": { "title": "CPE Name", "description":"Common Platform Enumeration (CPE) Name in either 2.2 or 2.3 format", - "$ref": "#/definitions/cpeId" + "$ref": "#/definitions/cpe22and23" } }, "modules": { @@ -547,7 +554,7 @@ "type": "boolean" }, "criteria": { - "$ref": "#/definitions/cpeId" + "$ref": "#/definitions/cpe23" }, "matchCriteriaId": { "$ref": "#/definitions/uuidType" From e20ef083e406ce7f5669bf67cc010e29a77f4f36 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Thu, 10 Oct 2024 11:40:24 -0500 Subject: [PATCH 06/11] added a description to cpeApplicabilityElement --- schema/CVE_Record_Format.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schema/CVE_Record_Format.json b/schema/CVE_Record_Format.json index 25c0debbf0..3b7571f3e5 100644 --- a/schema/CVE_Record_Format.json +++ b/schema/CVE_Record_Format.json @@ -210,7 +210,7 @@ }, "cpes": { "type": "array", - "description": "NOTE: Use newer cpeApplicability block for defining CPE data using the CPE Applicability Language. Affected products defined by CPE. This is an array of CPE values (vulnerable and not), we use an array so that we can make multiple statements about the same version and they are separate (if we used a JSON object we'd essentially be keying on the CPE name and they would have to overlap). Also, this allows things like cveDataVersion or cveDescription to be applied directly to the product entry. This also allows more complex statements such as \"Product X between versions 10.2 and 10.8\" to be put in a machine-readable format. As well since multiple statements can be used multiple branches of the same product can be defined here.", + "description": "Affected products defined by CPE. This is an array of CPE values (vulnerable and not), we use an array so that we can make multiple statements about the same version and they are separate (if we used a JSON object we'd essentially be keying on the CPE name and they would have to overlap). Also, this allows things like cveDataVersion or cveDescription to be applied directly to the product entry. This also allows more complex statements such as \"Product X between versions 10.2 and 10.8\" to be put in a machine-readable format. As well since multiple statements can be used multiple branches of the same product can be defined here. NOTE: Consider using the newer cpeApplicability block for defining CPE data using the CPE Applicability Language which includes more options for defining CPE Names.", "uniqueItems": true, "items": { "title": "CPE Name", @@ -499,6 +499,7 @@ "additionalProperties": false }, "cpeApplicabilityElement": { + "description": "Affected products defined using an implementation of the CPE Applicability Language, mostly copied/forked from the NIST NVD CVE API v2.0 schema (optional). An operator property allows AND or OR logic between CPEs or combinations of CPEs. The negate and vulnerable Boolean properties allow CPEs to be inverted and/or defined as vulnerable or not. Multiple version fields are provided for capturing ranges of products when defining a CPE Match String Range. NOTE: When defining a cpeApplicability block, it is recommended that it align with (as much as possible) the product data provided within the affected block.", "properties": { "operator": { "type": "string", From acd59ed1c9f696de85e5f73f3016f7dfa53f1823 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Thu, 10 Oct 2024 14:37:01 -0500 Subject: [PATCH 07/11] added cpe example in the full-record-advanced-example.json file --- schema/docs/full-record-advanced-example.json | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/schema/docs/full-record-advanced-example.json b/schema/docs/full-record-advanced-example.json index da1532278c..d6aaeb3960 100644 --- a/schema/docs/full-record-advanced-example.json +++ b/schema/docs/full-record-advanced-example.json @@ -96,6 +96,57 @@ ], "defaultStatus": "unaffected" } + ], + "cpeApplicability": [ + { + "nodes": [ + { + "operator": "OR", + "negate": false, + "cpeMatch": [ + { + "vulnerable": true, + "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", + "versionStartIncluding": "1.0.0", + "versionEndExcluding": "1.0.6" + }, + { + "vulnerable": true, + "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", + "versionStartIncluding": "2.1.6", + "versionEndExcluding": "2.1.9" + } + ] + } + ] + }, + { + "operator": "AND", + "nodes": [ + { + "operator": "OR", + "negate": false, + "cpeMatch": [ + { + "vulnerable": false, + "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", + "versionStartIncluding": "2.1.0", + "versionEndExcluding": "2.1.6" + }, + { + "vulnerable": false, + "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", + "versionStartIncluding": "2.1.9" + }, + { + "vulnerable": false, + "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", + "versionStartIncluding": "3.0.0" + } + ] + } + ] + } ], "descriptions": [ { From dde2d4932adefc306ed61a443a406b950c68c71b Mon Sep 17 00:00:00 2001 From: ccoffin Date: Thu, 10 Oct 2024 14:48:46 -0500 Subject: [PATCH 08/11] fix indent in full-record-advanced-example.json file --- schema/docs/full-record-advanced-example.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/schema/docs/full-record-advanced-example.json b/schema/docs/full-record-advanced-example.json index d6aaeb3960..b711cb05d8 100644 --- a/schema/docs/full-record-advanced-example.json +++ b/schema/docs/full-record-advanced-example.json @@ -107,13 +107,13 @@ { "vulnerable": true, "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "1.0.0", + "versionStartIncluding": "1.0.0", "versionEndExcluding": "1.0.6" }, { "vulnerable": true, "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.6", + "versionStartIncluding": "2.1.6", "versionEndExcluding": "2.1.9" } ] @@ -130,18 +130,18 @@ { "vulnerable": false, "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.0", + "versionStartIncluding": "2.1.0", "versionEndExcluding": "2.1.6" }, { "vulnerable": false, "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.9" + "versionStartIncluding": "2.1.9" }, { "vulnerable": false, "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "3.0.0" + "versionStartIncluding": "3.0.0" } ] } From 8f3e8f79da5201824a5b538cd6d8c16dc85b2b7b Mon Sep 17 00:00:00 2001 From: ccoffin Date: Tue, 15 Oct 2024 10:49:21 -0500 Subject: [PATCH 09/11] updated full-record-advanced-example.json with more accurate cpeApplicabilty --- schema/docs/full-record-advanced-example.json | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/schema/docs/full-record-advanced-example.json b/schema/docs/full-record-advanced-example.json index b711cb05d8..61c719f32b 100644 --- a/schema/docs/full-record-advanced-example.json +++ b/schema/docs/full-record-advanced-example.json @@ -99,6 +99,7 @@ ], "cpeApplicability": [ { + "operator": "AND", "nodes": [ { "operator": "OR", @@ -106,47 +107,46 @@ "cpeMatch": [ { "vulnerable": true, - "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "1.0.0", + "criteria": "cpe:2.3:a:example_org:example_enterprise:*:*:*:*:*:*:*:*", + "versionStartIncluding": "1.0.0", "versionEndExcluding": "1.0.6" }, { "vulnerable": true, - "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.6", - "versionEndExcluding": "2.1.9" + "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.6:*:*:*:*:*:*:*" + }, + { + "vulnerable": true, + "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.7:*:*:*:*:*:*:*" + }, + { + "vulnerable": true, + "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.8:*:*:*:*:*:*:*" } ] - } - ] - }, - { - "operator": "AND", - "nodes": [ + }, { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": false, - "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.0", - "versionEndExcluding": "2.1.6" + "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", + "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA" }, { "vulnerable": false, - "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.9" + "criteria": "cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*", + "matchCriteriaId": "387021A0-AF36-463C-A605-32EA7DAC172E" }, - { + { "vulnerable": false, - "criteria": "cpe:2.3:a:example_enterprise:Web-Management-Interface:*:*:*:*:*:*:*:*", - "versionStartIncluding": "3.0.0" + "criteria": "cpe:2.3:h:Some_company:xt-4500:*:*:*:*:*:*:*:*" } ] } ] - } + }, ], "descriptions": [ { From 5de5acebe62e306b7edfc70a10960dc4590a4b0f Mon Sep 17 00:00:00 2001 From: ccoffin Date: Tue, 15 Oct 2024 12:38:39 -0500 Subject: [PATCH 10/11] updated full-record-advanced-example.json with more accurate cpeApplicabilty --- schema/docs/full-record-advanced-example.json | 28 +++++++------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/schema/docs/full-record-advanced-example.json b/schema/docs/full-record-advanced-example.json index 61c719f32b..ea347173ea 100644 --- a/schema/docs/full-record-advanced-example.json +++ b/schema/docs/full-record-advanced-example.json @@ -113,15 +113,9 @@ }, { "vulnerable": true, - "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.6:*:*:*:*:*:*:*" - }, - { - "vulnerable": true, - "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.7:*:*:*:*:*:*:*" - }, - { - "vulnerable": true, - "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.8:*:*:*:*:*:*:*" + "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.6:*:*:*:*:*:*:*", + "versionStartIncluding": "2.1.6", + "versionEndExcluding": "2.1.9" } ] }, @@ -131,17 +125,15 @@ "cpeMatch": [ { "vulnerable": false, - "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", - "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA" + "criteria": "cpe:2.3:o:microsoft:windows:*:*:*:*:*:*:*:*" }, { "vulnerable": false, - "criteria": "cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*", - "matchCriteriaId": "387021A0-AF36-463C-A605-32EA7DAC172E" + "criteria": "cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*" }, { "vulnerable": false, - "criteria": "cpe:2.3:h:Some_company:xt-4500:*:*:*:*:*:*:*:*" + "criteria": "cpe:2.3:h:some_company:xt-4500:*:*:*:*:*:*:*:*" } ] } @@ -151,23 +143,23 @@ "descriptions": [ { "lang": "en", - "value": "OS Command Injection vulnerability parseFilename function of example.php in the Web Management Interface of Example.org Example Enterprise on Windows, macOS, and XT-4500 allows remote unauthenticated attackers to escalate privileges. This issue affects: 1.0 versions before 1.0.6, 2.1 versions from 2.16 until 2.1.9.", + "value": "OS Command Injection vulnerability parseFilename function of example.php in the Web Management Interface of Example.org Example Enterprise on Windows, macOS, and XT-4500 allows remote unauthenticated attackers to escalate privileges. This issue affects: 1.0 versions before 1.0.6, 2.1 versions from 2.1.6 until 2.1.9.", "supportingMedia": [ { "type": "text/html", "base64": false, - "value": "OS Command Injection vulnerability parseFilename function of example.php in the Web Management Interface of Example.org Example Enterprise on Windows, macOS, and XT-4500 allows remote unauthenticated attackers to escalate privileges.

This issue affects:
  • 1.0 versions before 1.0.6
  • 2.1 versions from 2.16 until 2.1.9.
" + "value": "OS Command Injection vulnerability parseFilename function of example.php in the Web Management Interface of Example.org Example Enterprise on Windows, macOS, and XT-4500 allows remote unauthenticated attackers to escalate privileges.

This issue affects:
  • 1.0 versions before 1.0.6
  • 2.1 versions from 2.1.6 until 2.1.9.
" } ] }, { "lang": "eo", - "value": "OS-komand-injekta vundebleco parseFilename funkcio de example.php en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn. Ĉi tiu afero efikas: 1.0-versioj antaŭ 1.0.6, 2.1-versioj de 2.16 ĝis 2.1.9.", + "value": "OS-komand-injekta vundebleco parseFilename funkcio de example.php en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn. Ĉi tiu afero efikas: 1.0-versioj antaŭ 1.0.6, 2.1-versioj de 2.1.6 ĝis 2.1.9.", "supportingMedia": [ { "type": "text/html", "base64": false, - "value": "OS-komand-injekta vundebleco parseFilename funkcio de example.php en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn.

Ĉi tiu afero efikas:
  • 1.0-versioj antaŭ 1.0.6
  • 2.1-versioj de 2.16 ĝis 2.1.9.
" + "value": "OS-komand-injekta vundebleco parseFilename funkcio de example.php en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn.

Ĉi tiu afero efikas:
  • 1.0-versioj antaŭ 1.0.6
  • 2.1-versioj de 2.1.6 ĝis 2.1.9.
" } ] } From 50dae0b9589cd2f62a1de23c728ef5a8ab464a04 Mon Sep 17 00:00:00 2001 From: ccoffin Date: Tue, 15 Oct 2024 14:12:38 -0500 Subject: [PATCH 11/11] updated full-record-advanced-example.json with more accurate cpeApplicabilty --- schema/docs/full-record-advanced-example.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schema/docs/full-record-advanced-example.json b/schema/docs/full-record-advanced-example.json index ea347173ea..8574e2d713 100644 --- a/schema/docs/full-record-advanced-example.json +++ b/schema/docs/full-record-advanced-example.json @@ -97,7 +97,7 @@ "defaultStatus": "unaffected" } ], - "cpeApplicability": [ + "cpeApplicability": [ { "operator": "AND", "nodes": [ @@ -113,8 +113,8 @@ }, { "vulnerable": true, - "criteria": "cpe:2.3:a:example_org:example_enterprise:2.1.6:*:*:*:*:*:*:*", - "versionStartIncluding": "2.1.6", + "criteria": "cpe:2.3:a:example_org:example_enterprise:*:*:*:*:*:*:*:*", + "versionStartIncluding": "2.1.6", "versionEndExcluding": "2.1.9" } ] @@ -138,7 +138,7 @@ ] } ] - }, + } ], "descriptions": [ {