CVE-2020-15206
JSON

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 packageVersionsReported 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.1CVE 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 adf095206f25471e864a8e63a0f1caef53a0e3a6GitHub 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 adf095206f25471e864a8e63a0f1caef53a0e3a6GitHub 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 adf095206f25471e864a8e63a0f1caef53a0e3a6GitHub Advisory Database, PyPA Advisory Database
google tensorflowbefore 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.1NVD
opensuse leap15.2NVD
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.1Bitnami Vulnerability Database

All scores

GitHub_M9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub9.0high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasecritical 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.&#xa0;Esto puede causar una denegación de servicio en productos que usan "tensorflow-serve" u otras cuotas de inferencia como un servicio.&#xa0;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).&#xa0;Sin embargo, esto no fue suficiente, ya que #41097 reporta un modo de fallo diferente.&#xa0;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

https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1advisory, third-party-advisory, web
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-w5gh-2wr2-pm6gadvisory, exploit, third-party-advisory, web
https://github.com/tensorflow/tensorflow/commit/adf095206f25471e864a8e63a0f1caef53a0e3a6advisory, fix, patch, third-party-advisory, vendor-advisory, web
http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.htmladvisory, mailing-list, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-15206advisory, web
https://github.com/tensorflow/tensorflow/commit/f760f88b4267d981e13f4b302c437ae800445968web
https://github.com/tensorflow/tensorflow/commit/fcfef195637c6e365577829c4d67681695956e7dweb
https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-286.yamlweb
https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-321.yamlweb
https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-129.yamlweb
https://github.com/tensorflow/tensorflowpackage

Sources

SourceRecordLicence
CVE ListCVE-2020-15206 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-w5gh-2wr2-pm6g changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15206 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-129 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-286 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-321 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2020-15206 changed 2026-09-10Apache-2.0