You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current OSV structure combines vulnerability data from different resources (e.g., NVD, Alpine, Debian) into a single CVE entry based on shared CVE IDs. This approach leads to overly large and difficult to maintain CVE entries. With Ubuntu also publishing its security tracker data to OSV.dev using CVE IDs, this issue will likely worsen.
We probably need a better solution for managing CVE entries. One idea is to add a source-specific prefix or suffix to the CVE ID, creating separate entries for each data source. For example, Alpine-CVE-2024-0001 and Debian-CVE-2024-0001 would be displayed as two distinct records on OSV.dev.
The initial reason was that Alpine SecDB uses CVE IDs to publish their vulnerabilities. So, we created a tool to combine their data into our existing CVEs, as long as they use the same vulnerability ID. Then, we wanted to add Debian security tracker data into our OSV to better support container scanning, so we continued to combine everything into our CVE entries to keep it consistent, as the Debian security tracker also uses CVE IDs.
However, the problem now is that we continue to combine more and more data into a single record, increasing the difficulty of our maintenance. So, we are considering some better changes to this approach.
The initial reason was that Alpine SecDB uses CVE IDs to publish their vulnerabilities. So, we created a tool to combine their data into our existing CVEs, as long as they use the same vulnerability ID. Then, we wanted to add Debian security tracker data into our OSV to better support container scanning, so we continued to combine everything into our CVE entries to keep it consistent, as the Debian security tracker also uses CVE IDs.
However, the problem now is that we continue to combine more and more data into a single record, increasing the difficulty of our maintenance. So, we are considering some better changes to this approach.
From your first message, the thing that is not clear to me is, if you are not going to combine CVEs anymore, then why would you need to still add the prefixes (e.g. Debian-CVE-2024-0001) ? Aren't those completely separate buckets?
The initial reason was that Alpine SecDB uses CVE IDs to publish their vulnerabilities. So, we created a tool to combine their data into our existing CVEs, as long as they use the same vulnerability ID. Then, we wanted to add Debian security tracker data into our OSV to better support container scanning, so we continued to combine everything into our CVE entries to keep it consistent, as the Debian security tracker also uses CVE IDs.
However, the problem now is that we continue to combine more and more data into a single record, increasing the difficulty of our maintenance. So, we are considering some better changes to this approach.
From your first message, the thing that is not clear to me is, if you are not going to combine CVEs anymore, then why would you need to still add the prefixes (e.g. Debian-CVE-2024-0001) ? Aren't those completely separate buckets?
For OSV, ID prefixes must be unique, and be associated with a home database. Debian security tracker, Alpine etc didn't have a unique ID before, so we were combining them into a single CVE record. If we don't combine them, then they would need their own prefix.
The initial reason was that Alpine SecDB uses CVE IDs to publish their vulnerabilities. So, we created a tool to combine their data into our existing CVEs, as long as they use the same vulnerability ID. Then, we wanted to add Debian security tracker data into our OSV to better support container scanning, so we continued to combine everything into our CVE entries to keep it consistent, as the Debian security tracker also uses CVE IDs.
However, the problem now is that we continue to combine more and more data into a single record, increasing the difficulty of our maintenance. So, we are considering some better changes to this approach.
From your first message, the thing that is not clear to me is, if you are not going to combine CVEs anymore, then why would you need to still add the prefixes (e.g. Debian-CVE-2024-0001) ? Aren't those completely separate buckets?
For OSV, ID prefixes must be unique, and be associated with a home database. Debian security tracker, Alpine etc didn't have a unique ID before, so we were combining them into a single CVE record. If we don't combine them, then they would need their own prefix.
Thanks for clarifying it, and would the prefix also be necessary for the filename itself? or could we have a filename CVE-2024-0001.json and inside of it id = "UBTU-CVE-2024-0001?
Thanks for clarifying it, and would the prefix also be necessary for the filename itself? or could we have a filename CVE-2024-0001.json and inside of it id = "UBTU-CVE-2024-0001?
We do prefer the filename to match the ID name to keep it consistent for other ecosystems. Are there any concerns for Ubuntu in changing the filename?
Thanks for clarifying it, and would the prefix also be necessary for the filename itself? or could we have a filename CVE-2024-0001.json and inside of it id = "UBTU-CVE-2024-0001?
We do prefer the filename to match the ID name to keep it consistent for other ecosystems. Are there any concerns for Ubuntu in changing the filename?
No concerns, just confirming what needs to be done as it will be a mass operation.
The only thing to confirm is which should be the prefix, Ubuntu-, UBUNTU-, UBTU-?
Second question is about the status field. I can't find it in the Ubuntu OSV records, not sure if it's an important one. But I'm wondering if there's a filtering mechanism that determines which records Ubuntu sends to OSV (like not sending all records with a status of DNE or not-affected ?).
Indeed, for now we only added the ecosystem_specific part (including ubuntu_priority) when the CVE was fixed. In the next batch of update to our scripts, we plan to add the ecosystem_specific to all.
Second question is about the status field. I can't find it in the Ubuntu OSV records, not sure if it's an important one. But I'm wondering if there's a filtering mechanism that determines which records Ubuntu sends to OSV (like not sending all records with a status of DNE or not-affected ?).
Since OSV has the affected field, which is for only packages that are vulnerable to such "vulnerability" (CVE) or "set of vulnerabilities" (USN), for CVEs, we only list the ones that are affected or are still pending investigation. That means that the following status are always included: needed -> means vulnerable/affected needs-triage -> means that it needs investigation, therefore we consider it vulnerable until investigation is done deferred -> means that we tried to investigate but we still don't have enough information to do so, therefore it is vulnerable until confirmed pending -> means that the package is vulnerable and a fix is on its way released -> means that we patched it in such release
Some status are more complex and will depend on other factors: not-affected (<version>) -> if the <version> exists in that specific Ubuntu release, we consider it similar to released, if the <version> is an old one, e.g. the first version to contain the fix and not vulnerable anymore, then we don't add it since that Ubuntu release is not vulnerable at all. ignored -> it will only be included for releases that are still "alive", as ignored can be used for different reasons.
And some status we just don't include: DNE -> package doesn't exist in such Ubuntu release active -> even though it is in the docs we still don't use that status.
Having all the ubuntu_priority info should be sufficient for us, especially considering you've already helped us filter out DNE and some not-affected ones.
I forgot to ask one thing Holly For the USN data, should we change the related field to refer to the UBUNTU-CVE-... or should we keep it as CVE-...?
Are you referring to data from USN notes such as USN-6969-1? I think for this type of data, we can just keep its original USN- prefix, no change needed. Just for Ubuntu CVEs, we can add UBUNTU-CVE- as its prefix.
Misread the question (didn't see the related word 😅), please refer to Oliver's answer
Hmm, I think @dodys is asking about what to put inside related for USN- entries? I think under our schema definitions, it would make the most sense to:
Put UBUNTU-CVE- in aliases, if it exists, given that they're both Ubuntu-specific advisories talking about the same vulnerability.
We are only adding purl for vulnerabilities that were fixed. We could change that, if that's what is preferred :)
Yes, please. We also prefer the purl to not contain affected range information, which means it shouldn't include a version. Our purpose in using the purl field is to find the package itself. For example, in other ecosystems, you might see a purl like pkg:deb/debian/chromium?arch=source.
So for Ubuntu, regardless of whether a fix is available, the package purl should only contain the package information (distribution information is fine to keep).
Original one: pkg:deb/ubuntu/[email protected]+dfsg-4ubuntu0.1?arch=src?distro=jammy
Expected one: pkg:deb/ubuntu/py7zr?arch=src or pkg:deb/ubuntu/py7zr?arch=src?distro=jammy
We are only adding purl for vulnerabilities that were fixed. We could change that, if that's what is preferred :)
Yes, please. We also prefer the purl to not contain affected range information, which means it shouldn't include a version. Our purpose in using the purl field is to find the package itself. For example, in other ecosystems, you might see a purl like pkg:deb/debian/chromium?arch=source.
So for Ubuntu, regardless of whether a fix is available, the package purl should only contain the package information (distribution information is fine to keep).
Original one: pkg:deb/ubuntu/[email protected]+dfsg-4ubuntu0.1?arch=src?distro=jammy Expected one: pkg:deb/ubuntu/py7zr?arch=src or pkg:deb/ubuntu/py7zr?arch=src?distro=jammy
Activity
dodys commentedon Aug 9, 2024
As someone that does not have a view of the whole osv.dev machinery, I think the main question is, why would you want to combine CVE entries?
hogo6002 commentedon Aug 12, 2024
The initial reason was that Alpine SecDB uses CVE IDs to publish their vulnerabilities. So, we created a tool to combine their data into our existing CVEs, as long as they use the same vulnerability ID. Then, we wanted to add Debian security tracker data into our OSV to better support container scanning, so we continued to combine everything into our CVE entries to keep it consistent, as the Debian security tracker also uses CVE IDs.
However, the problem now is that we continue to combine more and more data into a single record, increasing the difficulty of our maintenance. So, we are considering some better changes to this approach.
dodys commentedon Aug 12, 2024
From your first message, the thing that is not clear to me is, if you are not going to combine CVEs anymore, then why would you need to still add the prefixes (e.g.
Debian-CVE-2024-0001) ? Aren't those completely separate buckets?oliverchang commentedon Aug 12, 2024
For OSV, ID prefixes must be unique, and be associated with a home database. Debian security tracker, Alpine etc didn't have a unique ID before, so we were combining them into a single CVE record. If we don't combine them, then they would need their own prefix.
dodys commentedon Aug 12, 2024
Thanks for clarifying it, and would the prefix also be necessary for the filename itself? or could we have a filename CVE-2024-0001.json and inside of it
id = "UBTU-CVE-2024-0001?hogo6002 commentedon Aug 13, 2024
We do prefer the filename to match the ID name to keep it consistent for other ecosystems. Are there any concerns for Ubuntu in changing the filename?
dodys commentedon Aug 13, 2024
No concerns, just confirming what needs to be done as it will be a mass operation.
The only thing to confirm is which should be the prefix,
Ubuntu-,UBUNTU-,UBTU-?hogo6002 commentedon Aug 14, 2024
Thanks for confirming! We prefer
UBUNTU-to align with our current naming schema. Same as https://osv.dev/vulnerability/CURL-CVE-2024-7264hogo6002 commentedon Aug 15, 2024
Hey @dodys, I have two questions about Ubuntu CVE OSV records (ubuntu-security-notices/osv).
First, I'm curious why some affected packages lack the
ubuntu_priorityfield. This field is from the vulnerability level and should be consistent across all affected packages. But I've noticed that some packages are missing this field while others within the same vulnerability have it. Example: https://osv.dev/vulnerability/CVE-2024-21131Second question is about the
statusfield. I can't find it in the Ubuntu OSV records, not sure if it's an important one. But I'm wondering if there's a filtering mechanism that determines which records Ubuntu sends to OSV (like not sending all records with a status ofDNEornot-affected?).dodys commentedon Aug 15, 2024
Indeed, for now we only added the
ecosystem_specificpart (includingubuntu_priority) when the CVE was fixed. In the next batch of update to our scripts, we plan to add theecosystem_specificto all.Since OSV has the
affectedfield, which is for only packages that are vulnerable to such "vulnerability" (CVE) or "set of vulnerabilities" (USN), for CVEs, we only list the ones that are affected or are still pending investigation. That means that the following status are always included:needed-> means vulnerable/affectedneeds-triage-> means that it needs investigation, therefore we consider it vulnerable until investigation is donedeferred-> means that we tried to investigate but we still don't have enough information to do so, therefore it is vulnerable until confirmedpending-> means that the package is vulnerable and a fix is on its wayreleased-> means that we patched it in such releaseSome status are more complex and will depend on other factors:
not-affected (<version>)-> if the<version>exists in that specific Ubuntu release, we consider it similar toreleased, if the<version>is an old one, e.g. the first version to contain the fix and not vulnerable anymore, then we don't add it since that Ubuntu release is not vulnerable at all.ignored-> it will only be included for releases that are still "alive", as ignored can be used for different reasons.And some status we just don't include:
DNE-> package doesn't exist in such Ubuntu releaseactive-> even though it is in the docs we still don't use that status.Does that help clarify?
hogo6002 commentedon Aug 16, 2024
Thanks Eduardo! It's very detailed and helpful!
Having all the
ubuntu_priorityinfo should be sufficient for us, especially considering you've already helped us filter outDNEand somenot-affectedones.dodys commentedon Aug 20, 2024
I forgot to ask one thing Holly
For the USN data, should we change the related field to refer to the
UBUNTU-CVE-...or should we keep it asCVE-...?hogo6002 commentedon Aug 21, 2024
Are you referring to data from USN notes such asUSN-6969-1? I think for this type of data, we can just keep its originalUSN-prefix, no change needed. Just for Ubuntu CVEs, we can addUBUNTU-CVE-as its prefix.Misread the question (didn't see the
relatedword 😅), please refer to Oliver's answeroliverchang commentedon Aug 21, 2024
Hmm, I think @dodys is asking about what to put inside
relatedforUSN-entries? I think under our schema definitions, it would make the most sense to:UBUNTU-CVE-inaliases, if it exists, given that they're both Ubuntu-specific advisories talking about the same vulnerability.CVE-inrelated.9 remaining items
hogo6002 commentedon Sep 24, 2024
Oh yeah, sorry. That was a wrong paste. Example without purl: https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-0120.json, https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-1296.json, https://osv.dev/vulnerability/UBUNTU-CVE-2023-46726, https://osv.dev/vulnerability/UBUNTU-CVE-2024-8354 (it seems all come from Ubuntu:Pro?)
dodys commentedon Sep 24, 2024
We are only adding
purlfor vulnerabilities that were fixed. We could change that, if that's what is preferred :)hogo6002 commentedon Sep 25, 2024
Yes, please. We also prefer the
purlto not contain affected range information, which means it shouldn't include a version. Our purpose in using thepurlfield is to find the package itself. For example, in other ecosystems, you might see a purl likepkg:deb/debian/chromium?arch=source.So for Ubuntu, regardless of whether a fix is available, the package
purlshould only contain the package information (distribution information is fine to keep).Original one:
pkg:deb/ubuntu/[email protected]+dfsg-4ubuntu0.1?arch=src?distro=jammyExpected one:
pkg:deb/ubuntu/py7zr?arch=srcorpkg:deb/ubuntu/py7zr?arch=src?distro=jammy@michaelkedar do you have anything to add?
dodys commentedon Sep 25, 2024
Thanks Holly,
I've made the changes and refreshed the data.
hogo6002 commentedon Sep 26, 2024
Thanks Eduardo! It all looks good now!
github-actions commentedon Nov 25, 2024
This issue has not had any activity for 60 days and will be automatically closed in two weeks
See https://github.com/google/osv.dev/blob/master/CONTRIBUTING.md for how to contribute a PR if you're interested in helping out.
andrewpollock commentedon Nov 25, 2024
If I understand correctly, in order to call this issue "done", we'd have to render
combine-to-osvobsolete, which would mean:nvd-cve-osvsupports doing today)refactor(vulnfeeds): Uncouple Debian conversion from combine-to-osv c…
jess-lowe commentedon Sep 30, 2025
We can finally call this "done" 🎉