CVE-2024-37298 Affecting harbor-scanner-trivy package, versions <0.31.3-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-HARBORSCANNERTRIVY-7414188
  • published2 Jul 2024
  • disclosed1 Jul 2024

Introduced: 1 Jul 2024

CVE-2024-37298  (opens in a new tab)

How to fix?

Upgrade Wolfi harbor-scanner-trivy to version 0.31.3-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream harbor-scanner-trivy package and not the harbor-scanner-trivy package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

gorilla/schema converts structs to and from form values. Prior to version 1.4.1 Running schema.Decoder.Decode() on a struct that has a field of type []struct{...} opens it up to malicious attacks regarding memory allocations, taking advantage of the sparse slice functionality. Any use of schema.Decoder.Decode() on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. Version 1.4.1 contains a patch for the issue.

CVSS Scores

version 3.1