CVE-2023-24827:Password disclosure vulnerability in Syft v0.69.0 and v0.69.1 leaks SYFT_ATTEST_PASSWORD environment variable in logs and JSON output.

splash
Back

Description Preview

A password disclosure vulnerability (CWE-532) was discovered in Syft versions v0.69.0 and v0.69.1. Syft, a CLI tool and Go library for generating Software Bill of Materials (SBOM) from container images and filesystems, leaks the password stored in the SYFT_ATTEST_PASSWORD environment variable. This environment variable is used to decrypt the private key during the signing process while generating SBOM attestations. The credentials are leaked in two ways: in the syft logs when verbose logging is enabled (-vv or -vvv flags) and in the attestation or SBOM when the syft-json format is used. Since v0.69.0, any generated attestations are uploaded to the OCI registry, potentially exposing credentials in the attestation payload.

Overview

The vulnerability affects users of Syft v0.69.0 and v0.69.1 who have the SYFT_ATTEST_PASSWORD environment variable set with credentials, regardless of whether the attest command is being used. The password disclosure occurs in debug logs and in JSON output formats. This could lead to unauthorized access to private keys used for SBOM attestations, potentially compromising the integrity and security of the software supply chain. Users who do not have the SYFT_ATTEST_PASSWORD environment variable set are not affected by this issue.

Remediation

Users should upgrade to Syft v0.70.0 or later, which contains the fix for this vulnerability (commit 9995950c70e849f9921919faffbfcf46401f71f3). There are no workarounds for this vulnerability other than upgrading. If you have used affected versions with the SYFT_ATTEST_PASSWORD environment variable set, you should consider:

  1. Rotating any credentials that may have been leaked
  2. Checking OCI registries for potentially compromised attestations
  3. Regenerating attestations using the patched version
  4. Reviewing your environment for any logs that might contain the exposed credentials

References

  1. Patch: https://github.com/anchore/syft/commit/9995950c70e849f9921919faffbfcf46401f71f3
  2. Advisory: https://github.com/anchore/syft/security/advisories/GHSA-jp7v-3587-2956
  3. CWE-532: Information Exposure Through Log Files

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background