Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-29585 (High) detected in TensorIO-1.2.4, TensorFlowLite-1.13.1 #29

Open
mend-for-github-com bot opened this issue May 27, 2021 · 0 comments
Labels
security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-for-github-com
Copy link
Contributor

mend-for-github-com bot commented May 27, 2021

CVE-2021-29585 - High Severity Vulnerability

Vulnerable Libraries - TensorIO-1.2.4, TensorFlowLite-1.13.1

TensorIO-1.2.4

On device inference with TensorFlow Lite or inference and training with full TensorFlow models using all the conveniences of Objective-C or Swift

Library home page: https://github.com/doc-ai/tensorio-ios/archive/1.2.4.zip

Path to dependency file: /example/ios/Podfile.lock

Path to vulnerable library: /example/ios/Podfile.lock

Dependency Hierarchy:

  • react-native-tensorio-tflite-0.1.0 (Root Library)
    • TensorIO-1.2.4 (Vulnerable Library)
TensorFlowLite-1.13.1

TensorFlow Lite is TensorFlow’s lightweight solution for mobile and embedded devices. It enables on-device machine learning inference with low latency and a small binary size.

Library home page: https://dl.google.com/dl/cpdc/a3cc8a8fb2aec8f6/TensorFlowLite-1.13.1.tar.gz

Path to dependency file: /example/ios/Podfile.lock

Path to vulnerable library: /example/ios/Podfile.lock

Dependency Hierarchy:

  • react-native-tensorio-tflite-0.1.0 (Root Library)
    • TensorIO/TFLite-1.2.4
      • TensorFlowLite-1.13.1 (Vulnerable Library)

Found in HEAD commit: 476340fbc1766e8404baed64a296582b7588a7b0

Found in base branch: master

Vulnerability Details

TensorFlow is an end-to-end open source platform for machine learning. The TFLite computation for size of output after padding, ComputeOutSize(https://github.com/tensorflow/tensorflow/blob/0c9692ae7b1671c983569e5d3de5565843d500cf/tensorflow/lite/kernels/padding.h#L43-L55), does not check that the stride argument is not 0 before doing the division. Users can craft special models such that ComputeOutSize is called with stride set to 0. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.

Publish Date: 2021-05-14

URL: CVE-2021-29585

CVSS 3 Score Details (7.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-mv78-g7wq-mhp4

Release Date: 2021-05-14

Fix Resolution: org.tensorflow:tensorflow-lite:2.5.0

@mend-for-github-com mend-for-github-com bot added the security vulnerability Security vulnerability detected by WhiteSource label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants