Bug 1211504 (CVE-2015-0480)

Summary: CVE-2015-0480 OpenJDK: jar directory traversal issues (Tools, 8064601)
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dbhole, jvanek, omajid, sbaiduzh, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: IcedTea6 1.13.7, IcedTea7 2.5.5 Doc Type: Bug Fix
Doc Text:
A directory traversal flaw was found in the way the jar tool extracted JAR archive files. A specially crafted JAR archive could cause jar to overwrite arbitrary files writable by the user running jar when the archive was extracted.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-20 20:39:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1209063    

Description Tomas Hoger 2015-04-14 07:48:48 UTC
A directory traversal flaw was found in jar, The Java Archive Tool.  Relative paths containing '..' or absolute paths used for files stored in a specially-crafted jar archive could cause the jar tool to overwrite arbitrary files when the archive was extracted.

With this update, jar strips leading '/' or path prefix that contains '..'.  New command line option -P can be used to revert back to the old insecure behavior which preserves absolute paths and paths with '..'.

This issue was reported multiple times in the past and already got CVE-2005-1080 (bug 606442) assigned.  This CVE is a duplicate of the old 2005 id.

Comment 3 Tomas Hoger 2015-04-14 19:44:34 UTC
Public now via Oracle Critical Patch Update - April 2015.  Fixed in Oracle Java SE 6u95, 7u79, and 8u45.

External References:

http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html#AppendixJAVA

Comment 4 errata-xmlrpc 2015-04-14 20:19:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 5

Via RHSA-2015:0807 https://rhn.redhat.com/errata/RHSA-2015-0807.html

Comment 5 Tomas Hoger 2015-04-14 20:57:29 UTC
This fix is documented as notable change in Oracle Java SE release notes, such as:

  http://www.oracle.com/technetwork/java/javase/8u45-relnotes-2494160.html

  Area: tools/jar
  Synopsis: Improve jar file handling

  Starting with JDK 8u45 release, the jar tool no longer allows the leading
  slash "/" and ".." (dot-dot) path component in zip entry file name when
  creating new and/or extracting from zip and jar file. If needed, the new
  command line option "-P" should be used explicitly to preserve the dot-dot
  and/or absolute path component.

  See 8064601 (not public).

Comment 6 errata-xmlrpc 2015-04-15 15:16:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2015:0809 https://rhn.redhat.com/errata/RHSA-2015-0809.html

Comment 7 errata-xmlrpc 2015-04-15 16:58:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2015:0808 https://rhn.redhat.com/errata/RHSA-2015-0808.html

Comment 8 errata-xmlrpc 2015-04-15 16:58:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2015:0806 https://rhn.redhat.com/errata/RHSA-2015-0806.html

Comment 10 errata-xmlrpc 2015-04-17 10:29:28 UTC
This issue has been addressed in the following products:

  Oracle Java for Red Hat Enterprise Linux 7
  Oracle Java for Red Hat Enterprise Linux 6

Via RHSA-2015:0854 https://rhn.redhat.com/errata/RHSA-2015-0854.html

Comment 11 errata-xmlrpc 2015-04-20 14:08:53 UTC
This issue has been addressed in the following products:

  Oracle Java for Red Hat Enterprise Linux 5
  Oracle Java for Red Hat Enterprise Linux 7
  Oracle Java for Red Hat Enterprise Linux 6

Via RHSA-2015:0857 https://rhn.redhat.com/errata/RHSA-2015-0857.html

Comment 12 errata-xmlrpc 2015-04-20 14:28:38 UTC
This issue has been addressed in the following products:

  Oracle Java for Red Hat Enterprise Linux 5
  Oracle Java for Red Hat Enterprise Linux 7
  Oracle Java for Red Hat Enterprise Linux 6

Via RHSA-2015:0858 https://rhn.redhat.com/errata/RHSA-2015-0858.html

Comment 13 errata-xmlrpc 2015-05-13 13:33:55 UTC
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 5

Via RHSA-2015:1007 https://rhn.redhat.com/errata/RHSA-2015-1007.html

Comment 14 errata-xmlrpc 2015-05-13 13:35:37 UTC
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 6
  Supplementary for Red Hat Enterprise Linux 5

Via RHSA-2015:1006 https://rhn.redhat.com/errata/RHSA-2015-1006.html

Comment 15 errata-xmlrpc 2015-05-20 18:36:51 UTC
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 5
  Supplementary for Red Hat Enterprise Linux 6

Via RHSA-2015:1021 https://rhn.redhat.com/errata/RHSA-2015-1021.html

Comment 16 errata-xmlrpc 2015-05-20 19:06:23 UTC
This issue has been addressed in the following products:

  Supplementary for Red Hat Enterprise Linux 6
  Supplementary for Red Hat Enterprise Linux 7

Via RHSA-2015:1020 https://rhn.redhat.com/errata/RHSA-2015-1020.html

Comment 17 errata-xmlrpc 2015-06-11 13:22:01 UTC
This issue has been addressed in the following products:

  Red Hat Satellite Server v 5.6
  Red Hat Satellite Server v 5.7

Via RHSA-2015:1091 https://rhn.redhat.com/errata/RHSA-2015-1091.html