Skip to contentSkip to conversation

python3-tornado: set CVE_PRODUCT

PATCH New Gyorgy Sarvari 1 participant 10 messages Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 python3-tornado: set CVE_PRODUCT

The default "python:tornado" CVE_PRODUCT doesn't match relevant CVEs, because the project's CPE is "tornadoweb:tornado".

See cve db query (docmosis is an irrelevant vendor):

sqlite> select * from products where PRODUCT = 'tornado';

CVE-2012-2374|tornadoweb|tornado|||2.2|<=
CVE-2012-2374|tornadoweb|tornado|1.0|=||
CVE-2012-2374|tornadoweb|tornado|1.0.1|=||
CVE-2012-2374|tornadoweb|tornado|1.1|=||
CVE-2012-2374|tornadoweb|tornado|1.1.1|=||
CVE-2012-2374|tornadoweb|tornado|1.2|=||
CVE-2012-2374|tornadoweb|tornado|1.2.1|=||
CVE-2012-2374|tornadoweb|tornado|2.0|=||
CVE-2012-2374|tornadoweb|tornado|2.1|=||
CVE-2012-2374|tornadoweb|tornado|2.1.1|=||
CVE-2014-9720|tornadoweb|tornado|||3.2.2|<
CVE-2023-25264|docmosis|tornado|||2.9.5|<
CVE-2023-25265|docmosis|tornado|||2.9.5|<
CVE-2023-25266|docmosis|tornado|||2.9.5|<
CVE-2023-28370|tornadoweb|tornado|||6.3.2|<
CVE-2024-42733|docmosis|tornado|||2.9.7|<=
CVE-2024-52804|tornadoweb|tornado|||6.4.2|<
CVE-2025-47287|tornadoweb|tornado|||6.5.0|<
CVE-2025-67724|tornadoweb|tornado|||6.5.3|<
CVE-2025-67725|tornadoweb|tornado|||6.5.3|<
CVE-2025-67726|tornadoweb|tornado|||6.5.3|<

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-tornado_6.5.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-tornado_6.5.4.bb +2 -0
index 9b43d98e1c..661ec039ce 100644
@@ -38,4 +38,6 @@ FILES:${PN}-test = " \
     ${PYTHON_SITEPACKAGES_DIR}/*/test \
 "
 
+CVE_PRODUCT = "tornadoweb:tornado"
+
 BBCLASSEXTEND  += "native nativesdk"
#1 lore raw

PATCH 2/10 python3-paramiko: set CVE_PRODUCT

Set correct CVE_PRODUCT for paramiko. The default python:paramiko value doesn't match CVEs, because the product has its own set of CPEs associated with CVEs.

See CVE db query:
sqlite> select * from products where PRODUCT = 'paramiko'; CVE-2008-0299|python_software_foundation|paramiko|1.7.1|=||

CVE-2018-1000805|paramiko|paramiko|1.17.6|=||
CVE-2018-1000805|paramiko|paramiko|1.18.5|=||
CVE-2018-1000805|paramiko|paramiko|2.0.8|=||
CVE-2018-1000805|paramiko|paramiko|2.1.5|=||
CVE-2018-1000805|paramiko|paramiko|2.2.3|=||
CVE-2018-1000805|paramiko|paramiko|2.3.2|=||
CVE-2018-1000805|paramiko|paramiko|2.4.1|=||
CVE-2018-7750|paramiko|paramiko|||1.17.6|<
CVE-2018-7750|paramiko|paramiko|1.18.0|>=|1.18.5|<
CVE-2018-7750|paramiko|paramiko|2.0.0|>=|2.0.8|<
CVE-2018-7750|paramiko|paramiko|2.1.0|>=|2.1.5|<
CVE-2018-7750|paramiko|paramiko|2.2.0|>=|2.2.3|<
CVE-2018-7750|paramiko|paramiko|2.3.0|>=|2.3.2|<
CVE-2018-7750|paramiko|paramiko|2.4.0|=||
CVE-2022-24302|paramiko|paramiko|||2.10.1|<
CVE-2023-48795|paramiko|paramiko|||3.4.0|<
---
 meta-python/recipes-devtools/python/python3-paramiko_3.5.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-paramiko_3.5.1.bb +2 -0
index a69ed72804..daf6386888 100644
@@ -18,3 +18,5 @@ RDEPENDS:${PN} += " \
     python3-pynacl \
     python3-unixadmin \
 "
+
+CVE_PRODUCT = "paramiko:paramiko python_software_foundation:paramiko"
#2 lore raw

