← Vulnerability feed

Vulnerability record · CVE-2006-0848 · published 22 February 2006

CVE-2006-0848: Safari 'Open safe files' option allows arbitrary command execution via __MACOSX metadata

Apple · Mac Os X

Safari on Apple Mac OS X, when the "Open 'safe' files after downloading" option is enabled, processes a __MACOSX folder inside a downloaded archive and follows its resource fork metadata. That metadata can invoke Terminal, which interprets an embedded script with bash, so a crafted ZIP with a script using a safe file extension leads to command execution. The flaw matters because it turns a routine download into a code execution path on the user's machine.

5.1 CVSS 2.0 Medium EPSS 58% · top 0.9% CWE-16 · CWE-16
5.1CVSS 2.0 base score
58%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
26References, 6 tagged exploit
16 Jun 2026Last modified by NVD

Description

The "Open 'safe' files after downloading" option in Safari on Apple Mac OS X allows remote user-assisted attackers to execute arbitrary commands by tricking a user into downloading a __MACOSX folder that contains metadata (resource fork) that invokes the Terminal, which automatically interprets the script using bash, as demonstrated using a ZIP file that contains a script with a safe file extension.

AV:N/AC:H/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityPublic exploit references and a very high EPSS score indicate active interest, though exploitation requires user interaction and the vulnerable Safari option to be enabled.

What it is

Safari on Apple Mac OS X, when the "Open 'safe' files after downloading" option is enabled, processes a __MACOSX folder inside a downloaded archive and follows its resource fork metadata. That metadata can invoke Terminal, which interprets an embedded script with bash, so a crafted ZIP with a script using a safe file extension leads to command execution. The flaw matters because it turns a routine download into a code execution path on the user's machine.

Impact

An attacker can execute arbitrary commands with the privileges of the logged-in user, leading to data theft, persistence, or further compromise of the host.

Attack surface

Reached remotely over the network by delivering a crafted archive that the user downloads in Safari; no authentication is required, but the attack depends on user interaction and on the "Open 'safe' files after downloading" option being enabled.

Exploitation

Not listed in CISA KEV, but multiple references are tagged Exploit and EPSS is 0.58105 (99th percentile), indicating public exploit material and elevated predicted activity.

What to do

  • Patch Safari and Mac OS X using the vendor advisory (Apple article 303382) and apply the associated security updates.
  • Disable the "Open 'safe' files after downloading" option in Safari preferences.
  • Block or quarantine archive downloads containing __MACOSX metadata or resource forks at the mail and web gateway.
  • Educate users not to open unexpected ZIP or archive attachments from untrusted sources.
  • Where feasible, restrict Terminal execution for non-administrative users.

Detection

  • Monitor for Terminal or bash processes spawned by Safari or by archive extraction utilities.
  • Alert on downloads or email attachments containing __MACOSX directories or resource fork metadata.
  • Review endpoint process trees for Safari launching shell interpreters shortly after a file download.
  • Audit Safari preferences to confirm the safe-files auto-open option is disabled.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://docs.info.apple.com/article.html?artnum=303382
http://secunia.com/advisories/18963 Vendor Advisory
http://securitytracker.com/id?1015652 Exploit
http://www.frsirt.com/exploits/20060222.safari_safefiles_exec.pm.php ExploitVendor Advisory
http://www.heise.de/english/newsticker/news/69862
http://www.kb.cert.org/vuls/id/999708 Third Party AdvisoryUS Government Resource
http://www.mathematik.uni-ulm.de/numerik/staff/lehn/macosx.html
http://www.osvdb.org/23510
http://www.securityfocus.com/bid/16736 Exploit
http://www.us-cert.gov/cas/techalerts/TA06-053A.html Third Party AdvisoryUS Government Resource
http://www.us-cert.gov/cas/techalerts/TA06-062A.html US Government Resource
http://www.vupen.com/english/advisories/2006/0671 Vendor Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/24808
http://docs.info.apple.com/article.html?artnum=303382
http://secunia.com/advisories/18963 Vendor Advisory
http://securitytracker.com/id?1015652 Exploit
http://www.frsirt.com/exploits/20060222.safari_safefiles_exec.pm.php ExploitVendor Advisory
http://www.heise.de/english/newsticker/news/69862
http://www.kb.cert.org/vuls/id/999708 Third Party AdvisoryUS Government Resource
http://www.mathematik.uni-ulm.de/numerik/staff/lehn/macosx.html
http://www.osvdb.org/23510
http://www.securityfocus.com/bid/16736 Exploit
http://www.us-cert.gov/cas/techalerts/TA06-053A.html Third Party AdvisoryUS Government Resource
http://www.us-cert.gov/cas/techalerts/TA06-062A.html US Government Resource
http://www.vupen.com/english/advisories/2006/0671 Vendor Advisory
https://exchange.xforce.ibmcloud.com/vulnerabilities/24808

Track CVE-2006-0848 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2014-7169GNU Bash environment variable function parsing command injection (Shellshock variant)GNU Bash through 4.3 bash43-025 processes trailing strings after malformed function definitions in environment variable values, allowing command inje…KEVEPSS 100%analysed9.8CVE-2014-6271GNU Bash environment variable command injection (ShellShock)GNU Bash through 4.3 processes trailing strings after function definitions in environment variable values, allowing injected commands to run when Bas…KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed8.8CVE-2022-2294Google Chrome WebRTC heap buffer overflow via crafted HTML pageCVE-2022-2294 is a heap buffer overflow in the WebRTC component of Google Chrome prior to 103.0.5060.114. A remote attacker can trigger heap corrupti…KEVEPSS 70%analysed8.8CVE-2021-1789Apple WebKit type confusion allows code execution via crafted web contentA type confusion flaw in Apple's WebKit engine was fixed through improved state handling across macOS, iOS, iPadOS, tvOS, watchOS and Safari. Process…KEVEPSS 14%analysed7.8CVE-2021-30713Apple macOS privacy preference bypass via missing authorizationmacOS Big Sur before 11.4 has a permissions validation flaw (CWE-862 missing authorization) that lets a malicious application bypass Privacy preferen…KEVEPSS 7.0%analysed

Source: NIST National Vulnerability Database (record CVE-2006-0848), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.