hashicorp / hashicorp/consul

PRISMA-2023-0056 Reported from Twistlock

Open
#20,605 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

Hello, we ran a twistlock scan and got this finding:

CVE: PRISMA-2023-0056
Image: hashicorp/consul:1.17.2
Description: The github.com/sirupsen/logrus module of all versions is vulnerable to denial of service. Logging more than 64kb of data in a single entry without newlines causes the log writer function to hang indefinitely.
Distro: alpine-3.18.5
Package: github.com/sirupsen/logrus v1.9.0
Package Path: /bin/consul
Info: https://github.com/sirupsen/logrus/issues/1370

I think its coming from here: https://github.com/hashicorp/consul/blob/main/go.mod#L250

Are there plans to bump this dependency?

Contributor guide

Open the contributing guide

Research direction

Start with go.mod around the dependency mentioned near line 250 and compare the pinned github.com/sirupsen/logrus version with the PRISMA-2023-0056 advisory and upstream issue. Done means the vulnerable dependency is addressed and the reported Consul image no longer produces this finding in a Twistlock scan.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.