PATCH 3/10 python3-sqlalchemy: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The default python:sqlalchemy CPE fails to match CVEs, because the CVEs are associated with sqlalchemy:sqlalchemy CPE.

See CVE db query:
sqlite> select * from products where PRODUCT = 'sqlalchemy';

CVE-2012-0805|sqlalchemy|sqlalchemy|||0.7.0|<=
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.0|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.0_beta1|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.0_beta2|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.0_beta3|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.1|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.2|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.3|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.4|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.5|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.6|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.6.7|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.7.0_b1|=||
CVE-2012-0805|sqlalchemy|sqlalchemy|0.7.0_b2|=||
CVE-2019-7164|sqlalchemy|sqlalchemy|||1.2.17|<=
CVE-2019-7164|sqlalchemy|sqlalchemy|1.3.0_beta1|=||
CVE-2019-7164|sqlalchemy|sqlalchemy|1.3.0_beta2|=||
CVE-2019-7548|sqlalchemy|sqlalchemy|1.2.17|=||

Set the CVE_PRODUCT accordingly.

---
 .../recipes-devtools/python/python3-sqlalchemy_2.0.45.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-sqlalchemy_2.0.45.bb +2 -0
index 6c6b95ceaa..f7d8f383f2 100644
@@ -21,4 +21,6 @@ RDEPENDS:${PN} += " \
     python3-typing-extensions \
 "
 
+CVE_PRODUCT = "sqlalchemy"
+
 BBCLASSEXTEND = "native nativesdk"
#3 lore raw

PATCH 4/10 python3-twitter: set CVE_PRODUCT

In reply to Gyorgy Sarvari

The product's CPE doesn't use "python" as the vendor, set the CVE_PRODUCT accordingly.

See CVE db query:

sqlite> select * from products where PRODUCT = 'tweepy'; CVE-2012-5825|tweepy|tweepy|-|||

---
 meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb +2 -0
index 54379673c0..9bbbc9e8c5 100644
@@ -17,3 +17,5 @@ RDEPENDS:${PN} += "\
     python3-requests-oauthlib \
     python3-six \
 "
+
+CVE_PRODUCT = "tweepy"
#4 lore raw

PATCH 5/10 python3-redis: set CVE_PRODUCT

In reply to Gyorgy Sarvari

Set the correct CVE_PRODUCT for the recipe.

---
 meta-python/recipes-devtools/python/python3-redis_5.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-redis_5.2.1.bb +2 -0
index 702e9d9db5..ba214f5869 100644
@@ -19,3 +19,5 @@ RDEPENDS:${PN} += " \
     python3-json \
     python3-packaging \
 "
+
+CVE_PRODUCT = "redis-py"
#5 lore raw

PATCH 6/10 python3-pyrad: set CVE_PRODUCT

In reply to Gyorgy Sarvari

NIST tracks related CVEs with pyrad_project CPE vendor instead of "python". Set the CVE_PRODUCT to pyrad, so both can be matched.

See CVE db query:
sqlite> select * from products where PRODUCT = 'pyrad';

CVE-2013-0294|pyrad_project|pyrad|||2.1|<
CVE-2013-0342|pyrad_project|pyrad|||2.1|<
---
 meta-python/recipes-devtools/python/python3-pyrad_2.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pyrad_2.4.bb +2 -0
index fbe7a0924a..e8cfffc9cc 100644
@@ -19,3 +19,5 @@ RDEPENDS:${PN} += " \
     python3-netaddr \
     python3-six \
 "
+
+CVE_PRODUCT = "pyrad"
#6 lore raw

PATCH 7/10 python3-matplotlib: set CVE_PRODUCT

In reply to Gyorgy Sarvari

At least one CVE is tracked by debian:matplotlib CPE (and no CVEs are tracked by the defaul python:matplotlib CPE).

See CVE db query:
sqlite> select * from products where PRODUCT = 'matplotlib'; CVE-2013-1424|debian|matplotlib|0.99.3-1|>=|1.4.2-3.1|<

Set the CVE_PRODUCT accordingly.

---
 .../recipes-devtools/python/python3-matplotlib_3.10.8.bb        | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-matplotlib_3.10.8.bb +2 -0
index c92af94732..ce8c7a276a 100644
@@ -47,4 +47,6 @@ RDEPENDS:${PN} = "\
     python3-packaging \
 "
 
+CVE_PRODUCT = "matplotlib"
+
 BBCLASSEXTEND = "native"
#7 lore raw

PATCH 8/10 python3-httplib2: set CVE_PRODUCT

In reply to Gyorgy Sarvari

There are no CVEs tracked with python:httplib2 CPE, but there are multiple ones tracked under httplib2_project:hgttplib2 CPE (and they are related to this recipe).

See CVE db query:
sqlite> select * from products where PRODUCT = 'httplib2';

CVE-2013-2037|httplib2_project|httplib2|||0.7.2|<=
CVE-2013-2037|httplib2_project|httplib2|0.8|=||
CVE-2020-11078|httplib2_project|httplib2|||0.18.0|<
CVE-2021-21240|httplib2_project|httplib2|||0.19.0|<

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-devtools/python/python3-httplib2_0.31.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-httplib2_0.31.0.bb +2 -0
index 9cde7acd3a..39f3459320 100644
@@ -13,3 +13,5 @@ RDEPENDS:${PN} += "\
     python3-netclient \
     python3-pyparsing \
 "
+
+CVE_PRODUCT = "httplib2"
#8 lore raw

PATCH 9/10 python3-virtualenv: set CVE_PRODUCT

In reply to Gyorgy Sarvari

There are relevant CVEs tracked under two different CPEs:
python:virtualenv (the default in OE), and virtualenv:virtualenv (these were missed).

See CVE db query:
sqlite> select * from products where PRODUCT = 'virtualenv';

CVE-2011-4617|python|virtualenv|||1.4.9|<=
CVE-2011-4617|python|virtualenv|0.8|=||
CVE-2011-4617|python|virtualenv|0.8.1|=||
CVE-2011-4617|python|virtualenv|0.8.2|=||
CVE-2011-4617|python|virtualenv|0.8.3|=||
CVE-2011-4617|python|virtualenv|0.8.4|=||
CVE-2011-4617|python|virtualenv|0.9|=||
CVE-2011-4617|python|virtualenv|0.9.1|=||
CVE-2011-4617|python|virtualenv|0.9.2|=||
CVE-2011-4617|python|virtualenv|1.0|=||
CVE-2011-4617|python|virtualenv|1.1|=||
CVE-2011-4617|python|virtualenv|1.1.1|=||
CVE-2011-4617|python|virtualenv|1.2|=||
CVE-2011-4617|python|virtualenv|1.3|=||
CVE-2011-4617|python|virtualenv|1.3.1|=||
CVE-2011-4617|python|virtualenv|1.3.2|=||
CVE-2011-4617|python|virtualenv|1.3.3|=||
CVE-2011-4617|python|virtualenv|1.3.4|=||
CVE-2011-4617|python|virtualenv|1.4|=||
CVE-2011-4617|python|virtualenv|1.4.1|=||
CVE-2011-4617|python|virtualenv|1.4.2|=||
CVE-2011-4617|python|virtualenv|1.4.3|=||
CVE-2011-4617|python|virtualenv|1.4.4|=||
CVE-2011-4617|python|virtualenv|1.4.5|=||
CVE-2011-4617|python|virtualenv|1.4.6|=||
CVE-2011-4617|python|virtualenv|1.4.7|=||
CVE-2011-4617|python|virtualenv|1.4.8|=||
CVE-2013-5123|virtualenv|virtualenv|12.0.7|=||

CVE-2024-53899|virtualenv|virtualenv|||20.26.6|<

Set the CVE_PRODUCT so both are matched.

---
 .../recipes-devtools/python/python3-virtualenv_20.35.4.bb       | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-virtualenv_20.35.4.bb +2 -0
index 28444f12c4..0c50a35be9 100644
@@ -24,3 +24,5 @@ RDEPENDS:${PN} += " \
     python3-modules \
     python3-platformdirs \
 "
+
+CVE_PRODUCT = "virtualenv"
#9 lore raw

PATCH 10/10 python3-pywbem: set CVE_PRODUCT

In reply to Gyorgy Sarvari

Relevant CVEs are tracked with pywbem_project:pywbem CPE instead of the (previously) expected python:pywbem.

See CVE db query:
sqlite> select * from products where PRODUCT = 'pywbem';

CVE-2013-6418|pywbem_project|pywbem|||0.7|<=
CVE-2013-6444|pywbem_project|pywbem|||0.7|<=

Set the CVE_PRODUCT accordingly.

---
 meta-python/recipes-extended/pywbem/python3-pywbem_1.7.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-extended/pywbem/python3-pywbem_1.7.3.bb +2 -0
index 59c9914bc2..6857563079 100644
@@ -49,3 +49,5 @@ ALTERNATIVE:${PN} = "mof_compiler"
 ALTERNATIVE_TARGET[mof_compiler] = "${bindir}/mof_compiler"
 
 ALTERNATIVE_PRIORITY = "60"
+
+CVE_PRODUCT = "pywbem"