CVE-2024-1485
registry-support: decompress can delete files outside scope via relative paths
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), GHSA (medium).
Description
A flaw was found in the decompression function of registry-support. This issue can be triggered if an unauthenticated remote attacker tricks a user into parsing a devfile which uses the `parent` or `plugin` keywords. This could download a malicious archive and cause the cleanup process to overwrite or delete files outside of the archive, which should not be allowed.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| chainguard | gitlab-rails-ce-18.1, gitlab-rails-ce-18.10, gitlab-rails-ce-18.11 and 18 more | 18.1.6-r13 and 15 more |
| go::GitHub Security Advisory Go | github.com/devfile/registry-support/registry-library | 0.0.0-20240206 |
Show all 22 entries from 2 sources
| Source | Package | Fixed in |
|---|---|---|
| chainguard | gitlab-rails-ce-18.1 | 18.1.6-r13 |
| chainguard | gitlab-rails-ce-18.10 | 18.10.8-r2 |
| chainguard | gitlab-rails-ce-18.11 | 18.11.5-r1 |
| chainguard | gitlab-rails-ce-18.4 | 0 |
| chainguard | gitlab-rails-ce-18.5 | 18.5.7-r1 |
| chainguard | gitlab-rails-ce-18.6 | 18.6.8-r2 |
| chainguard | gitlab-rails-ce-18.7 | 18.7.7-r2 |
| chainguard | gitlab-rails-ce-18.8 | 18.8.11-r1 |
| chainguard | gitlab-rails-ce-18.9 | 18.9.8-r3 |
| chainguard | gitlab-rails-ce-19.0 | 19.0.3-r3 |
| chainguard | gitlab-rails-ce-19.1 | 19.1.1-r4 |
| chainguard | gitlab-rails-ce-fips-18.1 | 18.1.6-r16 |
| chainguard | gitlab-rails-ce-fips-18.10 | 18.10.8-r3 |
| chainguard | gitlab-rails-ce-fips-18.11 | 18.11.5-r1 |
| chainguard | gitlab-rails-ce-fips-18.5 | 18.5.7-r1 |
| chainguard | gitlab-rails-ce-fips-18.6 | 18.6.8-r2 |
| chainguard | gitlab-rails-ce-fips-18.7 | 18.7.7-r2 |
| chainguard | gitlab-rails-ce-fips-18.8 | 18.8.11-r1 |
| chainguard | gitlab-rails-ce-fips-18.9 | 18.9.8-r1 |
| chainguard | gitlab-rails-ce-fips-19.0 | 19.0.3-r2 |
| chainguard | gitlab-rails-ce-fips-19.1 | 19.1.1-r2 |
| go::GitHub Security Advisory Go | github.com/devfile/registry-support/registry-library | 0.0.0-20240206 |
References
- https://access.redhat.com/security/cve/CVE-2024-1485
- https://bugzilla.redhat.com/show_bug.cgi?id=2264106
- https://github.com/advisories/GHSA-84xv-jfrm-h4gm
- https://github.com/devfile/registry-support
- https://github.com/devfile/registry-support/commit/0e44b9ca6d03fac4fc3f77d37656d56dc5defe0d
- https://github.com/devfile/registry-support/pull/197
- https://nvd.nist.gov/vuln/detail/CVE-2024-1485
- https://www.cve.org/CVERecord?id=CVE-2024-1485