{"answers":{"affected":"3 open source packages ship an affected version, including github.com/anchore/syft. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-24827 exists.","fix":"Upgrade github.com/anchore/syft to 0.70.0 or later.","what":"CVE-2023-24827 is a medium-severity vulnerability in anchore syft, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-24827 and fix it if it is affected.\n\nWhat it is: CVE-2023-24827 is a medium-severity vulnerability in anchore syft, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-24827 exists.\n\nAffected packages and fixed versions:\n- github.com/anchore/syft (Go): affected from 0.69.0; fixed in 0.70.0\n- github.com/anchore/syft (Go): affected from 0.69.0; fixed in 0.70.0\n- github.com/anchore/syft (Go): affected from 0.69.0; fixed in 0.70.0\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-2023-24827/ (Markdown: https://insights.sbomify.com/CVE-2023-24827/index.md)","id":"CVE-2023-24827","markdown":"https://insights.sbomify.com/CVE-2023-24827/index.md","name":"CVE-2023-24827","record":{"aliases":["GHSA-jp7v-3587-2956","GO-2023-1533"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"SBOM generation tool","requires_auth":"none","summary":"Attackers can read sensitive passwords from logs or SBOM attestations if the SYFT_ATTEST_PASSWORD environment variable is set.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"syft","vendor":"anchore"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"syft is a a CLI tool and Go library for generating a Software Bill of Materials (SBOM) from container images and filesystems. A password disclosure flaw was found in Syft versions v0.69.0 and v0.69.1. This flaw leaks the password stored in the SYFT_ATTEST_PASSWORD environment variable. The `SYFT_ATTEST_PASSWORD` environment variable is for the `syft attest` command to generate attested SBOMs for the given container image. This environment variable is used to decrypt the private key (provided with `syft attest --key \u003cpath-to-key-file\u003e`)  during the signing process while generating an SBOM attestation. This vulnerability affects users running syft that have the `SYFT_ATTEST_PASSWORD` environment variable set with credentials (regardless of if the attest command is being used or not). Users that do not have the environment variable `SYFT_ATTEST_PASSWORD` set are not affected by this issue. The credentials are leaked in two ways: in the syft logs when `-vv` or `-vvv` are used in the syft command (which is any log level \u003e= `DEBUG`) and in the attestation or SBOM only when the `syft-json` format is used. Note that as of v0.69.0 any generated attestations by the `syft attest` command are uploaded to the OCI registry (if you have write access to that registry) in the same way `cosign attach` is done. This means that any attestations generated for the affected versions of syft when the `SYFT_ATTEST_PASSWORD` environment variable was set would leak credentials in the attestation payload uploaded to the OCI registry. This issue has been patched in commit `9995950c70` and has been released as v0.70.0. There are no workarounds for this vulnerability. Users are advised to upgrade.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Credential disclosure in syft when SYFT_ATTEST_PASSWORD environment variable set in syft","id":"CVE-2023-24827","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Use of Cryptographically Weak Pseudo-Random Number Generator in Onedev","id":"CVE-2023-24828"},"packages":[{"ecosystem":"Go","fixed":["0.70.0"],"introduced":["0.69.0"],"last_affected":[],"package":"github.com/anchore/syft","purl":null,"source":"GHSA-jp7v-3587-2956"},{"ecosystem":"Go","fixed":["0.70.0"],"introduced":["0.69.0"],"last_affected":[],"package":"github.com/anchore/syft","purl":"pkg:golang/github.com/anchore/syft","source":"GHSA-jp7v-3587-2956"},{"ecosystem":"Go","fixed":["0.70.0"],"introduced":["0.69.0"],"last_affected":[],"package":"github.com/anchore/syft","purl":"pkg:golang/github.com/anchore/syft","source":"GO-2023-1533"}],"prev":{"headline":"Usage of Uninitialized Timer during forwarding of Fragments with SFR","id":"CVE-2023-24826"},"products":["syft"],"published":"2023-02-07","related":[{"cvss_score":5.3,"headline":"Syft improper temporary file cleanup","id":"CVE-2026-33481","kev_date_added":null,"published":"2026-03-26"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["anchore"]},"summary":"Attackers can read sensitive passwords from logs or SBOM attestations if the SYFT_ATTEST_PASSWORD environment variable is set.","url":"https://insights.sbomify.com/CVE-2023-24827/"}