# CVE-2022-36012: Assertion fail on MLIR empty edge names in TensorFlow

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 54% of CVEs (2026-12-01)
- Published: 2022-09-16T21:19:48.000Z
- Modified: 2026-09-08T08:48:20.447Z
- Also known as: GHSA-jvhc-5hhr-w3v5, BIT-TENSORFLOW-2022-36012, PYSEC-2026-1015, PYSEC-2026-3210, PYSEC-2026-3347
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

TensorFlow is an open source platform for machine learning. When `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it crashes. We have patched the issue in GitHub commit ad069af92392efee1418c48ff561fd3070a03d7b. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 2.7.2; >= 2.8.0, < 2.8.1; >= 2.9.0, < 2.9.1
- tensorflow (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- tensorflow-cpu (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- tensorflow-gpu (PyPI): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1
- google tensorflow: before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1; 2.10
- tensorflow (Bitnami): before 2.7.2; from 2.8.0 before 2.8.1; from 2.9.0 before 2.9.1

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jvhc-5hhr-w3v5> (advisory, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/ad069af92392efee1418c48ff561fd3070a03d7b> (advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/importexport/functiondef_import.cc> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36012> (advisory, web)
- <https://github.com/tensorflow/tensorflow> (package)
- <https://github.com/tensorflow/tensorflow/releases/tag/v2.10.0> (web)
- <https://pypi.org/project/tensorflow-gpu> (package)
- <https://github.com/advisories/GHSA-jvhc-5hhr-w3v5> (advisory)
- <https://pypi.org/project/tensorflow> (package)
- <https://pypi.org/project/tensorflow-cpu> (package)

## Sources

- CVE List: [CVE-2022-36012](https://www.cve.org/CVERecord?id=CVE-2022-36012), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-jvhc-5hhr-w3v5](https://github.com/advisories/GHSA-jvhc-5hhr-w3v5), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2022-36012](https://nvd.nist.gov/vuln/detail/CVE-2022-36012), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1015](https://osv.dev/vulnerability/PYSEC-2026-1015), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-3210](https://osv.dev/vulnerability/PYSEC-2026-3210), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-3347](https://osv.dev/vulnerability/PYSEC-2026-3347), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2022-36012](https://osv.dev/vulnerability/BIT-TENSORFLOW-2022-36012), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-36012 · Whole record: https://cve.day/CVE-2022-36012.json · Rebuilt by cve.day 2026-11-25T22:58:15.080Z
