Conversation
moleske
left a comment
There was a problem hiding this comment.
I'm confused. Two of these dependencies are being added to the gemfile and aren't used anywhere. And rack is at 2.2.15 which is higher than the cve you're referencing
ffi already exists in the Gemfile.lock as a dependency ffi (1.16.3) cloud_controller_ng/Gemfile.lock Line 155 in c4a94b7 rexml is also an existing dependency, but is 3.3.9 so I could pin it to >= 3.3.9 cloud_controller_ng/Gemfile.lock Line 290 in c4a94b7
|
Update versions
This is why I'm confused, it is already brought in transitively and is updated. Adding it to the gemfile I don't believe helps cause the transitive dependency will bring in whatever version it needs. Same for the other dependencies. I also see no issue in the github security checks. I'll let someone who knows ruby dependency management better than I (hi @sethboyles!) chime in to correct me if I'm misunderstanding |
|
|
I think you can run it won't update rexml because it's already at 3.4.1. Seems like a false alarm from the CVE scanner |
|
I misread your comment @nookala since the formatting makes it look like a quote. It's unfortunate that Veracode (is that the scanner Bcom uses?) recommends adding the gems to the gemfile directly, because it makes it less clear what gems are actually being used directly by CCNG. I'd suggest trying the validate with the |
|
Though I don't know the report being referenced, I think it is all false positives
Some of dependencies that bring in ffi, rexml, and rack say that lower versions of those dependencies are acceptable, but the lock file is not bringing in those lower versions here are the links to the dependabot security updates that fixed some of the issues referenced in PR. You'll only be able to see these if you are an approver in the capi project though. I couldn't find one for ffi, but the ffi cve referenced is from 2018 and has been fixed for awhile
edit - found the ffi bump to resolve this cve from 2018. It was done before the advisory was released, so no dependabot security note for it |
Thanks @moleske and @sethboyles I've marked the CVEs as false positives. |
GHSA-vmwr-mc7x-5vc3
GHSA-gjh7-p2fx-99vx
GHSA-2gw2-8q9w-cw8p
Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:
A short explanation of the proposed change:
An explanation of the use cases your change solves
Links to any other associated PRs
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests