cve-2023-48299
Vulnerability from cvelistv5
Published
2023-11-21 20:55
Modified
2024-08-02 21:23
Severity ?
EPSS score ?
Summary
TorchServe ZipSlip
References
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-02T21:23:39.504Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "name": "https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp" }, { "name": "https://github.com/pytorch/serve/pull/2634", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/pytorch/serve/pull/2634" }, { "name": "https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb" }, { "name": "https://github.com/pytorch/serve/releases/tag/v0.9.0", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/pytorch/serve/releases/tag/v0.9.0" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "serve", "vendor": "pytorch", "versions": [ { "status": "affected", "version": "\u003e= 0.1.0, \u003c 0.9.0" } ] } ], "descriptions": [ { "lang": "en", "value": "TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 5.3, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-22", "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2023-11-21T20:55:59.504Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp" }, { "name": "https://github.com/pytorch/serve/pull/2634", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/pytorch/serve/pull/2634" }, { "name": "https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb" }, { "name": "https://github.com/pytorch/serve/releases/tag/v0.9.0", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/pytorch/serve/releases/tag/v0.9.0" } ], "source": { "advisory": "GHSA-m2mj-pr4f-h9jp", "discovery": "UNKNOWN" }, "title": "TorchServe ZipSlip" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2023-48299", "datePublished": "2023-11-21T20:55:59.504Z", "dateReserved": "2023-11-14T17:41:15.571Z", "dateUpdated": "2024-08-02T21:23:39.504Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2023-48299\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2023-11-21T21:15:09.077\",\"lastModified\":\"2023-11-29T02:31:52.117\",\"vulnStatus\":\"Analyzed\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"TorchServe is a tool for serving and scaling PyTorch models in production. Starting in version 0.1.0 and prior to version 0.9.0, using the model/workflow management API, there is a chance of uploading potentially harmful archives that contain files that are extracted to any location on the filesystem that is within the process permissions. Leveraging this issue could aid third-party actors in hiding harmful code in open-source/public models, which can be downloaded from the internet, and take advantage of machines running Torchserve. The ZipSlip issue in TorchServe has been fixed by validating the paths of files contained within a zip archive before extracting them. TorchServe release 0.9.0 includes fixes to address the ZipSlip vulnerability.\"},{\"lang\":\"es\",\"value\":\"TorchServe es una herramienta para servir y escalar modelos de PyTorch en producci\u00f3n. A partir de la versi\u00f3n 0.1.0 y antes de la versi\u00f3n 0.9.0, al utilizar la API de administraci\u00f3n de modelo/flujo de trabajo, existe la posibilidad de cargar archivos potencialmente da\u00f1inos que contengan archivos extra\u00eddos a cualquier ubicaci\u00f3n del sistema de archivos que est\u00e9 dentro de los permisos del proceso. Aprovechar este problema podr\u00eda ayudar a terceros a ocultar c\u00f3digo da\u00f1ino en modelos p\u00fablicos/de c\u00f3digo abierto, que se pueden descargar de Internet, y aprovechar las m\u00e1quinas que ejecutan Torchserve. El problema de Zipslip en TorchServe se solucion\u00f3 validando las rutas de los archivos contenidos en un archivo zip antes de extraerlos. La versi\u00f3n 0.9.0 de TorchServe incluye correcciones para abordar la vulnerabilidad Zipslip.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\"},\"exploitabilityScore\":3.9,\"impactScore\":1.4},{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\"},\"exploitabilityScore\":3.9,\"impactScore\":1.4}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-22\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:pytorch:torchserve:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"0.1.0\",\"versionEndExcluding\":\"0.9.0\",\"matchCriteriaId\":\"F958D5AE-E57F-4C08-A946-D75B9857CD1B\"}]}]}],\"references\":[{\"url\":\"https://github.com/pytorch/serve/commit/bfb3d42396727614aef625143b4381e64142f9bb\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\"]},{\"url\":\"https://github.com/pytorch/serve/pull/2634\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\"]},{\"url\":\"https://github.com/pytorch/serve/releases/tag/v0.9.0\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Release Notes\"]},{\"url\":\"https://github.com/pytorch/serve/security/advisories/GHSA-m2mj-pr4f-h9jp\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Vendor Advisory\"]}]}}" } }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.