CVE-2021-35958

TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a crafted archive when tf.keras.utils.get_file is used with extract=True

published June 30, 2021

CVSS
โ€”
EPSS
2%
Percentile
79.1
In the wild
Unconfirmed
What it is

๐Ÿšจ A crafted archive could let attackers overwrite any file on your system with TensorFlow up to version 2.5.0! Think of it like a delivery driver who can open and repackage your parcels without a proper inspection โ€” if they don't check what's inside, who knows what could slip through? ๐Ÿ“ฆ This vulnerability opens the door for an attacker to replace crucial files, potentially leading to system instability or data loss. If malicious content is executed, it could compromise your entire application!

Put simply

Think of it like a delivery driver who can open and repackage your parcels without a proper inspection โ€” if they don't check what's inside, who knows what could slip through? ๐Ÿ“ฆ When using tf.keras.utils.get_file with extract=True, TensorFlow fails to validate the contents of an archive properly, allowing arbitrary file overwrites. This poses a significant security risk if untrusted archives are processed.

What to do

This vulnerability opens the door for an attacker to replace crucial files, potentially leading to system instability or data loss. If malicious content is executed, it could compromise your entire application! To mitigate this, ensure you update TensorFlow to the latest version where this issue is resolved. Avoid using tf.keras.utils.get_file on untrusted sources or with extract=True for now. You've got this! Keep your systems safe by staying vigilant and following these steps! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01864 ยท 79.1th percentile
Published
2021-06-30T00:12Z
EPSS history
Timeline
  • 30 JUN 00:12Z
    TensorFlow through 2.5.0 allows attackers to overwrite arbitrary files via a crafted archive when tf.keras.utils.get_file is used with extract=True
    cvelistv5