Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/SK-1318 | Fixed critical security vulnerability #847 (zlib) #787

Merged
merged 16 commits into from
Jan 22, 2025

Conversation

benjaminastrand
Copy link
Contributor

@benjaminastrand benjaminastrand commented Jan 22, 2025

This PR fixes the critical security vulnerability CVE-2023-45853. Code scanning alert on GitHub here.

The vulnerability arises because Debian Bookworm uses an old version (1:1.2.13.dfsg-1) of the C library zlib (used for handling zip files). This version of zlib has a vulnerability which is fixed in version 1:1.3.dfsg+really1.3.1-1+b1 (Debian Security Tracker).

Solution:

  • Temporarily add the Debian Testing (Trixie) repo in the builder and runtime stages, which includes the fixed version of zlib
  • Install the fixed version of zlib
  • Remove the Debian Testing repo

Note
Trivy doesn't pick up on this solution. It sees that Debian Bookworm is used, and assumes that the vulnerable version (1:1.2.13.dfsg-1) of zlib is installed. Therefor this vulnerability ID has been added to .trivyignore, since we know that it has been fixed. See this discussion on Trivy's GitHub about solving this problem.

@benjaminastrand benjaminastrand merged commit 68d946c into master Jan 22, 2025
18 checks passed
@benjaminastrand benjaminastrand deleted the fix/SK-1318 branch January 22, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants