Apple today release updated versions of Java for both Mac OS X 10.4 and 10.5. The update contains several fixes for vulnerabilities which could allow Java applets to gain increased privileges and the ability to execute malicious code.

Java for Mac OS X 10.5 Update 4 – 158 MB

Java for Mac OS X 10.5 Update 4 delivers improved reliability, security, and compatibility for Java SE 6, J2SE 5.0 and J2SE 1.4.2 on Mac OS X 10.5.7 and later.

This release updates Java SE 6 to version 1.6.0_13, J2SE 5.0 to version 1.5.0_19, and J2SE 1.4.2 to 1.4.2_21.

For more details on this update, please visit this website: http://support.apple.com/kb/HT3581

Java for Mac OS X 10.4, Release 9 – 80MB

Java for Mac OS X 10.4, Release 9 delivers improved reliability, security and compatibility for J2SE 5.0 and J2SE 1.4.2 on Mac OS X 10.4.11 and later.

This release updates J2SE 5.0 to version 1.5.0_19 and J2SE 1.4.2 to version 1.4.2_21.

For more details on this update, please visit this website: http://support.apple.com/kb/HT3593.