Vulnerability Exploitability eXchange
| Type | Machine-readable vulnerability status |
|---|---|
| Also known as | VEX |
| Requirements | CISA, Minimum Requirements for VEX 1.0.0 (April 2023) |
| Formats | CSAF 2.0 (csaf_vex profile), CycloneDX, OpenVEX |
| Statuses | not_affected, affected, fixed, under_investigation |
| Related | SBOM, CVE, SCA |
Vulnerability Exploitability eXchange (VEX) is a machine-readable way for a software supplier, or a third party, to declare whether a product is affected by a specific known vulnerability.1 Without it, a scanner that finds a flawed component in a product's SBOM raises an alert for the CVE with no word from the supplier on how the case stands.2 A VEX statement adds the supplier's finding on whether that flaw can be exploited in the context of that product,3 and a scanner such as Trivy drops the findings it marks as not affected.4
The minimum fields are set out in a CISA paper, version 1.0.0 of April 2023, apart from any file format. It was not written through a formal standards process and states that it is neither CISA policy nor binding on anyone. At the time it named three formats able to carry VEX: the security advisory format CSAF, the SBOM format CycloneDX (see CycloneDX and SPDX) and OpenVEX, a small format made only for VEX.12
Statements and documents
The unit of VEX is the statement: one status, for one vulnerability, applied to one or more products. Statements live inside a document, which carries an identifier, a version number, an author and two timestamps (first issued and last updated). The version must rise whenever anything in the document changes. The author is a person or an organisation; a program that generated the file is recorded separately, as tooling. When the status differs for part of the listed products, that part needs its own statement.1
Product identifiers should match the ones in the product's SBOM, and vulnerabilities should use public identifiers such as CVE numbers.1 OpenVEX recommends a Package URL for each product.2 A statement may also name a subcomponent, which covers a frequent case: a library that is affected, inside a product that is not.1
| CISA and OpenVEX | CSAF 2.0 | Closest CycloneDX state | Meaning, and what else the statement must carry |
|---|---|---|---|
not_affected | known_not_affected | not_affected | No fix or mitigation needed. A justification label, or a free-text impact statement. |
affected | known_affected | exploitable | The product is affected. An action statement on how to fix or reduce the risk. |
fixed | fixed | resolved | The listed versions contain a fix. |
under_investigation | under_investigation | in_triage | Not yet known; expected to change when the analysis ends. |
CycloneDX adds two states of its own: false_positive, for a vulnerability wrongly linked to the component, and resolved_with_pedigree, a fix backed by commit history or diffs.6
Statements are dated, and a newer statement about the same product and vulnerability replaces an older one. A supplier can publish under_investigation when a CVE is published, affected with interim advice once the analysis confirms it, and fixed after the patch ships; without that last statement, scanners keep flagging the patched release.2 VEX assumes no default status for anything its statements leave out, and a supplier does not have to list every product it makes.1
Justifications
A not_affected statement should give one of five fixed labels, and must give a free-text impact statement when it gives none:1
component_not_present: the vulnerable component is not part of the product.vulnerable_code_not_present: the component is included, but the build or its configuration left the flawed code out.vulnerable_code_not_in_execute_path: the flawed code ships, but the product never calls it.vulnerable_code_cannot_be_controlled_by_adversary: the code runs, but an attacker has no way to steer it.inline_mitigations_already_exist: protections built into the product stop every known form of the attack, and the user cannot switch them off.
OpenVEX discourages text on its own, since software cannot act on prose, and asks for a label with optional text. It also notes that the last two labels can be hard to prove, and that built-in mitigations have often been bypassed with small changes to existing exploit code.2 CycloneDX defines nine justifications of its own, among them code_not_reachable, requires_configuration and protected_at_perimeter.6
Example: Log4Shell and Spring Boot
The Log4j flaw CVE-2021-44228, reported in December 2021, let an attacker run code remotely. Spring Boot's default logging starter includes the log4j-api and log4j-to-slf4j jars, and the Spring team wrote that these cannot be exploited by themselves: only applications that had moved to log4j-core and wrote user input into log messages were exposed.7 The OpenVEX specification turns this into its worked example, a document Spring could have issued to stop false alerts (shortened here):2
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "https://openvex.dev/docs/public/vex-2e67563e1282...",
"author": "Spring Builds",
"timestamp": "2023-01-16T19:07:16-06:00",
"version": 1,
"statements": [{
"vulnerability": { "name": "CVE-2021-44228" },
"products": [
{ "@id": "pkg:maven/org.springframework.boot/spring-boot@2.6.0-M3" }
],
"status": "not_affected",
"justification": "vulnerable_code_not_in_execute_path"
}]
}Publishing and reading VEX
In CSAF 2.0, VEX is profile 5: a document of category csaf_vex that lists product IDs under the four statuses. Each product marked not affected needs an impact statement, as a machine-readable flag or as text, and each affected product needs a remediation entry.5 Red Hat publishes one CSAF VEX file per CVE, covering every Red Hat product the CVE relates to. It released them in beta in October 2023, declared them ready for production on 10 July 2024 and at the same time moved its older vulnerability data in the OVAL v2 format into maintenance mode, with critical bug fixes only.8
Scanners apply VEX by filtering. Trivy, where the feature is marked experimental, takes a --vex option that can point at a local file, a VEX repository, attestations stored in a container registry, or files an SBOM refers to; several can be combined, and their order sets which one wins.9 For a CycloneDX SBOM and a separate VEX file the command is:4
trivy sbom trivy.sbom.cdx --vex trivy.vex.cdxTrivy matches statements to findings by Package URL, so the product identifier sets how much a statement hides. A statement naming a whole container image as the product suppresses that CVE everywhere in the image; naming the affected package as a subcomponent limits it to that package.4 On the producing side, Go's govulncheck reads source code or a compiled binary without running it (static analysis) to keep only the vulnerabilities that could affect the application, and writes the result as OpenVEX with -format openvex.10
Trust
A VEX file removes findings, so a mistaken or forged one hides a real vulnerability from the tools that read it. The requirements allow statements from the supplier or from a third party. Documents and statements should be signed, with the author's identity bound to the signing key; delivery over HTTPS may be enough when the reader trusts both the certificate and the author.1 Red Hat ships a detached signature with each archive of its VEX files.8 For deciding what to patch among the vulnerabilities that remain, see Known Exploited Vulnerabilities catalog and Stakeholder-Specific Vulnerability Categorization.
See also
- Software bill of materials
- CycloneDX and SPDX
- Software composition analysis
- Vulnerable dependencies
- Common Vulnerabilities and Exposures
- OSV
- Known Exploited Vulnerabilities catalog
- Category: Software supply chain
- Category: Testing and standards
References
- a b c d e f g h i CISA (April 2023). "Minimum Requirements for Vulnerability Exploitability eXchange (VEX)", version 1.0.0. cisa.gov.
- a b c d e f "OpenVEX Specification v0.2.0" (draft). openvex/spec, GitHub.
- back "Vulnerability Exploitability eXchange (VEX)". CycloneDX. OWASP Foundation.
- a b c "Local VEX Files". Trivy documentation. Aqua Security.
- a b OASIS. "Common Security Advisory Framework Version 2.0", section 4.5 Profile 5: VEX. OASIS Standard.
- a b c "bom-1.6.schema.json", definitions impactAnalysisState and impactAnalysisJustification. CycloneDX specification, GitHub. OWASP Foundation.
- back Webb, Phil (10 December 2021). "Log4J2 Vulnerability and Spring Boot". Spring Blog.
- a b Spencer, Justin; Roguski, Przemysław (10 July 2024). "Red Hat VEX files for CVEs are now generally available". Red Hat Blog.
- back "Vulnerability Exploitability Exchange (VEX)". Trivy documentation. Aqua Security.
- back "govulncheck". pkg.go.dev. The Go Authors.
External links
- Red Hat CSAF VEX files, Red Hat Product Security