Vulnerabilities in pkg:pypi/intel-tensorflow

PACKAGE
Advisory Identifier: GHSA-m2f8-v8q4-3m59
Advisory Summary

CVE-2023-27506 is a MODERATE (CVSS 5.5) authenticated local privilege escalation vulnerability vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Intel tensorflow libraries in the PyPI ecosystem. The issue involves authenticated local privilege escalation vulnerability in intel optimization for tensorflow. Remediation is available by upgrading affected packages to version 2.12.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/intel-tensorflow

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/intel-tensorflow. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m2f8-v8q4-3m59 CVE-2023-27506 MODERATE Authenticated Local Privilege Escalation vulnerability in Intel Optimization for Tensorflow

CVE-2023-27506 at a Glance

CVE Identifier CVE-2023-27506
GHSA Identifier GHSA-m2f8-v8q4-3m59
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Intel tensorflow
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2023-27506

To remediate this vulnerability, upgrade all affected Intel tensorflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

intel-tensorflow fixed: 2.12
pip install intel-tensorflow>=2.12
tensorflow-intel fixed: 2.12
pip install tensorflow-intel>=2.12
intel-tensorflow-avx512 fixed: 2.12
pip install intel-tensorflow-avx512>=2.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show intel-tensorflow

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-27506, inspect your installed packages using pip:

pip show intel-tensorflow

Analyze the terminal output to locate any version of Intel tensorflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.12), your application is affected.

Note: The pip show intel-tensorflow command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Intel tensorflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Improper buffer restrictions in the Intel(R) Optimization for Tensorflow software before version 2.12 may allow an authenticated user to potentially enable escalation of privilege via local access.

CVE-2023-27506 Affected Intel tensorflow Versions

3 component(s)
Fixed Versions:
2.12
Product / Package Ecosystem Affected Versions Fixed Version
intel-tensorflow
PyPI
< 2.12
2.12
tensorflow-intel
PyPI
< 2.12
2.12
intel-tensorflow-avx512
PyPI
< 2.12
2.12

References

Frequently Asked Questions

What is CVE-2023-27506?
CVE-2023-27506 is a security vulnerability in Intel tensorflow involving Authenticated Local Privilege Escalation vulnerability in Intel Optimization for Tensorflow under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Intel tensorflow versions are affected?
Affected versions include releases prior to 2.12 across affected packages: intel-tensorflow, tensorflow-intel, intel-tensorflow-avx512.
What version fixes CVE-2023-27506?
Upgrading to 2.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is intel-tensorflow affected?
Yes, intel-tensorflow is affected in releases prior to 2.12. Upgrade your dependency to 2.12 or later.
Is tensorflow-intel affected?
Yes, tensorflow-intel is affected in releases prior to 2.12. Upgrade your dependency to 2.12 or later.
What is the CVSS score of CVE-2023-27506?
CVE-2023-27506 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2023-27506?
CVE-2023-27506 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check PyPI dependencies for CVE-2023-27506?
Run the dependency tree command: 'pip show intel-tensorflow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m2f8-v8q4-3m59",
  "modified" : "2023-09-01T21:36:28Z",
  "published" : "2023-08-11T03:30:21Z",
  "aliases" : [ "CVE-2023-27506" ],
  "summary" : "Authenticated Local Privilege Escalation vulnerability in Intel Optimization for Tensorflow",
  "details" : "Improper buffer restrictions in the Intel(R) Optimization for Tensorflow software before version 2.12 may allow an authenticated user to potentially enable escalation of privilege via local access.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "intel-tensorflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "tensorflow-intel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "intel-tensorflow-avx512"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-27506"
  }, {
    "type" : "WEB",
    "url" : "http://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00840.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-01T21:36:28Z",
    "nvd_published_at" : "2023-08-11T03:15:23Z"
  }
}