Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication algorithm review
|
| Impact | CVSS 7.3 with vector CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A indicates high severity: network-accessible attack with low complexity, but requires prior login (PR:L) and user interaction (UI:A). The partial-time attack window (AT:P) limits exploitation—the attacker must catch the victim during a login session. However, the vulnerability enables complete account compromise (VC:H/VI:H/VA:H—high confidentiality, integrity, and availability impact). Real-world risk is elevated because: (1) exploitation is trivially automatable via iframe injection or phishing URLs, (2) OAuth integration is increasingly common in self-hosted deployments, (3) no POC disclosure mentioned but exploitation is straightforward given the simple validation bypass, (4) KEV status unknown but the vulnerability is discoverable by static code analysis. This is a legitimate priority for Immich deployments with public OAuth providers, particularly those using Google or other trusted identity providers where account takeover has cascading effects. |
| Exploit ScenarioDerived | An attacker creates a phishing email or embeds a hidden iframe linking to Immich's OAuth login endpoint (e.g., https://immich.example.com/auth/oauth/google?state=attacker_generated). The victim, already logged into their Immich account, clicks the link or loads the page with the iframe. Immich's OAuth handler does not validate the state parameter and accepts the attacker's OAuth code. Since /user-settings is the redirect_uri, the callback automatically links the attacker's Google account to the victim's Immich account. The victim is now logged in as a merged account under attacker control. The attacker later logs in using their own Google credentials and gains full access to the victim's Immich photo/video library and account settings. Attack complexity is low (AC:L) because the attacker only needs to craft a URL and deliver it; user interaction (UI:A) is minimal since clicking a login link is routine behavior. The AT:P (partial-time) factor applies because the attack only succeeds if the victim is already authenticated to Immich at callback time, but persistent session cookies make this window practical. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
Immich versions prior to 1.132.0 are vulnerable to account hijacking through OAuth2 state parameter validation bypass (CWE-303). An attacker can perform unauthorized account linkage by exploiting missing state parameter verification, allowing them to hijack victim accounts through crafted OAuth login URLs or hidden iframes embedded in malicious webpages. This vulnerability is particularly dangerous when OAuth providers are publicly accessible, and affected users can be compromised without direct interaction if the /user-settings redirect_uri is configured.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Immich's OAuth2 implementation fails to validate the 'state' parameter, a critical CSRF-protection mechanism defined in RFC 6749. The state parameter should be unpredictably generated, stored in the user's session, transmitted to the identity provider, and verified upon callback—Immich skips the verification step. When /user-settings is used as the redirect_uri, the vulnerability becomes critical because this endpoint auto-links OAuth accounts if the user is already authenticated, creating a confused-deputy scenario where an attacker's OAuth credentials become linked to the victim's Immich account. This affects CPE: cpe:2.3:a:immich:immich:*:*:*:*:*:*:*:* versions <1.132.0. The root cause is CWE-303: Incorrect Implementation of Authentication Algorithm, specifically the omission of state parameter validation in the OAuth2 callback handler.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
immich is a high performance self-hosted photo and video management solution. Prior to 1.132.0, immich is vulnerable to account hijacking through oauth2, because the state parameter is not being checked. The oauth2 state parameter is similar to a csrf token, so when the user starts the login flow this unpredictable token is generated and somehow saved in the browser session and passed to the identity provider, which will return the state parameter when redirecting the user back to immich. Before the user is logged in that parameter needs to be verified to make sure the login was actively initiated by the user in this browser session. On it's own, this wouldn't be too bad, but when immich uses the /user-settings page as a redirect_uri, it will automatically link the accounts if the user was already logged in. This means that if someone has an immich instance with a public oauth provider (like google), an attacker can - for example - embed a hidden iframe in a webpage or even just send the victim a forged oauth login url with a code that logs the victim into the attackers oauth account and redirects back to immich and links the accounts. After this, the attacker can log into the victims account using their own oauth credentials. This vulnerability is fixed in 1.132.0.
Executive ViewAI
Immich versions before 1.132.0 contain a critical OAuth2 authentication bypass that allows attackers to hijack user accounts by circumventing state parameter validation. Attackers can craft malicious URLs or embed hidden iframes to link unauthorized OAuth accounts to victims' Immich instances, potentially compromising photo libraries and account credentials without user awareness. Organizations using Immich for photo management or archival should treat this as an urgent security incident if publicly exposed.
Within 24 hours: Identify all Immich instances in your environment and verify current version against 1.132.0 or later using admin console or API. Within 7 days: Upgrade all affected Immich instances to version 1.132.0 or later; if instances are internet-exposed, implement network-level access restrictions (VPN, IP whitelisting) during the upgrade window. Within 30 days: Audit OAuth provider integrations; review account linkage logs for unauthorized connections; conduct user awareness training on suspicious account activity notifications.
Vendor-released patch: Immich 1.132.0. Until patched, disable OAuth2 login functionality if operationally feasible; restrict network access to Immich instances to trusted networks only; implement HTTP referrer policy (Referrer-Policy: strict-origin-when-cross-origin) at reverse proxy layer; configure Content-Security-Policy headers to prevent iframe embedding from untrusted origins.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
EUVD-2025-21169
NVD
CVE.org
EPSS
GitHub
Exploit-DB