Youtube Android Player ApiApplication · Google

CVE-2023-0460

HIGH · 7.3 CVSS v3.1 Published 2023-03-01
Fix available
A fix is available. Upgrade to after 1.2.2 or later.
See remediation →
73/100
Remediation priority · Elevated

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
The YouTube Embedded 1.2 SDK binds to a service within the YouTube Main App. After binding, a remote context is created with the flags Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY. This allows the client app to remotely load code from YouTube Main App by retrieving the Main App’s ClassLoader. A potential vulnerability in the binding logic used by the client SDK where the SDK ends up calling bindService() on a malicious app rather than YT Main App. This creates a vulnerability where the SDK can load the malicious app’s ClassLoader instead, allowing the malicious app to load arbitrary code into the calling app whenever the embedded SDK is invoked. In order to trigger this vulnerability, an attacker must masquerade the Youtube app and install it on a device, have a second app that uses the Embedded player and typically distribute both to the victim outside of the Play Store.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The YouTube Embedded SDK binds to YouTube Main App using bindService() without properly validating the identity of the service it connects to. A malicious app masquerading as YouTube can intercept this binding and supply its own ClassLoader, allowing arbitrary code injection into the client app when the embedded player is invoked.

MitigationThe SDK must implement proper service identity validation (e.g., verifying the calling package's signing certificate) before accepting the bound service. App developers should update to the patched SDK version once released.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Youtube Android Player ApiApplication
Affected:>= 1.2, <= 1.2.2

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify YouTube Player API presence
    Search your project's dependency tree (build.gradle, libs folder, or Maven dependencies) for the YouTube Android Player API library (com.google.android.youtube.player)
    Affected if The library is present in your dependencies
  2. Determine the installed SDK version
    Check your dependency configuration for the exact version number of the youtube-android-player-api library, or inspect the JAR/AAR file name and its manifest
    Affected if The version is >= 1.2 and <= 1.2.2
  3. Verify YouTube player usage in code
    Search your source code for imports from com.google.android.youtube.player and usage of YouTubePlayerView or YouTubePlayerFragment classes
    Affected if Your code instantiates or uses YouTubePlayer components
  4. Check for runtime binding behavior
    Inspect the compiled APK using a decompiler to confirm the SDK's bindService() method is being invoked when the player loads
    Affected if The YouTube player functionality is triggered at runtime

You are affected if your app embeds the YouTube Android Player API library versions 1.2 through 1.2.2 and uses the YouTube player functionality, as the SDK will attempt the vulnerable bindService() connection.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 1.2.2
Interim mitigation

The SDK must implement proper service identity validation (e.g., verifying the calling package's signing certificate) before accepting the bound service. App developers should update to the patched SDK version once released.

Fix this in Youtube Android Player Api Scoped from the published advisory
  • Consultation4.0 h
  • Implementation12.0 h
  • Testing8.0 h
  • Review / QA4.0 h
28.0 hours of engineering $4,880
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,808.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-0460 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-0460 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data