Skip to content

Add artifactID/artifactType to product in affected array #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion schema/CVE_Record_Format.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,21 @@
},
"additionalProperties": false
}
},
"artifactID": {
"type": "string",
"pattern": "^gitoid:blob:sha256:[0-9a-f]{64}$",
"description": "The OmniBOR Artifact ID of the artifact to be matched against.",
"examples": [
"gitoid:blob:sha256:9f64df92367881be21e23567a31a8ce01994d98b69d28917b5c132ce32a8e6c8",
"gitoid:blob:sha256:09c825ac02df9150e4f93d12ba1da5d1ff5846c3e62503c814aa3a300c535772",
"gitoid:blob:sha256:230f3515d1306690815bd9c3da0d15d8b6fcf43894d17100eb44b6d329a92f61"
]
},
"artifactType": {
"type": "string",
"enum": ["artifact", "buildInput"],
"description": "Specifies how consumers of the Artifact ID should search for matches. If the 'target' is 'artifact', then the Artifact ID is identifying an artifact which should be searched for directly (for example, within a file system by matching against Artifact IDs for files). If the 'target' is 'build_input' then the Artifact ID is identifying a build input, and consumers should match the Artifact ID against IDs found in OmniBOR Input Manifests for their software."
}
}
},
Expand Down Expand Up @@ -778,7 +793,13 @@
"type": "array",
"description": "List of affected products.",
"minItems": 1,
"items": {"$ref": "#/definitions/product"}
"items": {"$ref": "#/definitions/product"},
"contains": {
"anyOf": [
{ "required": ["vendor", "product"] },
{ "required": ["collectionURL", "packageName"] }
]
}
},
"description": {
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions schema/docs/cnaContainer-advanced-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
}
],
"defaultStatus": "unaffected"
},
{
"vendor": "Example.org",
"product": "Example Enterprise",
"artifactID": "gitoid:blob:sha256:fee53a18d32820613c0527aa79be5cb30173c823a9b448fa4817767cc84c6f03",
"artifactType": "artifact",
"defaultStatus": "affected"
}
],
"cpeApplicability": [
Expand Down
9 changes: 8 additions & 1 deletion schema/docs/full-record-advanced-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@
}
],
"defaultStatus": "unaffected"
},
{
"vendor": "Example.org",
"product": "Example Enterprise",
"artifactID": "gitoid:blob:sha256:fee53a18d32820613c0527aa79be5cb30173c823a9b448fa4817767cc84c6f03",
"artifactType": "artifact",
"defaultStatus": "affected"
}
],
"cpeApplicability": [
Expand Down Expand Up @@ -162,7 +169,7 @@
"value": "OS-komand-injekta vundebleco <tt>parseFilename</tt> funkcio de <tt>example.php</tt> en la Web Administrado-Interfaco de Example.org Example Enterprise ĉe Windows, macOS kaj XT-4500 permesas al malproksimaj neaŭtentikigitaj atakantoj eskaladi privilegiojn.<br><br> Ĉi tiu afero efikas:<br><ul><li>1.0-versioj antaŭ 1.0.6</li><li>2.1-versioj de 2.1.6 ĝis 2.1.9.</li></ul>"
}
]
}
}
],
"metrics": [
{
Expand Down