← Back to CVE Explorer

CVE-2026-12479

Full vulnerability record from the local CVENow database.

Description

A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations.

Severity
MEDIUM
CVSS score
6.1 (v3.0)
Vulnerability status
Deferred
Source identifier
Published
2026-06-22 16:16:33.953000
Last modified
2026-10-25 23:10:00.167000
View original CVE JSON
{
  "id": "CVE-2026-12479",
  "sourceIdentifier": "[email protected]",
  "published": "2026-06-22T16:16:33.953",
  "lastModified": "2026-10-25T23:10:00.167",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provided layer names, which are used to construct directory paths without sanitizing for parent directory components (`..`). While forward slashes (`/`) are restricted in layer names, directory traversal sequences are not. This allows an attacker to craft a malicious Keras model that, when saved or loaded, can escape the intended temporary working directory and perform unauthorized file system operations, such as creating directories or writing files in arbitrary locations."
    },
    {
      "lang": "es",
      "value": "Una vulnerabilidad de salto de ruta existe en keras-team/keras versión 3.14.0, específicamente en el método ’DiskIOStore.make’ dentro de la biblioteca de guardado y carga de modelos de Keras 3. Esta vulnerabilidad surge del manejo inadecuado de los nombres de capa proporcionados por el usuario, que se utilizan para construir rutas de directorio sin sanear los componentes de directorio padre (’..’). Aunque las barras diagonales (’/’) están restringidas en los nombres de capa, las secuencias de salto de directorio no lo están. Esto permite a un atacante crear un modelo Keras malicioso que, cuando se guarda o se carga, puede escapar del directorio de trabajo temporal previsto y realizar operaciones no autorizadas en el sistema de archivos, como crear directorios o escribir archivos en ubicaciones arbitrarias."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "keras-team",
          "product": "keras-team/keras",
          "versions": [
            {
              "version": "unspecified",
              "lessThanOrEqual": "latest",
              "versionType": "custom",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV30": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.0",
          "vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L",
          "baseScore": 6.1,
          "baseSeverity": "MEDIUM",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "LOW"
        },
        "exploitabilityScore": 1.8,
        "impactScore": 3.7
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-06-22T16:29:31.140873Z",
          "id": "CVE-2026-12479",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-22"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743",
      "source": "[email protected]"
    },
    {
      "url": "https://huntr.com/bounties/188836b9-12fc-49c7-8dbf-04f60fe33743",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
    }
  ]
}