From 137895613b326d1115820b0d0993781dac55bfd4 Mon Sep 17 00:00:00 2001 From: Robert Schultheis Date: Fri, 25 Sep 2020 12:22:32 -0600 Subject: [PATCH] Add CVE-2020-15213 for GHSA-hjmq-236j-8m87 --- 2020/15xxx/CVE-2020-15213.json | 98 +++++++++++++++++++++++++++++++--- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/2020/15xxx/CVE-2020-15213.json b/2020/15xxx/CVE-2020-15213.json index 6065bf3406f..4997dfc7f09 100644 --- a/2020/15xxx/CVE-2020-15213.json +++ b/2020/15xxx/CVE-2020-15213.json @@ -1,18 +1,104 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2020-15213", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Denial of service in tensorflow-lite" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "tensorflow", + "version": { + "version_data": [ + { + "version_value": "= 2.2.0" + }, + { + "version_value": "= 2.3.0" + } + ] + } + } + ] + }, + "vendor_name": "tensorflow" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided." + "value": "In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger a denial of service by causing an out of memory allocation in the implementation of segment sum. Since code uses the last element of the tensor holding them to determine the dimensionality of output tensor, attackers can use a very large value to trigger a large allocation.\n\nThe issue is patched in commit 204945b19e44b57906c9344c0d00120eeeae178a and is released in TensorFlow versions 2.2.1, or 2.3.1.\n\nA potential workaround would be to add a custom `Verifier` to limit the maximum value in the segment ids tensor. This only handles the case when the segment ids are stored statically in the model, but a similar validation could be done if the segment ids are generated at runtime, between inference steps.\n\nHowever, if the segment ids are generated as outputs of a tensor during inference steps, then there are no possible workaround and users are advised to upgrade to patched code." } ] + }, + "impact": { + "cvss": { + "attackComplexity": "HIGH", + "attackVector": "NETWORK", + "availabilityImpact": "LOW", + "baseScore": 4, + "baseSeverity": "MEDIUM", + "confidentialityImpact": "NONE", + "integrityImpact": "NONE", + "privilegesRequired": "NONE", + "scope": "CHANGED", + "userInteraction": "NONE", + "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "{\"CWE-119\":\"Improper Restriction of Operations within the Bounds of a Memory Buffer\"}" + } + ] + }, + { + "description": [ + { + "lang": "eng", + "value": "{\"CWE-770\":\"Allocation of Resources Without Limits or Throttling\"}" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hjmq-236j-8m87", + "refsource": "CONFIRM", + "url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-hjmq-236j-8m87" + }, + { + "name": "https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1", + "refsource": "MISC", + "url": "https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1" + }, + { + "name": "https://github.com/tensorflow/tensorflow/commit/204945b19e44b57906c9344c0d00120eeeae178a", + "refsource": "MISC", + "url": "https://github.com/tensorflow/tensorflow/commit/204945b19e44b57906c9344c0d00120eeeae178a" + } + ] + }, + "source": { + "advisory": "GHSA-hjmq-236j-8m87", + "discovery": "UNKNOWN" } } \ No newline at end of file