Skip to content

bug(nuget): Trivy doesn’t detect vulns when the case of the found package differs from the package in the GitHub advisory database. #9451

@DmitriyLewen

Description

@DmitriyLewen

Description

The GitHub advisory database contains different cases for the same packages (e.g. Microsoft.NetCore.App.Runtime.linux-musl-x64 and Microsoft.NETCore.App.Runtime.linux-musl-x64).
We talked about automation with GitHub to fix this (see github/advisory-database#4440), but it looks like similar cases still exist:

Image

Microsoft doesn’t state this directly, but there is indirect evidence that .NET packages are case-sensitive:

Solution

  • We need to convert nuget advisories to lowercase in trivy-db.
  • Use lowercase for nuget packages when finding advisories.

Related Discussions

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions