{"id":"OESA-2025-2691","summary":"python-Keras security update","details":"Keras is a high-level neural networks API for Python.\r\n\r\nSecurity Fix(es):\n\nThe Keras.Model.load_model method, including when executed with the intended security mitigation safe_mode=True, is vulnerable to arbitrary local file loading and Server-Side Request Forgery (SSRF).\n\n\nThis vulnerability stems from the way the StringLookup layer is handled during model loading from a specially crafted .keras archive. The constructor for the StringLookup layer accepts a vocabulary argument that can specify a local file path or a remote file path.\n\n  *  Arbitrary Local File Read: An attacker can create a malicious .keras file that embeds a local path in the StringLookup layer&apos;s configuration. When the model is loaded, Keras will attempt to read the content of the specified local file and incorporate it into the model state (e.g., retrievable via get_vocabulary()), allowing an attacker to read arbitrary local files on the hosting system.\n\n\n  *  Server-Side Request Forgery (SSRF): Keras utilizes tf.io.gfile for file operations. Since tf.io.gfile supports remote filesystem handlers (such as GCS and HDFS) and HTTP/HTTPS protocols, the same mechanism can be leveraged to fetch content from arbitrary network endpoints on the server&apos;s behalf, resulting in an SSRF condition.\n\n\nThe security issue is that the feature allowing external path loading was not properly restricted by the safe_mode=True flag, which was intended to prevent such unintended data access.(CVE-2025-12058)","modified":"2026-08-18T01:19:19.949761160Z","published":"2025-11-14T11:09:48Z","upstream":["CVE-2025-12058"],"database_specific":{"severity":"Medium"},"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-2691"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12058"}],"affected":[{"package":{"name":"python-Keras","ecosystem":"openEuler:24.03-LTS","purl":"pkg:rpm/openEuler/python-Keras&distro=openEuler-24.03-LTS"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12.0-2.oe2403"}]}],"ecosystem_specific":{"src":["python-Keras-2.12.0-2.oe2403.src.rpm"],"noarch":["python-Keras-help-2.12.0-2.oe2403.noarch.rpm","python3-Keras-2.12.0-2.oe2403.noarch.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2025-2691.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"}]}