gsd-2021-35958
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
** DISPUTED ** 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. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives.
Aliases
Aliases



{
   GSD: {
      alias: "CVE-2021-35958",
      description: "** DISPUTED ** 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. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives.",
      id: "GSD-2021-35958",
      references: [
         "https://security.archlinux.org/CVE-2021-35958",
      ],
   },
   gsd: {
      metadata: {
         exploitCode: "unknown",
         remediation: "unknown",
         reportConfidence: "confirmed",
         type: "vulnerability",
      },
      osvSchema: {
         aliases: [
            "CVE-2021-35958",
         ],
         details: "** DISPUTED ** 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. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives.",
         id: "GSD-2021-35958",
         modified: "2023-12-13T01:23:27.894296Z",
         schema_version: "1.4.0",
      },
   },
   namespaces: {
      "cve.org": {
         CVE_data_meta: {
            ASSIGNER: "cve@mitre.org",
            ID: "CVE-2021-35958",
            STATE: "PUBLIC",
         },
         affects: {
            vendor: {
               vendor_data: [
                  {
                     product: {
                        product_data: [
                           {
                              product_name: "n/a",
                              version: {
                                 version_data: [
                                    {
                                       version_value: "n/a",
                                    },
                                 ],
                              },
                           },
                        ],
                     },
                     vendor_name: "n/a",
                  },
               ],
            },
         },
         data_format: "MITRE",
         data_type: "CVE",
         data_version: "4.0",
         description: {
            description_data: [
               {
                  lang: "eng",
                  value: "** DISPUTED ** 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. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives.",
               },
            ],
         },
         problemtype: {
            problemtype_data: [
               {
                  description: [
                     {
                        lang: "eng",
                        value: "n/a",
                     },
                  ],
               },
            ],
         },
         references: {
            reference_data: [
               {
                  name: "https://vuln.ryotak.me/advisories/52",
                  refsource: "MISC",
                  url: "https://vuln.ryotak.me/advisories/52",
               },
               {
                  name: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137",
                  refsource: "MISC",
                  url: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137",
               },
               {
                  name: "https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall",
                  refsource: "MISC",
                  url: "https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall",
               },
               {
                  name: "https://keras.io/api/",
                  refsource: "MISC",
                  url: "https://keras.io/api/",
               },
               {
                  name: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md",
                  refsource: "MISC",
                  url: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md",
               },
            ],
         },
      },
      "gitlab.com": {
         advisories: [
            {
               affected_range: "<=2.5.0",
               affected_versions: "All versions up to 2.5.0",
               cvss_v2: "AV:N/AC:L/Au:N/C:N/I:P/A:P",
               cvss_v3: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
               cwe_ids: [
                  "CWE-1035",
                  "CWE-668",
                  "CWE-937",
               ],
               date: "2021-07-06",
               description: "TensorFlow allows attackers to overwrite arbitrary files via a crafted archive when `tf.keras.utils.get_file` is used with `extract=True`. NOTE: the vendor's position is that `tf.keras.utils.get_file` is not intended for untrusted archives.",
               fixed_versions: [],
               identifier: "CVE-2021-35958",
               identifiers: [
                  "CVE-2021-35958",
               ],
               not_impacted: "",
               package_slug: "pypi/tensorflow-cpu",
               pubdate: "2021-06-30",
               solution: "Unfortunately, there is no solution available yet.",
               title: "Exposure of Resource to Wrong Sphere",
               urls: [
                  "https://nvd.nist.gov/vuln/detail/CVE-2021-35958",
               ],
               uuid: "3419ac50-a27a-4972-bfda-968304be44a7",
            },
            {
               affected_range: "<=2.5.0",
               affected_versions: "All versions up to 2.5.0",
               cvss_v2: "AV:N/AC:L/Au:N/C:N/I:P/A:P",
               cvss_v3: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
               cwe_ids: [
                  "CWE-1035",
                  "CWE-668",
                  "CWE-937",
               ],
               date: "2021-07-06",
               description: "TensorFlow allows attackers to overwrite arbitrary files via a crafted archive when `tf.keras.utils.get_file` is used with `extract=True`. NOTE: the vendor's position is that `tf.keras.utils.get_file` is not intended for untrusted archives.",
               fixed_versions: [],
               identifier: "CVE-2021-35958",
               identifiers: [
                  "CVE-2021-35958",
               ],
               not_impacted: "",
               package_slug: "pypi/tensorflow-gpu",
               pubdate: "2021-06-30",
               solution: "Unfortunately, there is no solution available yet.",
               title: "Exposure of Resource to Wrong Sphere",
               urls: [
                  "https://nvd.nist.gov/vuln/detail/CVE-2021-35958",
               ],
               uuid: "1e7a5f22-b033-430d-add3-fe9ab7b7138d",
            },
            {
               affected_range: "<=2.5.0",
               affected_versions: "All versions up to 2.5.0",
               cvss_v2: "AV:N/AC:L/Au:N/C:N/I:P/A:P",
               cvss_v3: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
               cwe_ids: [
                  "CWE-1035",
                  "CWE-668",
                  "CWE-937",
               ],
               date: "2021-08-17",
               description: "TensorFlow allows attackers to overwrite arbitrary files via a crafted archive when `tf.keras.utils.get_file` is used with `extract=True`. NOTE: the vendor's position is that `tf.keras.utils.get_file` is not intended for untrusted archives.",
               fixed_versions: [
                  "2.5.1",
               ],
               identifier: "CVE-2021-35958",
               identifiers: [
                  "CVE-2021-35958",
               ],
               not_impacted: "All versions after 2.5.0",
               package_slug: "pypi/tensorflow",
               pubdate: "2021-06-30",
               solution: "Upgrade to version 2.5.1 or above.",
               title: "Exposure of Resource to Wrong Sphere",
               urls: [
                  "https://nvd.nist.gov/vuln/detail/CVE-2021-35958",
               ],
               uuid: "30eb3772-6d5d-46fb-b682-329cd5dd21c6",
            },
         ],
      },
      "nvd.nist.gov": {
         cve: {
            configurations: [
               {
                  nodes: [
                     {
                        cpeMatch: [
                           {
                              criteria: "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
                              matchCriteriaId: "2988ABC1-B9B2-4142-9DE6-CB591813D2D4",
                              versionEndIncluding: "2.5.0",
                              vulnerable: true,
                           },
                        ],
                        negate: false,
                        operator: "OR",
                     },
                  ],
               },
            ],
            descriptions: [
               {
                  lang: "en",
                  value: "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. NOTE: the vendor's position is that tf.keras.utils.get_file is not intended for untrusted archives",
               },
               {
                  lang: "es",
                  value: "** EN DISPUTA ** TensorFlow versiones hasta 2.5.0, permite a atacantes sobrescribir archivos arbitrarios por medio de un archivo diseñado cuando se usa la función tf.keras.utils.get_file con  extract=True. NOTA: la posición del proveedor es que la función tf.keras.utils.get_file no está pensado para archivos no confiables",
               },
            ],
            id: "CVE-2021-35958",
            lastModified: "2024-04-11T01:12:08.343",
            metrics: {
               cvssMetricV2: [
                  {
                     acInsufInfo: false,
                     baseSeverity: "MEDIUM",
                     cvssData: {
                        accessComplexity: "LOW",
                        accessVector: "NETWORK",
                        authentication: "NONE",
                        availabilityImpact: "PARTIAL",
                        baseScore: 6.4,
                        confidentialityImpact: "NONE",
                        integrityImpact: "PARTIAL",
                        vectorString: "AV:N/AC:L/Au:N/C:N/I:P/A:P",
                        version: "2.0",
                     },
                     exploitabilityScore: 10,
                     impactScore: 4.9,
                     obtainAllPrivilege: false,
                     obtainOtherPrivilege: false,
                     obtainUserPrivilege: false,
                     source: "nvd@nist.gov",
                     type: "Primary",
                     userInteractionRequired: false,
                  },
               ],
               cvssMetricV31: [
                  {
                     cvssData: {
                        attackComplexity: "LOW",
                        attackVector: "NETWORK",
                        availabilityImpact: "HIGH",
                        baseScore: 9.1,
                        baseSeverity: "CRITICAL",
                        confidentialityImpact: "NONE",
                        integrityImpact: "HIGH",
                        privilegesRequired: "NONE",
                        scope: "UNCHANGED",
                        userInteraction: "NONE",
                        vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
                        version: "3.1",
                     },
                     exploitabilityScore: 3.9,
                     impactScore: 5.2,
                     source: "nvd@nist.gov",
                     type: "Primary",
                  },
               ],
            },
            published: "2021-06-30T01:15:07.033",
            references: [
               {
                  source: "cve@mitre.org",
                  tags: [
                     "Third Party Advisory",
                  ],
                  url: "https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall",
               },
               {
                  source: "cve@mitre.org",
                  tags: [
                     "Third Party Advisory",
                  ],
                  url: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/README.md",
               },
               {
                  source: "cve@mitre.org",
                  tags: [
                     "Third Party Advisory",
                  ],
                  url: "https://github.com/tensorflow/tensorflow/blob/b8cad4c631096a34461ff8a07840d5f4d123ce32/tensorflow/python/keras/utils/data_utils.py#L137",
               },
               {
                  source: "cve@mitre.org",
                  tags: [
                     "Third Party Advisory",
                  ],
                  url: "https://keras.io/api/",
               },
               {
                  source: "cve@mitre.org",
                  tags: [
                     "Third Party Advisory",
                  ],
                  url: "https://vuln.ryotak.me/advisories/52",
               },
            ],
            sourceIdentifier: "cve@mitre.org",
            vulnStatus: "Modified",
            weaknesses: [
               {
                  description: [
                     {
                        lang: "en",
                        value: "CWE-22",
                     },
                  ],
                  source: "nvd@nist.gov",
                  type: "Primary",
               },
            ],
         },
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.