GHSA-rjcw-vg7j-m9rc

Suggest an improvement
Source
https://github.com/advisories/GHSA-rjcw-vg7j-m9rc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-rjcw-vg7j-m9rc/GHSA-rjcw-vg7j-m9rc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rjcw-vg7j-m9rc
Aliases
Downstream
Related
Published
2026-03-20T20:46:29Z
Modified
2026-03-27T21:20:04.131335Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Syft improper temporary file cleanup
Details

Impact

Syft versions before v1.42.3 would not properly cleanup temporary storage if the temporary storage was exhausted during a scan. When scanning archives Syft will unpack those archives into temporary storage then inspect the unpacked contents. Under normal operation Syft will remove the temporary data it writes after completing a scan.

This vulnerability would affect users of Syft that were scanning content that could cause Syft to fill the temporary storage that would then cause Syft to raise an error and exit. When the error is triggered Syft would exit without properly removing the temporary files in use. In our testing this was most easily reproduced by scanning very large artifacts or highly compressed artifacts such as a zipbomb.

Because Syft would not clean up its temporary files, the result would be filling temporary file storage preventing future runs of Syft or other system utilities that rely on temporary storage being available.

Patches

The patch has been released in v1.42.3

Syft now cleans up temporary files when an error condition is encountered.

Workarounds

There are no workarounds for this vulnerability in Syft. Users that find their temporary storage depleted can manually remove the temporary files.

Database specific
{
    "github_reviewed": true,
    "severity": "MODERATE",
    "nvd_published_at": "2026-03-26T18:16:29Z",
    "cwe_ids": [
        "CWE-460"
    ],
    "github_reviewed_at": "2026-03-20T20:46:29Z"
}
References

Affected packages

Go / github.com/anchore/syft

Package

Name
github.com/anchore/syft
View open source insights on deps.dev
Purl
pkg:golang/github.com/anchore/syft

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.42.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-rjcw-vg7j-m9rc/GHSA-rjcw-vg7j-m9rc.json"