Apple has released security fixes for numerous memory corruption bugs affecting Mac users.

On Wednesday, the tech giant made Safari 6.1.4 and Safari 7.0.4 available to individuals running its Lion, Lion Server, Mountain Lion and Mavericks operating systems.The update brings patches for 22 vulnerabilities in total that affect the platforms.

Twenty-one of the bugs are memory corruption issues, which could allow an attacker to unexpectedly terminate users’ applications or arbitrarily execute malicious code, if an individual visits a malicious website.

The remaining flaw resolved, an encoding issue in the handling of Unicode characters in URLs, could allow a malicious site to send messages to a connected frame or window “in a way that might circumvent the receiver’s origin check,” a Wednesday security advisory from Apple said.