Skip to contentSkip to conversation

Many CVE_PRODUCTS patches

DISCUSSION Gyorgy Sarvari 3 participants 4 messages Dec 30, 2025 – Dec 31, 2025

lore
Share & tools
lore
#0 lore raw

Apologies for this CVE_PRODUCT patch-tsunami.

While reviewing an earlier submitted CVE patch, I was wondering why that CVE didn't show up in the CVE report - it turned out that almost all recipes using the pypi class use the default CVE_PRODUCT, however there are quite a few where it is not appropriate, making the cve-checker to miss relevant CVEs.

For today I don't plan to spam further, but I'm only about halfway through my list for the master branch, about the same amount left for tomorrow-ish.

#1 lore raw

such patches are quite useful as they improve the recipe quality, so keep it up.

Quoted 24 lines · Gyorgy Sarvari via lists.openembedded.org

Apologies for this CVE_PRODUCT patch-tsunami.

While reviewing an earlier submitted CVE patch, I was wondering why that CVE didn't show up in the CVE report - it turned out that almost all recipes using the pypi class use the default CVE_PRODUCT, however there are quite a few where it is not appropriate, making the cve-checker to miss relevant CVEs.

For today I don't plan to spam further, but I'm only about halfway through my list for the master branch, about the same amount left for tomorrow-ish.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#123037):
https://lists.openembedded.org/g/openembedded-devel/message/123037
Mute This Topic: https://lists.openembedded.org/mt/116999150/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Gyorgy Sarvari

I think your finding is important.

Yet, I'd suggest we change the default value in pypi.bbclass, removing the 'python:' prefix. That would set a more reasonable value.

Take NVD data as an example:

$ grep 'cpe:2.3:a:python:' ~/.cvedb/nvdcve-2.0-* | grep -v ':python:python:' | wc -l
159

In all NVD data, from 2002 to 2025 (+ Modified, Recent), there are only 159 lines that have 'python:' prefix. That's a very small percentage. To be honest, the number is way below my initial guess.

So, could you please try changing the default value in pypi.bbclass to see how things work?

Regards,
Qi

Quoted 21 lines · Gyorgy Sarvari via lists.openembedded.org

Apologies for this CVE_PRODUCT patch-tsunami.

While reviewing an earlier submitted CVE patch, I was wondering why that CVE didn't show up in the CVE report - it turned out that almost all recipes using the pypi class use the default CVE_PRODUCT, however there are quite a few where it is not appropriate, making the cve-checker to miss relevant CVEs.

For today I don't plan to spam further, but I'm only about halfway through my list for the master branch, about the same amount left for tomorrow-ish.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123037): https://lists.openembedded.org/g/openembedded-devel/message/123037
Mute This Topic: https://lists.openembedded.org/mt/116999150/7304865
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 11 lines · ChenQi

I think your finding is important.

Yet, I'd suggest we change the default value in pypi.bbclass, removing the 'python:' prefix.
That would set a more reasonable value.

Take NVD data as an example:

$ grep 'cpe:2.3:a:python:' ~/.cvedb/nvdcve-2.0-* | grep -v 
':python:python:' | wc -l
159
Quoted 7 lines

In all NVD data, from 2002 to 2025 (+ Modified, Recent), there are only 159 lines that have 'python:' prefix.
That's a very small percentage. To be honest, the number is way below my initial guess.

So, could you please try changing the default value in pypi.bbclass to see how things work?

I think you are correct, and changing the default to CVE_PRODUCT ?= "${PYPI_PACKAGE}"
would simplify things a lot, and probably would improve the status quo. That would make about 80% of these patches obsolete, and I think the introduced incorrect changes would be minimal (I know that it would mis-identify as python a few wordpress and jenkins plugins and also 1 or 2 rust projects, but I am talking about ~10 recipes altogether in meta-oe. All can be trivially corrected with specific CVE_PRODUCT) - overall I think it would do more good than harm.
Though I haven't checked specifically, but I think there are recipes with the same issue in oe-core also, which would be helped too.

With that said I am not on oe-core list, and I don't plan to go back voluntarily- if you (or anyone else) would like to propose it however, please feel free.

Quoted 26 lines

Regards,
Qi

Quoted 21 lines · Gyorgy Sarvari via lists.openembedded.org

Apologies for this CVE_PRODUCT patch-tsunami.

While reviewing an earlier submitted CVE patch, I was wondering why that CVE didn't show up in the CVE report - it turned out that almost all recipes using the pypi class use the default CVE_PRODUCT, however there are quite a few where it is not appropriate, making the cve-checker to miss relevant CVEs.

For today I don't plan to spam further, but I'm only about halfway through my list for the master branch, about the same amount left for tomorrow-ish.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123037): https://lists.openembedded.org/g/openembedded-devel/message/123037
Mute This Topic: https://lists.openembedded.org/mt/116999150/7304865
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-