{"id":"CVE-2026-119328","state":"PUBLISHED","title":"Immich: Unauthenticated filesystem path injection (arbitrary directory write + recursive delete) in the machine-learning service","description":"Immich is a high-performance self-hosted photo and video management solution. Prior to 3.3.0, the unauthenticated machine-learning /predict endpoint in machine-learning/immich_ml/main.py accepted an options object and passed its values into model construction in machine-learning/immich_ml/models/base.py without restricting security-sensitive parameters. An attacker with network access to the service could set cache_dir to an arbitrary writable path, causing model downloads to write there and causing clear_cache() to pass that path to shutil.rmtree() after selected model-loading failures. Depending on filesystem permissions and the selected path, this could modify files in mounted data locations or recursively delete an attacker-selected directory. The model-name allowlist prevents this issue from becoming arbitrary-model deserialization or code execution. This issue is fixed in version 3.3.0.","publishedAt":"2026-10-30T19:50:02.460Z","updatedAt":"2026-10-30T19:50:02.460Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["immich-app immich"],"affected":[{"vendor":"immich-app","product":"immich","versions":[{"version":"< 3.3.0","status":"affected"}]}],"references":["https://github.com/immich-app/immich/security/advisories/GHSA-72rm-x7xr-v679","https://github.com/immich-app/immich/pull/31856","https://github.com/immich-app/immich/commit/ab159b81182f26a8943f5dd66b719e8cdaad4626","https://github.com/immich-app/immich/releases/tag/v3.3.0"],"weaknesses":["CWE-22","CWE-73"],"ingestedAt":"2026-10-30T20:00:06.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119328.json","commit":"c38e2e77a87db0e463f8aa35621676635c6b16df","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119328","state":"PUBLISHED","datePublished":"2026-10-30T19:50:02.460Z","dateUpdated":"2026-10-30T19:50:02.460Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T20:44:30.284Z"},"containers":{"cna":{"title":"Immich: Unauthenticated filesystem path injection (arbitrary directory write + recursive delete) in the machine-learning service","descriptions":[{"lang":"en","value":"Immich is a high-performance self-hosted photo and video management solution. Prior to 3.3.0, the unauthenticated machine-learning /predict endpoint in machine-learning/immich_ml/main.py accepted an options object and passed its values into model construction in machine-learning/immich_ml/models/base.py without restricting security-sensitive parameters. An attacker with network access to the service could set cache_dir to an arbitrary writable path, causing model downloads to write there and causing clear_cache() to pass that path to shutil.rmtree() after selected model-loading failures. Depending on filesystem permissions and the selected path, this could modify files in mounted data locations or recursively delete an attacker-selected directory. The model-name allowlist prevents this issue from becoming arbitrary-model deserialization or code execution. This issue is fixed in version 3.3.0."}],"affected":[{"vendor":"immich-app","product":"immich","versions":[{"version":"< 3.3.0","status":"affected"}]}],"references":[{"url":"https://github.com/immich-app/immich/security/advisories/GHSA-72rm-x7xr-v679","name":"https://github.com/immich-app/immich/security/advisories/GHSA-72rm-x7xr-v679","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/immich-app/immich/pull/31856","name":"https://github.com/immich-app/immich/pull/31856","tags":["x_refsource_MISC"]},{"url":"https://github.com/immich-app/immich/commit/ab159b81182f26a8943f5dd66b719e8cdaad4626","name":"https://github.com/immich-app/immich/commit/ab159b81182f26a8943f5dd66b719e8cdaad4626","tags":["x_refsource_MISC"]},{"url":"https://github.com/immich-app/immich/releases/tag/v3.3.0","name":"https://github.com/immich-app/immich/releases/tag/v3.3.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.5,"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:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-73","lang":"en","description":"CWE-73: External Control of File Name or Path","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T19:50:02.460Z"},"source":{"advisory":"GHSA-72rm-x7xr-v679","discovery":"UNKNOWN"}}}}}