{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-123974",
    "assignerOrgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
    "state": "PUBLISHED",
    "assignerShortName": "Akrites",
    "dateReserved": "2026-11-06T17:53:03.966Z",
    "datePublished": "2026-11-06T19:52:16.058Z",
    "dateUpdated": "2026-11-06T20:18:25.863Z"
  },
  "containers": {
    "cna": {
      "title": "pytorch/serve: Local privilege escalation through insecure temporary path",
      "datePublic": "2026-10-29T15:00:00.000Z",
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "cweId": "CWE-379",
              "description": "CWE-379 Creation of temporary file in directory with insecure permissions",
              "type": "CWE"
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "PyTorch",
          "product": "TorchServe",
          "repo": "https://github.com/pytorch/serve",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "*",
              "versionType": "semver"
            }
          ],
          "defaultStatus": "unknown"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In all versions of PyTorch's TorchServe, a predictable extraction directory in /tmp lets a local user swap the model handler and run code as the TorchServe service account leading to local privilege escalation."
        }
      ],
      "tags": [
        "unsupported-when-assigned"
      ],
      "references": [
        {
          "url": "https://christbowel.com/blog/torchserve-lpe/"
        },
        {
          "url": "https://github.com/Christbowel/torchserve-lpe"
        }
      ],
      "metrics": [
        {
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ],
          "cvssV3_1": {
            "version": "3.1",
            "attackVector": "LOCAL",
            "attackComplexity": "LOW",
            "privilegesRequired": "LOW",
            "userInteraction": "NONE",
            "scope": "UNCHANGED",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "availabilityImpact": "HIGH",
            "baseSeverity": "HIGH",
            "baseScore": 7.8,
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
          }
        }
      ],
      "workarounds": [
        {
          "lang": "en",
          "value": "Three independent fixes:\n\n\n  *  Set TEMP (or pass -Djava.io.tmpdir) to a directory the service account owns and that is not world-writable.\n  *  Harden the systemd unit with PrivateTmp=yes, so /tmp is namespaced per service.\n  *  At the code level, extract into a directory owned by the service account and refuse to reuse a pre-existing extraction root that the service does not own, instead of forceMkdir-ing into whatever is already there."
        }
      ],
      "solutions": [
        {
          "lang": "en",
          "value": "The project is archived and currently no permanent solution is scheduled for release. See workaround section."
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Christ Bowel",
          "type": "finder"
        }
      ],
      "providerMetadata": {
        "orgId": "7fefd608-56a6-419f-a002-fd8543c0710a",
        "shortName": "Akrites",
        "dateUpdated": "2026-11-06T19:52:16.058Z"
      },
      "x_generator": {
        "engine": "cvelib 1.8.0"
      }
    },
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "type": "ssvc",
              "content": {
                "timestamp": "2026-11-06T20:18:09.099163Z",
                "id": "CVE-2026-123974",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "version": "2.0.3"
              }
            }
          }
        ],
        "title": "CISA ADP Vulnrichment",
        "providerMetadata": {
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP",
          "dateUpdated": "2026-11-06T20:18:25.863Z"
        }
      }
    ]
  }
}
