Visitar URL original
fix(alpine): do not derive introduced from an unrelated NVD CPE branch by katzj · Pull Request #5980 · google/osv.dev · GitHub
Skip to content

fix(alpine): do not derive introduced from an unrelated NVD CPE branch - #5980

Open
katzj wants to merge 1 commit into
google:masterfrom
katzj:fix/alpine-inverted-introduced-range
Open

katzj wants to merge 1 commit into
google:masterfrom
katzj:fix/alpine-inverted-introduced-range

Conversation

@katzj

@katzj katzj commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

findIntroducedVersion picked the first CPE match with a versionStartIncluding, regardless of which vulnerable branch it described. When a CVE was fixed independently on multiple branches (e.g. perl CVE-2018-18311, fixed at 5.26.3 and separately at 5.28.1), this could pair an introduced version from one branch with the Alpine secfix from a different, unrelated branch, producing an inverted and unsatisfiable range (introduced > fixed). Scanners then treated every higher version as affected, causing false positives long after the real fix.

Only use a candidate introduced version when it sorts before the Alpine fixed version, picking the closest qualifying one and falling back to "0" otherwise.

Fixes #5634

findIntroducedVersion picked the first CPE match with a
versionStartIncluding, regardless of which vulnerable branch it
described. When a CVE was fixed independently on multiple branches
(e.g. perl CVE-2018-18311, fixed at 5.26.3 and separately at 5.28.1),
this could pair an introduced version from one branch with the Alpine
secfix from a different, unrelated branch, producing an inverted and
unsatisfiable range (introduced > fixed). Scanners then treated every
higher version as affected, causing false positives long after the
real fix.

Only use a candidate introduced version when it sorts before the
Alpine fixed version, picking the closest qualifying one and falling
back to "0" otherwise.
@G-Rath G-Rath closed this Sep 4, 2026
@G-Rath

G-Rath commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Please read our contributing guide before opening pull requests

This branch has not been deployed

No deployments
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.

Data quality issue with ALPINE-CVE-2018-18311 / -18312 (inverted version range, false positives)

3 participants