Skip to content

fix(vulnfeeds): support below and or-older version phrases from CVE descriptions - #6512

Closed
aeagisenginesec wants to merge 1 commit into
google:masterfrom
aeagisenginesec:fix-249-cve-version-phrases
Closed

aeagisenginesec wants to merge 1 commit into
google:masterfrom
aeagisenginesec:fix-249-cve-version-phrases

Conversation

@aeagisenginesec

Copy link
Copy Markdown

Fixes #249

Leading below x.x.x and trailing x.x.x or older, or earlier, or below were not extracted from CVE descriptions. This adds below to the range pattern and or to the trailing inclusive pattern in vulnfeeds/conversion/versions.go, with 5 new table tests in TestExtractVersionsFromText and a new TestExtractVersionsFromText_NoVersionPhrase with 4 negative cases. Tests: go test ./conversion/... passes, including the new cases.

…escriptions

Fixes google#249

Leading below x.x.x and trailing x.x.x or older, or earlier, or below were not extracted from CVE descriptions. Adds below to the range pattern and or to the trailing inclusive pattern, with table tests and negative tests.
@google-cla

google-cla Bot commented Dec 5, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@G-Rath

G-Rath commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

This is not assigned to you

@aeagisenginesec

Copy link
Copy Markdown
Author

Hi @G-Rath, thanks for the note, and I understand the assignment point. @ashutos-h-tiwari is assigned to issue #249 and said he will open a PR by Thursday, December 10, and I already said on the issue I am happy to leave it with him if the maintainers prefer that.

I am asking here because this PR is already complete and tested, built on current main in vulnfeeds/conversion/versions.go (the code moved from vulnfeeds/cves/versions.go), adding the two gaps that were left, leading "below x.x.x" and trailing "x.x.x or older" / "or earlier" / "or below", with 5 new table tests and 4 negative cases, and go test ./conversion/... passing.

Could you please reopen this PR so it can be reviewed on its merits, or let me know if you would rather keep it closed and have ashutos build on this branch for his December 10 PR? I am also signing the Google CLA now, so the cla/google check will clear. Happy either way, I just did not want a finished, tested fix to be lost on an assignment technicality. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vulnfeeds: Add some more common phrases when extracting versions from CVE description

2 participants