Hackers can attack Apple Inc.’s Mac OS X by exploiting an unpatched vulnerability in the open-source Samba file- and print-sharing software that’s included with the operating system, Symantec Inc.