View vulnerability reports

Software vulnerabilities are weaknesses that can either cause an accidentalsystem failure or result in malicious activity. For more information, seeVulnerability reports.

This document describes how to set up your VMs using VM Manager andview the vulnerability reports for your operating systems.

Before you begin

Supported operating systems

For the full list of operating systems and versions for which you can getvulnerability reports using VM Manager, seeOperating system details.

Required roles and permissions

To get the permissions that you need to view vulnerability reports, ask your administrator to grant you the following IAM roles on the project:

For more information about granting roles, seeManage access to projects, folders, and organizations.

You might also be able to get the required permissions throughcustom roles or otherpredefined roles.

In addition to these roles, to access Compute Engine resources by usingthe Google Cloud console, you must have a role that contains thecompute.projects.get permission on the project.

View vulnerability reports

To view vulnerability reports, you can use any of the following options:

View vulnerability report using the gcloud CLI or API

Use one of the following methods to view vulnerability reports for your VMs.

Console

To view OS vulnerability reports for a VMby using the Google Cloud console, perform the following steps:

  1. In the Google Cloud console, go to theVM instances page.

    Go to VM instances

  2. Click the name of the instance for which you want to view the OSinformation.TheInstance details page appears.
  3. Click theOS info tab.
    To view OS inventory data, you must enable VM Manager.If Google Cloud console prompts you to enable VM Manager,select one of the following options:
    • Enable for current project: enables VM Manager for allVMs in the selected project
    • Enable for this VM: enables VM Manager only for theselected VM
  4. Review the list of OS vulnerabilities in theOS info tab.

gcloud

  • To view vulnerability reports for VMs in a specific zone, use theos-config vulnerability-reports list command.

    For example, to list all the VMs that have inventory data, run thefollowing command:

    gcloud compute os-config vulnerability-reports list \   --location=ZONE

    ReplaceZONE with the zone where the VM is located.

    Example

    gcloud compute os-config vulnerability-reports list \   --location=us-west2-a

    Example output

    INSTANCE_ID         VULNERABILITY_COUNT  UPDATE_TIME29255009728795105   2                    2021-04-13T19:10:10.303046Z307058717116242358  1                    2021-04-13T19:10:10.303046Z
  • To view vulnerability report for a specific VM, run theos-config vulnerability-reports describe commandspecifying theINSTANCE_ID returned from the previous step or theINSTANCE_NAME.

    gcloud compute os-config vulnerability-reports describeVM_NAME \   --location=ZONE

    Replace the following:

    • VM_NAME: the name for your VM
    • ZONE: the zone where the VM instance is located

    Example

    gcloud compute os-config vulnerability-reports describe vm1-centos \   --location=us-west2-a

    Example output

    ┌───────────────────────────────────────────────────────────────────┐│                          Vulnerabilities                          │├──────────────────┬──────────┬───────────────┬─────────────────────┤│       CVE        │ SEVERITY │ CVSS_V3_SCORE │     CREATE_TIME     │├──────────────────┼──────────┼───────────────┼─────────────────────┤│ CVE-2012-6655    │ LOW      │ 3.3           │ 2021-04-29T22:19:53 ││ CVE-2016-1585    │ MEDIUM   │ 9.8           │ 2021-04-29T22:19:53 ││ CVE-2016-2781    │ LOW      │ 6.5           │ 2021-04-29T22:19:53 ││ CVE-2019-7306    │ LOW      │ 7.5           │ 2021-04-29T22:19:53 ││ CVE-2020-13776   │ LOW      │ 6.7           │ 2021-04-29T22:19:53 ││ CVE-2021-31879   │ MEDIUM   │ 6.1           │ 2021-05-05T06:11:53 │└──────────────────┴──────────┴───────────────┴─────────────────────┘name: projects/384587888288/locations/us-west2-a/instances/29255009728795105/vulnerabilityReportupdateTime: '2021-05-11T22:29:50'

REST

  • To view vulnerability reports for VMs in a specific zone,create aGET request to theprojects.locations.instances.vulnerabilityReports method.

    GET https://osconfig.googleapis.com/v1/projects/PROJECT_ID/locations/ZONE/instances/–/vulnerabilityReports

    Replace the following:

    • PROJECT_ID: your project ID
    • ZONE: the zone where the VMsare located
  • To view vulnerability report for a specific VM, createaGET request to theprojects.locations.instances.getVulnerabilityReport method.

    GET https://osconfig.googleapis.com/v1/projects/PROJECT_ID/locations/ZONE/instances/INSTANCE/vulnerabilityReport

    Replace the following:

    • PROJECT_ID: your project ID
    • ZONE: the zone where the VM instance is located
    • INSTANCE: specify either the instanceID or the name for your VM

View vulnerability reports using the Security Command Center dashboard

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.

Security Command Center is Google Cloud's centralized vulnerability and threat reportingservice.

If you are a Security Command Centerpremium tier user, you canaccess vulnerability report data for the operating systems that arerunning on VMs across your organization. On theFindings page in theSecurity Command Center dashboard, you can review theCommon Vulnerabilities and Exposures (CVE) IDs for vulnerabilities that areclassified asHIGH orCRITICAL severity.

For information about using the Security Command Center dashboard to access and reviewoperating system vulnerability data, seeVM Manager.

View vulnerability reports data from Cloud Asset Inventory

OS inventory management stores and forwards inventory and vulnerability report data toCloud Asset Inventory. Cloud Asset Inventory is ametadata inventory service that allows you to view, monitor, and analyze assetsacross Google Cloud.From Cloud Asset Inventory, you can poll the information and view changes in the data.

To access OS inventory and vulnerability report data from Cloud Asset Inventory, you need tocomplete the following setup:

For more information, seeViewing VM Manager data.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.