{"answers":{"affected":"3 open source packages ship an affected version, including github.com/aquasecurity/trivy.","exploited":"There is no known exploitation of CVE-2024-35192 in the wild and no public exploit code.","fix":"Upgrade github.com/aquasecurity/trivy to 0.51.2 or later.","what":"CVE-2024-35192 is a medium-severity vulnerability in aquasecurity trivy, published on 20 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-35192 and fix it if it is affected.\n\nWhat it is: CVE-2024-35192 is a medium-severity vulnerability in aquasecurity trivy, published on 20 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-35192 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.51.2\n- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.51.2\n- github.com/aquasecurity/trivy (Go): affected all versions; fixed in 0.51.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35192/ (Markdown: https://insights.sbomify.com/CVE-2024-35192/index.md)","id":"CVE-2024-35192","markdown":"https://insights.sbomify.com/CVE-2024-35192/index.md","name":"CVE-2024-35192","record":{"aliases":["GHSA-xcq4-m2r3-cmrj","GO-2024-2870","openSUSE-SU-2024:14030-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Container security scanner","requires_auth":"none","summary":"Trivy may leak cloud registry credentials when scanning images from malicious registries, allowing attackers to access legitimate container repositories.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"description":"Trivy is a security scanner. Prior to 0.51.2, 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. This vulnerability is fixed in 0.51.2.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Trivy possibly leaks registry credential when scanning images from malicious registries","id":"CVE-2024-35192","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Stacklok Minder vulnerable to denial of service from maliciously crafted templates","id":"CVE-2024-35194"},"packages":[{"ecosystem":"Go","fixed":["0.51.2"],"introduced":["0"],"last_affected":[],"package":"github.com/aquasecurity/trivy","purl":null,"source":"GHSA-xcq4-m2r3-cmrj"},{"ecosystem":"Go","fixed":["0.51.2"],"introduced":["0"],"last_affected":[],"package":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","source":"GHSA-xcq4-m2r3-cmrj"},{"ecosystem":"Go","fixed":["0.51.2"],"introduced":["0"],"last_affected":[],"package":"github.com/aquasecurity/trivy","purl":"pkg:golang/github.com/aquasecurity/trivy","source":"GO-2024-2870"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.52.0-1.1"],"introduced":["0"],"last_affected":[],"package":"trivy","purl":"pkg:rpm/opensuse/trivy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14030-1"}],"prev":{"headline":"verbb/formie Server-Side Template Injection for variable-enabled settings","id":"CVE-2024-35191"},"products":["trivy"],"published":"2024-05-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["aquasecurity"]},"summary":"Trivy may leak cloud registry credentials when scanning images from malicious registries, allowing attackers to access legitimate container repositories.","url":"https://insights.sbomify.com/CVE-2024-35192/"}