CVE-2025-24191

Privilege Escalation via Environment Variable Injection on macOS

Published Mar 31, 2025 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
The issue was addressed with improved validation of environment variables. This issue is fixed in macOS Sequoia 15.4. An app may be able to modify protected parts of the file system.

Analysis

AI-generated

Technical impact

An application can exploit improper validation of environment variables, allowing it to modify protected areas of the file system. This flaw provides local privilege escalation because the attacker can write or replace files in system directories typically restricted to elevated users. The weakness is a classic input validation failure (CWE‑20). The impact is that the attacker can gain increased capabilities by altering critical system files, potentially compromising system integrity and stability. Overall, the vulnerability can be used to step beyond the application’s intended permissions and affect system security.

Affected Systems

Apple macOS, specifically macOS Sequoia versions older than 15.4, which lack the patched validation logic. Any system running those releases is susceptible.

Risk and Exploitability

The CVSS score of 5.5 suggests moderate severity, while the EPSS of less than 1% indicates a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector requires a malicious or compromised application running with user privileges, which then injects crafted environment variables. Once the unsafe environment is in place, the application can perform file system modifications that would normally be restricted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade your Mac to macOS Sequoia 15.4 or later to receive the fixed input validation.
  • As a temporary precaution, restrict execution of untrusted applications that may inject environment variables, or remove unnecessary environment variables from system or user profiles.
  • Monitor system logs for unexpected modifications in protected directories and investigate promptly.

Generated by OpenCVE AI on April 28, 2026 at 03:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-9010 The issue was addressed with improved validation of environment variables. This issue is fixed in macOS Sequoia 15.4. An app may be able to modify protected parts of the file system.
History
Type Values Removed Values Added
Title Privilege Escalation via Environment Variable Injection on macOS
Type Values Removed Values Added
First Time appeared Apple
Apple macos
CPEs cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
Vendors & Products Apple
Apple macos
Type Values Removed Values Added
Weaknesses CWE-20
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The issue was addressed with improved validation of environment variables. This issue is fixed in macOS Sequoia 15.4. An app may be able to modify protected parts of the file system.
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
apple
Published
Updated
Apr 2, 2026, 6:09 PM
Reserved
Jan 17, 2025, 12:00 AM
Status
Modified
Published
Mar 31, 2025, 11:15 PM
Modified
Jun 17, 2026, 8:58 AM