-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support patched versions in affected[].ranges[] #318
Comments
I think this is the crucial part of this that I'd like to explore further. There's an expectation that versions are linear.
This issue discusses the need to assert that a particular version is not vulnerable, so that version should appear as Are you saying that there are then versions after the |
It is. The concrete issue we're facing is as follows:
It's not linear, which is the annoying part. This is essentially a fork off the main version line:
|
After some offline discussion with @oliverchang , using VEX might be a better approach than changing the OSV schema. Specifically, using a VEX statement that says something like:
Then updating our internal scanning to account for these VEX statement as a second step of vulnerability scanning after comparing against the public data. Marking this as closed since there are no actionables on the OSV side. Appreciate the discussion :) |
Problem
There doesn't seem to be a way to mark a single version as unaffected without knowing the previous or next version. For example, if package
foo
is vulnerable toCVE-123
between the ranges[0, 2.0]
:It's hard to mark some patched version
1.0+patched
as unaffected. One could do:But this runs the risk of
1.2.3+unpatched
not being reported as vulnerable because:Prior Arts
Solutions for this have been touched on in #75, #35 and #31 (comment) by introducing a
first_not_affected
/versionStartExcluding
field to describe the>
operator.This would address the problem by allowing:
to represent that only
1.2.3+patched
, if I'm understanding it correctly. I'm not attached to this for the multiple reasons mentioned in the other issues against a>
operator. So another approach would be to enumerate these unaffected version similar to how affected versions can be enumerated: https://ossf.github.io/osv-schema/#affectedversions-field. I'm wary of the confusion this might cause in how to reconcile these unaffected versions with the affected ranges, so it's not a great approach either.Use Case
This problem is arising outside the open source community. Specifically with users that maintain proprietary patches to public packages and use OSV tooling.
The text was updated successfully, but these errors were encountered: