{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-enterprise-linux-8/json-schema/red-hat-enterprise-linux-8-system-cves-out-schema.json",
  "title": "SystemCvesOut",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-vulnerability-api-openapi.yml#/components/schemas/SystemCvesOut",
  "type": "object",
  "properties": {
    "data": {
      "oneOf": [
        {
          "type": "string",
          "description": "CSV export of the JSON."
        },
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "CVE id."
              },
              "type": {
                "type": "string",
                "description": "Type of the record."
              },
              "attributes": {
                "type": "object",
                "properties": {
                  "business_risk": {
                    "type": "string",
                    "description": "Business risk of the vulnerability."
                  },
                  "business_risk_id": {
                    "type": "integer",
                    "description": "Internal ID of the vulnerability business risk."
                  },
                  "business_risk_text": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Complementary text to the business risk."
                  },
                  "cve_status_id": {
                    "type": "integer",
                    "description": "Internal ID of the CVE status."
                  },
                  "cvss2_score": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "String representation of cvss2 score of the CVE."
                  },
                  "cvss3_score": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "String representation of cvss3 score of the CVE."
                  },
                  "description": {
                    "type": "string",
                    "description": "Description of the CVE."
                  },
                  "first_reported": {
                    "type": "string",
                    "description": "Date of when the CVE was first reported on the system."
                  },
                  "impact": {
                    "type": "string",
                    "description": "Red Hat security impact of the CVE."
                  },
                  "public_date": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "String representation of ISO-8601 formatted date of first public disclosure of the CVE."
                  },
                  "reporter": {
                    "type": "number",
                    "description": "Reporter of the vulnerability, 1 for VMaaS, 2 for security rule, 3 for both VMaaS and rule.",
                    "enum": [
                      0,
                      1,
                      2,
                      3
                    ]
                  },
                  "rule": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "rule_id": {
                        "type": "string",
                        "description": "ID(s) of associated security rule(s)."
                      },
                      "description": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Description of the rule."
                      },
                      "summary": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Summary of the rule."
                      },
                      "reboot_required": {
                        "type": [
                          "boolean",
                          "null"
                        ],
                        "description": "Indicator whter reboot is required to mitigate vulnerability."
                      },
                      "playbook_count": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Number of available Ansible playbooks for remediation/mitigation."
                      },
                      "change_risk": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "Indicates how likely remediation can change environment on the remediatied system."
                      },
                      "kbase_node_id": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "ID of associated Red Hat knowledgebase article."
                      },
                      "generate_autoplaybook": {
                        "type": [
                          "boolean",
                          "null"
                        ],
                        "description": "Indicates whether a playbook should be auto-generated."
                      }
                    },
                    "required": [
                      "change_risk",
                      "description",
                      "kbase_node_id",
                      "playbook_count",
                      "reboot_required",
                      "rule_id",
                      "summary",
                      "generate_autoplaybook"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "description": "Status of the vulnerability for the application's point of view."
                  },
                  "status_id": {
                    "type": "integer",
                    "description": "Internal ID of the vulnerability status."
                  },
                  "status_text": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Complementary text to the status."
                  },
                  "cve_status_text": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Status text to the whole cve."
                  },
                  "synopsis": {
                    "type": "string",
                    "description": "Synopsis of the CVE."
                  },
                  "advisories_list": {
                    "type": "array",
                    "description": "List of advisories for CVE",
                    "items": {
                      "type": "string",
                      "description": "Advisory id"
                    }
                  },
                  "known_exploit": {
                    "type": "boolean",
                    "description": "Shows whether a CVE has known exploits or not"
                  },
                  "advisory_available": {
                    "type": "boolean",
                    "description": "Shows whether a CVE has available advisory or not"
                  },
                  "remediation": {
                    "type": "number",
                    "description": "Type of available remediation, 0 for none, 1 for manual, 2 for playbook.",
                    "enum": [
                      0,
                      1,
                      2
                    ]
                  }
                },
                "required": [
                  "business_risk",
                  "business_risk_id",
                  "business_risk_text",
                  "cve_status_id",
                  "cve_status_text",
                  "cvss2_score",
                  "cvss3_score",
                  "description",
                  "first_reported",
                  "impact",
                  "public_date",
                  "reporter",
                  "rule",
                  "status",
                  "status_id",
                  "status_text",
                  "synopsis",
                  "known_exploit",
                  "advisory_available",
                  "remediation"
                ]
              }
            },
            "required": [
              "id",
              "type",
              "attributes"
            ]
          }
        }
      ]
    },
    "links": {
      "$ref": "#/$defs/Links"
    },
    "meta": {
      "$ref": "#/$defs/MetaCves"
    }
  },
  "required": [
    "data",
    "links",
    "meta"
  ],
  "$defs": {
    "Links": {
      "type": "object",
      "properties": {
        "first": {
          "type": "string",
          "description": "Link to first page."
        },
        "last": {
          "type": "string",
          "description": "Link to last page."
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Link to next page."
        },
        "previous": {
          "type": [
            "string",
            "null"
          ],
          "description": "Link to next page."
        }
      },
      "required": [
        "first",
        "last",
        "next",
        "previous"
      ]
    },
    "Meta": {
      "type": "object",
      "properties": {
        "filter": {
          "type": [
            "string",
            "null"
          ],
          "description": "Full text filter"
        },
        "limit": {
          "type": "integer",
          "description": "Maximum number of paginated results."
        },
        "offset": {
          "type": "integer",
          "description": "First record of paginated response."
        },
        "page": {
          "type": "integer",
          "description": "Page number of paginated response."
        },
        "page_size": {
          "type": "integer",
          "description": "Number of records per page of paginated response."
        },
        "pages": {
          "type": "integer",
          "description": "Total number of pages of paginated response."
        },
        "sort": {
          "type": [
            "string",
            "null"
          ],
          "description": "Sorting filter."
        },
        "total_items": {
          "type": "integer",
          "description": "Total number of records."
        },
        "data_format": {
          "type": "string",
          "description": "Format of the output data, either JSON (default) or CSV."
        }
      },
      "required": [
        "filter",
        "limit",
        "offset",
        "page",
        "page_size",
        "pages",
        "sort",
        "total_items",
        "data_format"
      ]
    },
    "MetaCves": {
      "allOf": [
        {
          "$ref": "#/$defs/Meta"
        },
        {
          "$ref": "#/$defs/MetaPermissions"
        },
        {
          "type": "object",
          "properties": {
            "business_risk_id": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter based on business risk IDs."
            },
            "cvss_from": {
              "type": [
                "number",
                "null"
              ],
              "description": "Filter based on cvss score, starting from the value. Use -1 to include also CVEs with N/A cvss score."
            },
            "cvss_to": {
              "type": [
                "number",
                "null"
              ],
              "description": "Filter based on cvss score, up to the value."
            },
            "public_from": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter CVEs based on their published date, starting from the date."
            },
            "public_to": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter CVEs based on their published date, up to the date."
            },
            "impact": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter based on impact IDs."
            },
            "status_id": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filer based on CVE status ID."
            },
            "rule_presence": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter based on presence of security rule"
            },
            "patch_access": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "If show_advisories=true shows access to patch service else null"
            },
            "first_reported_from": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter system-cve pairs based on first time of detection of CVE."
            },
            "first_reported_to": {
              "type": [
                "string",
                "null"
              ],
              "description": "Filter system-cve pairs based on first time of detection of CVE."
            },
            "cves_without_errata": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "CVEs without Errata feature flag"
            }
          },
          "required": [
            "business_risk_id",
            "cvss_from",
            "cvss_to",
            "public_from",
            "public_to",
            "impact",
            "status_id",
            "rule_presence",
            "patch_access",
            "first_reported_from",
            "first_reported_to",
            "cves_without_errata"
          ]
        }
      ]
    },
    "MetaPermissions": {
      "type": "object",
      "properties": {
        "permissions": {
          "type": "array",
          "description": "Fetched permissions from RBAC for given user",
          "nullable": false,
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "permissions"
      ]
    }
  }
}