{"schemaVersion":4,"id":"CVE-2023-24827","aliases":["GHSA-jp7v-3587-2956","GO-2023-1533"],"status":"published","duplicateOf":null,"title":"Credential disclosure in syft when SYFT_ATTEST_PASSWORD environment variable set in syft","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 <path-to-key-file>`)  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 >= `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.","dates":{"published":"2023-02-07T00:07:38.460Z","modified":"2025-03-10T21:15:45.771Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.008,"percentile":0.57937,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":0.00899999999999998,"baselineDate":"2026-11-05T00:00:00.000Z","baselineScore":0.00791},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.008,"percentile":0.57937}],"last30":[{"date":"2026-11-05T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00791,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00806,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.008,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.008,"percentile":0.57937}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ANCHORE_SYFT","name":"Syft","source":"github","url":"https://github.com/anchore/syft/security/advisories/GHSA-jp7v-3587-2956","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File","description":"The product writes sensitive information to a log file.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/532.html"}],"affected":[{"vendor":"anchore","product":"syft","name":"syft","label":"syft","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.69.0, < 0.70.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.69.0","startInclusive":true,"end":"0.70.0","endInclusive":false}},{"text":"0.69.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"0.69.0"}},{"text":"0.69.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"0.69.1"}}],"versionsText":"≥ 0.69.0, < 0.70.0 | 0.69.0 | 0.69.1","eol":null,"hubHref":"/vendor/anchore/syft"},{"vendor":"github.com/anchore","product":"syft","name":"github.com/anchore/syft","label":"syft","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/anchore/syft","purlType":"golang","versions":[{"text":"≥ 0.69.0, < 0.70.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.69.0","startInclusive":true,"end":"0.70.0","endInclusive":false}}],"versionsText":"≥ 0.69.0, < 0.70.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/anchore/syft/security/advisories/GHSA-jp7v-3587-2956","label":"github.com/anchore/syft/security/advisories/GHSA-jp7v-3587-2956","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://github.com/anchore/syft/commit/9995950c70e849f9921919faffbfcf46401f71f3","label":"github.com/anchore/syft/commit/9995950c70e849f9921919faffbfcf46401f71f3","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-24827","label":"nvd.nist.gov/vuln/detail/CVE-2023-24827","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/anchore/syft","label":"github.com/anchore/syft","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-02-07T00:07:38.460Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-10T21:15:45.771Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,1,1,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.008,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-03-10T21:15:45.771Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_go","date":"2025-03-10T21:15:45.771Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-03-10T21:15:45.771Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-03-10T21:01:17.191Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"exploit","source":"github","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false}],"epss":{"value":0.008,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T19:02:22.817Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T19:02:23.404Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T19:02:23.619Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T19:01:04.266Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T19:02:21.269Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T19:02:20.792Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T19:23:28.593Z","stale":false,"partial":false}}