Apple Safari automatically executes arbitrary shell commands or code

ID VU:999708
Type cert
Reporter Michael Lehn
Modified 2006-12-07T00:00:00



Apple Safari fails to properly determine file safety, allowing a remote unauthenticated attacker to execute arbitrary commands or code.



Apple Safari is a web browser that comes with the Mac OS X operating system.

Explicit binding

Mac OS X supports a feature called explicit binding, which LaunchServices examines to determine which application is used to open a file. If explicit binding is specified for a file, this setting will override the application association for the file type. Explicit binding information is stored in the resource fork for a file.

"Safe" files

By default, Safari will automatically open "safe" file types, such as pictures, movies, and archive files, including ZIP files. If the contents of an archive file are also considered safe, then Safari will automatically open the contents after the archive is extracted.

The problem

A data file with explicit binding can allow an attacker to execute arbitrary commands or code on systems running Safari. Limited testing shows that Safari apparently fails to check for the presence of explicit binding data when determining if a file is "safe" or not.


By convincing a user to view a specially crafted HTML document (for example, a web page), an attacker may be able to execute arbitrary commands or code with the privileges of the user.
Proof of concept code is publicly available.


Install an update
Install Apple Security Update 2006-001 and Apple Security Update 2006-002, which provide updates to Safari, LaunchServices, and CoreTypes. These updates improve the method that Safari uses to determine if a file is safe.

Disable "Open 'safe' files after downloading"

Disable the option "Open 'safe' files after downloading," as specified in the Securing Your Web Browser document. This will help prevent automatic exploitation of this and other vulnerabilities.

Systems Affected

Vendor| Status| Date Notified| Date Updated
Apple Computer, Inc.| | 02 Mar 2006| 05 Dec 2006
If you are a vendor and your product is affected, let us know.

CVSS Metrics

Group | Score | Vector
Base | N/A | N/A
Temporal | N/A | N/A
Environmental | N/A | N/A


  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>
  • <>


This vulnerability was publicly disclosed by Michael Lehn.

This document was written by Will Dormann.

Other Information

  • CVE IDs: CVE-2006-0848
  • Date Public: 19 Feb 2006
  • Date First Published: 21 Feb 2006
  • Date Last Updated: 07 Dec 2006
  • Severity Metric: 35.44
  • Document Revision: 37