# CVE-2023-24827: Credential disclosure in syft when SYFT\_ATTEST\_PASSWORD environment variable set in syft

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-200, CWE-532
- **Aliases:** GHSA-jp7v-3587-2956, GO-2023-1533
- **Published:** 2023-02-07T00:07:38.460Z
- **Modified:** 2026-06-17T05:39:56.753Z

## Who should check

- Projects that depend on Go package github.com/anchore/syft (\>= 0.69.0, \< 0.70.0)
- Anyone running anchore syft \>= 0.69.0, \< 0.70.0

## 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.

## Affected and fixed versions

- Go `github.com/anchore/syft`: affected \>= 0.69.0, \< 0.70.0; fixed 0.70.0 (osv)
- anchore syft: \>= 0.69.0, \< 0.70.0 (cvelist)

## Mitigation

- Upgrade github.com/anchore/syft to 0.70.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-24827. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-24827.md
Affected: github.com/anchore/syft >= 0.69.0, < 0.70.0
Fixed in: 0.70.0

Steps:
1. Search this machine and project for github.com/anchore/syft (Go), anchore syft: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-24827 being exploited?

There is no confirmed exploitation: CVE-2023-24827 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-24827?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-24827?

github.com/anchore/syft \>= 0.69.0, \< 0.70.0.

### Is there a fix for CVE-2023-24827?

Yes. Fixed in 0.70.0. Upgrade github.com/anchore/syft to 0.70.0 or later.

### How do I check if I'm affected by CVE-2023-24827?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/anchore/syft/security/advisories/GHSA-jp7v-3587-2956>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-24827>
- patch: <https://github.com/anchore/syft/commit/9995950c70e849f9921919faffbfcf46401f71f3>
- other: <https://github.com/anchore/syft>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-24827>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jp7v-3587-2956> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1533> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-24827> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-24827>
