keras — security advisory
Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.
- Products
- keras
- Affected versions
- 1.0.7-2, 2.1.1-1, 2.2.4-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-0897
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 17:14 UTC · Revision 1
Source evidence
Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.
osv:UBUNTU-CVE-2026-0897
keras
Fixed versions: Not specified
keras
Fixed versions: Not specified
Complete source record
{
"id": "796198fa32156d19a77be4e20fcc3037f3d9e3f40d357b8a519d3030ca56d8eb",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-0897",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-0897",
"summary": "Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.",
"evidence": "osv:UBUNTU-CVE-2026-0897",
"products": [
{
"name": {
"value": "keras",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.7-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.1.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "keras",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.2.4-1",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-0897",
"aliases": [
"UBUNTU-CVE-2026-0897"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "keras",
"purl": "pkg:deb/ubuntu/keras?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.0.7-2",
"2.1.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-keras",
"binary_version": "2.1.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "keras",
"purl": "pkg:deb/ubuntu/keras?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.2.4-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0897.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-keras",
"binary_version": "2.2.4-1"
}
]
}
}
],
"modified": "2026-10-27T04:15:33.671779771Z",
"provider": "osv",
"upstream": [
"CVE-2026-0897"
],
"references": [
"https://ubuntu.com/security/CVE-2026-0897",
"https://www.cve.org/CVERecord?id=CVE-2026-0897",
"https://github.com/keras-team/keras/pull/21880"
]
},
"related_cves": [
{
"value": "CVE-2026-0897",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 460173,
"published_at": "2026-01-15T14:16:00+00:00"
}