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

chore: bump up Trivy version to fix CVE-2025-21613 and CVE-2025-21614 #2371

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

afdesk
Copy link
Contributor

@afdesk afdesk commented Jan 9, 2025

Description

This PR bumps up Trivy version (and Go version 1.23) with the commit aquasecurity/trivy@670fbf2

It fixes a message about CVE-2025-21613 and CVE-2025-21614 in go-git, and a linter error:

Error: pkg/utils/dateutil_test.go:25:14: printf: non-constant format string in call to (*testing.common).Errorf (govet)
  				t.Errorf(err.Error())
  				         ^

Before:

Total: 2 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 1)

┌─────────────────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬──────────────────────────────────────────────────────────┐
│           Library           │ Vulnerability  │ Severity │ Status │ Installed Version │ Fixed Version │                          Title                           │
├─────────────────────────────┼────────────────┼──────────┼────────┼───────────────────┼───────────────┼──────────────────────────────────────────────────────────┤
│ github.com/go-git/go-git/v5 │ CVE-2025-21613 │ CRITICAL │ fixed  │ v5.12.0           │ 5.13.0        │ go-git: argument injection via the URL field             │
│                             │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2025-21613               │
│                             ├────────────────┼──────────┤        │                   │               ├──────────────────────────────────────────────────────────┤
│                             │ CVE-2025-21614 │ HIGH     │        │                   │               │ go-git is a highly extensible git implementation library │
│                             │                │          │        │                   │               │ written in pu ......                                     │
│                             │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2025-21614               │
└─────────────────────────────┴────────────────┴──────────┴────────┴───────────────────┴───────────────┴──────────────────────────────────────────────────────────┘

After:

2025-01-09T17:04:59+06:00       INFO    [gobinary] Detecting vulnerabilities...

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@github-actions github-actions bot added the bug label Jan 9, 2025
@afdesk afdesk marked this pull request as ready for review January 9, 2025 12:17
@afdesk afdesk requested a review from simar7 January 9, 2025 12:17
@afdesk afdesk changed the title fix: CVE-2025-21613 and CVE-2025-21614 chore: bump up Trivy version to fix CVE-2025-21613 and CVE-2025-21614 Jan 10, 2025
@github-actions github-actions bot added the misc label Jan 10, 2025
@simar7 simar7 merged commit c8712da into aquasecurity:main Jan 10, 2025
14 checks passed
@afdesk afdesk deleted the fix/git-cve branch January 16, 2025 04:21
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.

2 participants