Skip to content

Incorrectly flagged vulnerabilities with 4-digit version numbers #328

Open
@tilo

Description

@tilo

Description

Codeclimate runs bundler-audit to check for vulnerabilities
and I noticed that it incorrectly flags vulnerabilities.

e.g. when upgrading Rails from 6.0.4 to 6.0.4.6

these two vulnerabilities get flagged, although they already have the fix from 6.0.3.5 applied:

https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129
https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130

Screen Shot 2022-02-15 at 12 34 28

Flagging this issue with Codeclimate as well, but wanted to give you guys a heads-up in case it is an issue in bundler-audit.

Perhaps the comparison of version numbers is not correctly done, and has trouble with 4-digit version numbers?

Steps To Reproduce

Steps to reproduce the bug:

  1. $ bundle-audit ...
  2. ???

Expected Behavior

should not flag these CVEs as an error

Actual Behavior

see image above

Environment

$ bundler-audit --version
...
$ bundle --version
...
$ ruby --version
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions