9.0critical
Denial of Service in Tensorflow
- Severity
- 9.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.96% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w5gh-2wr2-pm6gBIT-TENSORFLOW-2020-15206PYSEC-2020-129PYSEC-2020-286PYSEC-2020-321
Description
In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, changing the TensorFlow's `SavedModel` protocol buffer and altering the name of required keys results in segfaults and data corruption while loading the model. This can cause a denial of service in products using `tensorflow-serving` or other inference-as-a-service installments. Fixed were added in commits f760f88b4267d981e13f4b302c437ae800445968 and fcfef195637c6e365577829c4d67681695956e7d (both going into TensorFlow 2.2.0 and 2.3.0 but not yet backported to earlier versions). However, this was not enough, as #41097 reports a different failure mode. The issue is patched in commit adf095206f25471e864a8e63a0f1caef53a0e3a6, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 1.15.4, >= 2.0.0, < 2.0.3, >= 2.1.0, < 2.1.2, >= 2.2.0, < 2.2.1, >= 2.3.0, < 2.3.1 | CVE List |
| tensorflow (PyPI) | before 1.15.4, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2, from 2.2.0 before 2.2.1, from 2.3.0 before 2.3.1, before adf095206f25471e864a8e63a0f1caef53a0e3a6 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 1.15.4, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2, from 2.2.0 before 2.2.1, from 2.3.0 before 2.3.1, before adf095206f25471e864a8e63a0f1caef53a0e3a6 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 1.15.4, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2, from 2.2.0 before 2.2.1, from 2.3.0 before 2.3.1, before adf095206f25471e864a8e63a0f1caef53a0e3a6 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 1.15.4, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2, from 2.2.0 before 2.2.1, from 2.3.0 before 2.3.1 | NVD |
| opensuse leap | 15.2 | NVD |
| tensorflow (Bitnami) | before 1.15.4, from 2.0.0 before 2.0.3, from 2.1.0 before 2.1.2, from 2.2.0 before 2.2.1, from 2.3.0 before 2.3.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, changing the TensorFlow's `SavedModel` protocol buffer and altering the name of required keys results in segfaults and data corruption while loading the model. This can cause a denial of service in products using `tensorflow-serving` or other inference-as-a-service installments. Fixed were added in commits f760f88b4267d981e13f4b302c437ae800445968 and fcfef195637c6e365577829c4d67681695956e7d (both going into TensorFlow 2.2.0 and 2.3.0 but not yet backported to earlier versions). However, this was not enough, as #41097 reports a different failure mode. The issue is patched in commit adf095206f25471e864a8e63a0f1caef53a0e3a6, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
GitHub Advisory Database
Impact
Changing the TensorFlow's SavedModel protocol buffer and altering the name of required keys results in segfaults and data corruption while loading the model. This can cause a denial of service in products using tensorflow-serving or other inference-as-a-service installments.
We have added fixes to this in f760f88b4267d981e13f4b302c437ae800445968 and fcfef195637c6e365577829c4d67681695956e7d (both going into TensorFlow 2.2.0 and 2.3.0 but not yet backported to earlier versions). However, this was not enough, as #41097 reports a different failure mode.
Patches
We have patched the issue in adf095206f25471e864a8e63a0f1caef53a0e3a6 and will release patch releases for all versions between 1.15 and 2.3. Patch releases for versions between 1.15 and 2.1 will also contain cherry-picks of f760f88b4267d981e13f4b302c437ae800445968 and fcfef195637c6e365577829c4d67681695956e7d.
We recommend users to upgrade to TensorFlow 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported by Shuaike Dong, from Alipay Tian Qian Security Lab && Lab for Applied Security Research, CUHK.
NVD (es)
En Tensorflow versiones anteriores a 1.15.4, 2.0.3, 2.1.2, 2.2.1 y 2.3.1, cambiar el búfer del protocolo "SavedModel" de TensorFlow y alterar el nombre de las claves requeridas resulta en fallos de segmentación y una corrupción de los datos mientras se carga el modelo. Esto puede causar una denegación de servicio en productos que usan "tensorflow-serve" u otras cuotas de inferencia como un servicio. Los arreglos se agregaron en las commits f760f88b4267d981e13f4b302c437ae800445968 y fcfef195637c6e365577829c4d67681695956e7d (ambas en TensorFlow versiones 2.2.0 y 2.3.0 pero aún no se han actualizado a versiones anteriores). Sin embargo, esto no fue suficiente, ya que #41097 reporta un modo de fallo diferente. El problema es parcheado en el commit adf095206f25471e864a8e63a0f1caef53a0e3a6, y es publicado en TensorFlow versiones 1.15.4, 2.0.3, 2.1.2, 2.2.1 o 2.3.1
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15206 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5gh-2wr2-pm6g changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15206 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-129 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-286 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-321 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2020-15206 changed 2026-09-10 | Apache-2.0 |