Aqua Security Trivy < 0.51.2 Credential Leak (GHSA-xcq4-m2r3-cmrj)

medium Nessus Plugin ID 197899

Synopsis

The remote host has an application installed that is affected by a vulnerability.

Description

The version of Aqua Security Trivy installed on the remote host is prior to 0.51.2. It is, therefore, affected by a vulnerability as referenced in the GHSA-xcq4-m2r3-cmrj advisory.

- If a malicious actor is able to trigger Trivy to scan container images from a crafted malicious registry, it could result in the leakage of credentials for legitimate registries such as AWS Elastic Container Registry (ECR), Google Cloud Artifact/Container Registry, or Azure Container Registry (ACR). These tokens can then be used to push/pull images from those registries to which the identity/user running Trivy has access. Systems are not affected if the default credential provider chain is unable to obtain valid credentials. This vulnerability only applies when scanning container images directly from a registry. (CVE-2024-35192)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade Aqua Security Trivy to version 0.51.2 or later.

See Also

http://www.nessus.org/u?277170f1

https://github.com/aquasecurity/trivy/releases

Plugin Details

Severity: Medium

ID: 197899

File Name: aqua_security_trivy_CVE-2024-35192.nasl

Version: 1.2

Type: local

Agent: unix

Family: Misc.

Published: 5/24/2024

Updated: 5/27/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4

Temporal Score: 3

Vector: CVSS2#AV:L/AC:H/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2024-35192

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

Vector: CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:aqua_security:trivy

Required KB Items: installed_sw/Aqua Security Trivy

Exploit Ease: No known exploits are available

Patch Publication Date: 5/20/2024

Vulnerability Publication Date: 5/20/2024

Reference Information

CVE: CVE-2024-35192

IAVB: 2024-B-0065