CVE-2022-23585
Memory leak in decoding PNG images in Tensorflow
Tensorflow is an Open Source Machine Learning Framework. When decoding PNG images TensorFlow can produce a memory leak if the image is invalid. After calling `png::CommonInitDecode(..., &decode)`, the `decode` value contains allocated buffers which can only be freed by calling `png::CommonFreeDecode(&decode)`. However, several error case in the function implementation invoke the `OP_REQUIRES` macro which immediately terminates the execution of the function, without allowing for the memory free to occur. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.000% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.3 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:56:22.714Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:22.714Z | CVE Program |
| epss | verified | 2026-11-19T16:04:32.877Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:25.779Z | OSV |
| affected | verified | 2026-11-19T12:56:22.714Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:22.714Z | CVE Program |
Affected versions and configuration
tensorflow tensorflow; default status: unknown: < 2.5.3 [affected; scheme: unspecified]; >= 2.6.0, < 2.6.3 [affected; scheme: unspecified]; >= 2.7.0, < 2.7.1 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "tensorflow",
"product": "tensorflow",
"versions": [
{
"status": "affected",
"version": "< 2.5.3"
},
{
"status": "affected",
"version": ">= 2.6.0, < 2.6.3"
},
{
"status": "affected",
"version": ">= 2.7.0, < 2.7.1"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-fq6p-6334-8gr4",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/tensorflow/tensorflow/commit/ab51e5b813573dc9f51efa335aebcf2994125ee9",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/kernels/image/decode_image_op.cc#L322-L416",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T03:43:46.959Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-23585",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-22T15:50:17.637283Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-22T18:24:37.595Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-fq6p-6334-8gr4",
"aliases": [
"BIT-tensorflow-2022-23585",
"CVE-2022-23585",
"PYSEC-2022-149",
"PYSEC-2022-94",
"PYSEC-2026-3174"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.5.3"
}
]
}
],
"package": {
"name": "tensorflow",
"purl": "pkg:pypi/tensorflow",
"ecosystem": "PyPI"
},
"versions": [
"0.12.0",
"0.12.1",
"1.0.0",
"1.0.1",
"1.1.0",
"1.10.0",
"1.10.1",
"1.11.0",
"1.12.0",
"1.12.2",
"1.12.3",
"1.13.1",
"1.13.2",
"1.14.0",
"1.15.0",
"1.15.2",
"1.15.3",
"1.15.4",
"1.15.5",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.4.1",
"1.5.0",
"1.5.1",
"1.6.0",
"1.7.0",
"1.7.1",
"1.8.0",
"1.9.0",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.4",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.1.4",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.3.0",
"2.3.1",
"2.3.2",
"2.3.3",
"2.3.4",
"2.4.0",
"2.4.1",
"2.4.2",
"2.4.3",
"2.4.4",
"2.5.0",
"2.5.1",
"2.5.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-fq6p-6334-8gr4/GHSA-fq6p-6334-8gr4.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.0"
},
{
"fixed": "2.6.3"
}
]
}
],
"package": {
"name": "tensorflow",
"purl": "pkg:pypi/tensorflow",
"ecosystem": "PyPI"
},
"versions": [
"2.6.0",
"2.6.1",
"2.6.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-fq6p-6334-8gr4/GHSA-fq6p-6334-8gr4.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.1"
}
]
}
],
"package": {
"name": "tensorflow",
"purl": "pkg:pypi/tensorflow",
"ecosystem": "PyPI"
},
"versions": [
"2.7.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-fq6p-6334-8gr4/GHSA-fq6p-6334-8gr4.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-fq6p-6334-8gr4",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23585",
"type": "ADVISORY"
},
{
"url": "https://github.com/tensorflow/tensorflow/commit/ab51e5b813573dc9f51efa335aebcf2994125ee9",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-94.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-149.yaml",
"type": "WEB"
},
{
"url": "https://github.com/tensorflow/tensorflow",
"type": "WEB"
},
{
"url": "https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/kernels/image/decode_image_op.cc#L322-L416",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-401"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-02-04T23:15:00Z",
"github_reviewed_at": "2022-02-04T19:09:09Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2026-3174",
"aliases": [
"BIT-tensorflow-2022-23585",
"CVE-2022-23585",
"GHSA-fq6p-6334-8gr4",
"PYSEC-2022-149",
"PYSEC-2022-94"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.5.3"
},
{
"introduced": "2.6.0"
},
{
"fixed": "2.6.3"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.1"
}
]
}
],
"package": {
"name": "tensorflow",
"purl": "pkg:pypi/tensorflow",
"ecosystem": "PyPI"
},
"versions": [
"0.12.0",
"0.12.1",
"1.0.0",
"1.0.1",
"1.1.0",
"1.10.0",
"1.10.1",
"1.11.0",
"1.12.0",
"1.12.2",
"1.12.3",
"1.13.1",
"1.13.2",
"1.14.0",
"1.15.0",
"1.15.2",
"1.15.3",
"1.15.4",
"1.15.5",
"1.2.0",
"1.2.1",
"1.3.0",
"1.4.0",
"1.4.1",
"1.5.0",
"1.5.1",
"1.6.0",
"1.7.0",
"1.7.1",
"1.8.0",
"1.9.0",
"2.0.0",
"2.0.1",
"2.0.2",
"2.0.3",
"2.0.4",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.1.4",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.3.0",
"2.3.1",
"2.3.2",
"2.3.3",
"2.3.4",
"2.4.0",
"2.4.1",
"2.4.2",
"2.4.3",
"2.4.4",
"2.5.0",
"2.5.1",
"2.5.2",
"2.6.0",
"2.6.1",
"2.6.2",
"2.7.0"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/tensorflow/PYSEC-2026-3174.yaml"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/tensorflow/tensorflow/security/advisories/GHSA-fq6p-6334-8gr4",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23585",
"type": "ADVISORY"
},
{
"url": "https://github.com/tensorflow/tensorflow/commit/ab51e5b813573dc9f51efa335aebcf2994125ee9",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2022-94.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2022-149.yaml",
"type": "WEB"
},
{
"url": "https://github.com/tensorflow/tensorflow",
"type": "WEB"
},
{
"url": "https://github.com/tensorflow/tensorflow/blob/a1320ec1eac186da1d03f033109191f715b2b130/tensorflow/core/kernels/image/decode_image_op.cc#L322-L416",
"type": "WEB"
},
{
"url": "https://pypi.org/project/tensorflow",
"type": "PACKAGE"
},
{
"url": "https://github.com/advisories/GHSA-fq6p-6334-8gr4",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | tensorflow | Not a distribution channel | 2.5.3 | Official record |
| ecosystem-boundary | PyPI / package | tensorflow | Not a distribution channel | 2.6.3 | Official record |
| ecosystem-boundary | PyPI / package | tensorflow | Not a distribution channel | 2.7.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:25.779ZArchived source JSON
Source publication: 2022-02-09T23:26:08.000Z
Source modification: 2026-07-13T16:42:55.799ZDocument fingerprint
6b66acdb43a5480f1f679058664e2b6acc74ebc493bad1f43077f2343349fdb9 - OSVConsulted: 2026-11-19T12:52:25.779ZArchived source JSON
Source publication: 2026-07-09T16:49:39.452Z
Source modification: 2026-07-13T16:42:55.799ZDocument fingerprint
6b66acdb43a5480f1f679058664e2b6acc74ebc493bad1f43077f2343349fdb9 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:56:22.714ZArchived source JSON
Source publication: 2022-02-04T22:32:27.000Z
Source modification: 2025-04-22T18:24:37.595ZDocument fingerprint
3c890b92db2f9fb7e1ecc89476dc8934623a541049298710e67a8e4da29630ec - FIRST EPSSConsulted: 2026-11-19T16:04:32.877ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09692db23ae991b23210d76fe49e08c229368c3f28b258bdb2be98d30dab7493
Official status history
- UNKNOWN → PUBLISHED · · evidence