Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616476 (CVE-2017-5662) - <dev-java/batik-1.9: XML external entity processing vulnerability
Summary: <dev-java/batik-1.9: XML external entity processing vulnerability
Status: RESOLVED FIXED
Alias: CVE-2017-5662
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-24 11:43 UTC by Agostino Sarubbo
Modified: 2019-10-14 08:40 UTC (History)
1 user (show)

See Also:
Package list:
=dev-java/batik-1.9
Runtime testing required: No
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-04-24 11:43:53 UTC
From ${URL} :

In Apache Batik before 1.9, files lying on the filesystem of the server which uses batik can be revealed to arbitrary users who send maliciously formed SVG files. The file types that 
can be shown depend on the user context in which the exploitable application is running. If the user is root a full compromise of the server - including confidential or sensitive 
files - would be possible. XXE can also be used to attack the availability of the server via denial of service as the references within a xml document can trivially trigger an 
amplification attack.

References:

https://xmlgraphics.apache.org/security.html
http://seclists.org/oss-sec/2017/q2/85


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2017-06-04 18:54:06 UTC
@ Maintainer(s): Please bump to >=dev-java/batik-1.9. I submitted a PR for review: https://github.com/gentoo/gentoo/pull/4850
Comment 2 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-08-01 18:25:38 UTC
Ping:

From URL:

Stefan Cornelius 2017-07-05 07:38:53 EDT
Upstream bug:
https://issues.apache.org/jira/browse/BATIK-1139

Patches:
http://svn.apache.org/viewvc?view=revision&revision=1742892
http://svn.apache.org/viewvc?view=revision&revision=1743326

Gentoo Security Padawan
ChrisADR
Comment 3 Patrice Clement gentoo-dev 2017-08-01 20:44:53 UTC
commit 2bd8da0fc9240f6d7a9163470e952e26126cf392 (HEAD -> master, origin/master, origin/HEAD)
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: Sun Jun 4 20:49:47 2017 +0200
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Tue Aug 1 22:43:40 2017 +0200

dev-java/batik: version bump to 1.9.

Gentoo-Bug: https://bugs.gentoo.org/616476

Package-Manager: Portage-2.3.5, Repoman-2.3.2

Closes: https://github.com/gentoo/gentoo/pull/4850

dev-java/batik/Manifest         |   1 +
dev-java/batik/batik-1.9.ebuild | 101 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
create mode 100644 dev-java/batik/batik-1.9.ebuild

Please proceed.
Comment 4 Aaron Bauman (RETIRED) gentoo-dev 2017-08-06 18:09:30 UTC
@arches, please stabilize.
Comment 5 Myckel Habets (work) 2017-08-24 14:49:01 UTC
If bug #628812 isn't an issue (due to the security status) it's ok to mark stable for x86. Rdeps build as well against this version.
Comment 6 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-08-24 17:35:40 UTC
(In reply to Myckel Habets (work) from comment #5)
> If bug #628812 isn't an issue (due to the security status) it's ok to mark
> stable for x86. Rdeps build as well against this version.

amd64 tested, same problem with tcl USE Flag, refer to bug #628812 for more details about the test
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2017-09-27 09:37:19 UTC
ppc64 stable
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-03 00:43:16 UTC
x86 stable
Comment 9 Agostino Sarubbo gentoo-dev 2017-10-25 09:31:24 UTC
amd64 stable.

Maintainer(s), please cleanup.
Security, please vote.
Comment 10 Aaron Bauman (RETIRED) gentoo-dev 2017-10-26 00:33:19 UTC
GLSA Vote: No
Comment 11 Larry the Git Cow gentoo-dev 2017-10-27 18:30:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=559cca9d8919f426d7cb1f7998c8d4e9fa3ee476

commit 559cca9d8919f426d7cb1f7998c8d4e9fa3ee476
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: 2017-10-27 18:30:06 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-10-27 18:30:06 +0000

    dev-java/batik: remove vulnerable version.
    
    Bug: https://bugs.gentoo.org/616476
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-java/batik/Manifest            |   1 -
 dev-java/batik/batik-1.8-r3.ebuild | 124 -------------------------------------
 2 files changed, 125 deletions(-)}