Skip to main content

Google CVE-2025-43856

| EUVDEUVD-2025-21169 HIGH
Incorrect Implementation of Authentication Algorithm (CWE-303)
2025-07-11 security-advisories@github.com
7.3
CVSS 4.0 · GitHub Advisory
View

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

immich < 1.132.0

Affected Packages

euvd immich fix: 1.132.0

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

GitHub Advisory PRIMARY 7.3 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 06:27 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
1.132.0
CVE Published
Jul 11, 2025 - 17:15 nvd
HIGH 7.3

DescriptionGitHub 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

Why It Matters

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.

Recommended Action

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 83% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy