-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Depends on vulnerable libraries #3374
Comments
Thanks for the report, but the lockfile (usr/lib/ruby/gems/2.5.0/gems/http_parser.rb-0.6.0/Gemfile.lock) isn't used to install & run fluentd. For example, td-agent 4.1.1 doesn't include such old gems:
You can confirm it also by actual released packages: https://www.fluentd.org/download |
@ashie - can u please explain why this was closed? I see the dependency for http_parser 0.6 in the spec , and http_parser 0.6 depends on these old gems. So all scanning tools are flagging this and the root cause is fluentd depending on http_parser 0.6 (which onws this lock file) |
I already explained, please see above. To determine dependency on installing fluentd, gem or bundler doesn't use http_parser's Gemfile.lock, it uses http_parser.gemspec instead.
As you see, it doesn't lock to problematic versions of such gems, so that latest versions will be used in usual. BTW, probably there is no particular reason that fluentd locks http_parser's version. |
I mistook http_parser and http-parser. |
@ashie thanks. yes, there is no newer version for http_parser. Is it safe to delete the gem lock for http_parser ? |
Yes. |
I can exclude this from my scan, but our customers scan and complain about this. Is it possible to consider removing it as part of fluentd install ? I see several customers flag this. |
I'm asking to upstream to remove it: And we can remove it from td-agent and Docker images on creating them. |
thank you @ashie . once its removed from http_parser and a new version of the gem released, i guess for people installing the newer version of the gem, this file will not exist... |
@ashie Any chance of upgrading the http_parser dependency here to your 0.7.0 now than you've released it? It specifies in the gemspec to not include that version. |
Of course we'll upgrade it. |
Describe the bug
Fluentd in any recent version depends on http_parser > 0.5.1, < 0.7.0. This has a transitive dependency on quite old library versions with known CVEs. Scanning a fluentd container with trivy shows:
The text was updated successfully, but these errors were encountered: