Authenticated SVG uploads enable code execution in immich-app Immich

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-105764?

CVE-2026-105764 is a vulnerability classified as Improper Control of Generation of Code, affecting immich (affected versions: < 3.2.4). This vulnerability is rated High, with a CVSS score of 7.7. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Immich is a high-performance self-hosted photo and video management solution. Prior to 3.2.4, an authenticated non-admin user could upload SVG files that thumbnail-generation code in server/src/repositories/media.repository.ts passed to libvips. Files that bypassed libvips' native SVG loader fell through to ImageMagick, where attacker-controlled <image href> values reached unrestricted MSL and VIDEO coder operations. By storing one crafted asset and referencing its path from a second delayed-marker SVG, an attacker could execute code in the immich-server container when thumbnail processing ran. This issue is fixed in version 3.2.4.

Affected products and scope

  • The normalized CVE record marks immich-app immich versions < 3.2.4 as affected.
  • The CNA advisory package section specifically identifies v3.2.2 as affected and v3.2.4 as patched.
  • Because the advisory names a specific affected version while the structured record supplies a broader boundary, v3.2.2 is directly confirmed and the full < 3.2.4 range should be treated as affected for triage. The advisory does not provide separate branch-by-branch status for every version before 3.2.4.

Technical details

Immich accepts SVG as an image based on the filename and passes the stored file to Sharp/libvips for thumbnail generation. The native libvips SVG loader searches only the first 1,000 bytes for <svg; a delayed marker can cause libvips to decline the file while ImageMagick still recognizes it as SVG. ImageMagick's internal SVG renderer converts attacker-controlled <image href> values into image reads. Explicit coder prefixes can therefore reach coders allowed by policy, including MSL and VIDEO when they are unrestricted in the standard production image. By storing one crafted asset and referencing its path from a second SVG, thumbnail processing can execute MSL and achieve code execution inside the immich-server container. Exploitation requires upload access and execution of the thumbnail job; the deployment-specific ImageMagick policy, container privileges, and alternate processing paths still need to be checked.

Exploitability

  • The issue is reachable over the network through the upload and thumbnail-processing workflow.
  • The attacker needs an authenticated Immich account, but administrator privileges are not required.
  • No separate victim interaction is required after upload because thumbnail processing can run automatically.
  • Complexity is high because exploitation depends on a libvips and ImageMagick parser differential, a two-asset chain, and the relevant coder or policy configuration.
  • The CNA advisory documents a proof of concept. The evidence reviewed does not establish exploitation in the wild.

Technical impact

  • The immediate technical result is arbitrary code execution in the immich-server container under the service's effective privileges.
  • This can affect the confidentiality, integrity and availability of data or functions reachable from that container.
  • A non-admin account is sufficient, but exploitation depends on a specific parser differential, a stored-asset reference and the applicable thumbnail-processing path, so not every upload automatically produces code execution.
  • The evidence reviewed does not establish execution outside the container or compromise of other systems.

Business impact

  • An ordinary authenticated account can reach server-side code execution without administrative privileges.
  • The attacker may be able to read, change or delete media and other data available to the immich-server process, and could disrupt thumbnail processing or the service.
  • Practical reach depends on container permissions, mounted storage and network access in the deployment.
  • The evidence confirms code execution in the container, but does not establish host escape, lateral movement or a confirmed breach.

Remediation

  1. Upgrade immich-app immich to exactly version 3.2.4, the patched release confirmed by the record and advisory. Do not assume that this statement automatically covers unverified parallel branches or other releases.
  2. If an upgrade cannot be performed immediately, reject SVG uploads or process SVG files in an isolated renderer that cannot dispatch to ImageMagick.
  3. Set VIPS_BLOCK_UNTRUSTED and remove vips-magick from the production libvips build where the deployment architecture permits it.
  4. Deploy a restrictive ImageMagick policy, run the container as a non-root user and use a read-only root filesystem where practical.
  5. Treat isolation and policy restrictions as compensating controls; they do not establish that the underlying flaw has been fixed.

Detection

  1. Inventory every Immich deployment, container image and image-processing package, then compare the running version with the affected and patched boundaries in affected_summary.
  2. Confirm whether the deployment accepts SVG uploads and whether server/src/repositories/media.repository.ts sends them through Sharp/libvips with a possible fallback to ImageMagick.
  3. Check whether vips-magick is installed or enabled, and review ImageMagick policy for MSL, raw writes and VIDEO delegates. This is a precautionary configuration review, not a confirmed IOC.
  4. Correlate audit records for SVG uploads by non-admin users, asset API access such as GET /assets/{asset_id}, and subsequent thumbnail-processing jobs.
  5. Inspect the asset store, container and mounted volumes for unexpected changes made by the immich-server process, especially files outside the normal media-storage flow. The absence of these events does not prove that a deployment is safe.
Sources (7)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.