Back to CVE catalog
CVE-2020-15212

TensorFlow Lite segment sum heap buffer overflow

tensorflow tensorflow

At a glance

In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger writes outside of bounds of heap allocated buffers by inserting negative elements in the segment ids tensor. Users having access to `segment_ids_data` can alter `output_index` and then write to outside of `output_data` buffer. This might result in a segmentation fault but it can also be used to further corrupt the memory and can be chained with other vulnerabilities to create more advanced exploits. The issue is patched in commit 204945b19e44b57906c9344c0d00120eeeae178a and is released in TensorFlow versions 2.2.1, or 2.3.1. A potential workaround would be to add a custom `Verifier` to the model loading code to ensure that the segment ids are all positive, although this only handles the case when the segment ids are stored statically in the model. A similar validation could be done if the segment ids are generated at runtime between inference steps. 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.

Source description · CVE List / CNA

System impact

Attack complexityHigh
ConfidentialityLow
IntegrityLow
AvailabilityHigh

CVSS summary v3.1

8.1High
Published:
Updated:
EPSS:
0.737%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:tensorflowtensorflowAffected versions:
>= 2.2.0, < 2.2.1Show full version range for tensorflow
>= 2.3.0, < 2.3.1
Vendor:googletensorflowAffected versions:
≥ 2.2.0, < 2.2.1Show full version range for tensorflow
≥ 2.3.0, < 2.3.1
  • CPE applicability can depend on other products or environments. Consult the full source configuration.

1–2 of 2 · Page 1 of 1

CVSS scores and metrics5
GitHub_M · CVE List / CNA (cna)Primary8.1 / 10HighCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
[email protected] · NVD (Secondary)8.1 / 10HighCVSS 3.1Details
Attack complexity
High
Confidentiality
Low
Integrity
Low
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Changed

Source vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
[email protected] · NVD (Primary)8.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
CVE-2020-15212 · OSV (source-vector)8.6 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
Low
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
[email protected] · NVD (Primary)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories7

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences