Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711392 (CVE-2019-10181, CVE-2019-10185) - <dev-java/icedtea-web-1.8.4-r1: Multiple vulnerabilities (CVE-2019-{10181,10185})
Summary: <dev-java/icedtea-web-1.8.4-r1: Multiple vulnerabilities (CVE-2019-{10181,101...
Status: RESOLVED FIXED
Alias: CVE-2019-10181, CVE-2019-10185
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: B2 [glsa+ cve]
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-03-02 23:40 UTC by Sam James
Modified: 2021-07-25 19:11 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log (log,261.58 KB, application/octet-stream)
2021-01-06 22:17 UTC, Oleksandr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-02 23:40:58 UTC
1) CVE-2019-10181

Description:
"It was found that executable code could be injected in a JAR file without compromising the signature verification. An attacker could use this flaw to inject code in a trusted JAR. The code would be executed inside the sandbox."

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10181

2) CVE-2019-10185

Description:
"It was found that icedtea-web was vulnerable to a zip-slip attack during auto-extraction of a JAR file. An attacker could use this flaw to write files to arbitrary locations. This could also be used to replace the main running application and, possibly, break out of the sandbox."

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10185
Comment 1 Larry the Git Cow gentoo-dev 2020-03-28 01:28:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47d73a57f4977023f20933ae06e0b974b4015078

commit 47d73a57f4977023f20933ae06e0b974b4015078
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-28 01:19:46 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-28 01:26:47 +0000

    profiles/package.mask: security mask dev-java/icedtea-web
    
    Bug: https://bugs.gentoo.org/711392
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)

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

commit eac78cad3ce3e5654e97a35369a7e0be05a1ff4b
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-28 01:17:15 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-28 01:26:46 +0000

    profiles/base/package.use.mask: security mask java[webstart]
    
    Bug: https://bugs.gentoo.org/711392
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/base/package.use.mask | 9 +++++++++
 1 file changed, 9 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-03-28 01:43:20 UTC
Background: the build system has changed upstream and not many people seem to use this. Too much effort to fix for now. Someone can take it up if they want.

Thanks gyakovlev for masking.
Comment 3 Alexander Tsoy 2020-03-29 14:08:36 UTC
(In reply to Sam James (sam_c) (security padawan) from comment #2)
> not many people seem to use this
Java Web Start is still widely used in remote server management solutions.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2020-03-29 19:44:05 UTC
it'll remain masked and use.masked nevertheless.
not going to delete it, so users who still need it have an option to unmask.
Comment 5 Martin Dummer 2020-03-30 15:30:35 UTC
Hello,

(In reply to Georgy Yakovlev from comment #4)
> it'll remain masked and use.masked nevertheless.
> not going to delete it, so users who still need it have an option to unmask.

Yes indeed it is necessary for server remote management.
If you leave it masked without any update, then the mask message is quite inclear. 

# Georgy Yakovlev <gyakovlev@gentoo.org> (2020-03-27)
# Vulnerable old version of icedtea-web #711392
# new version uses maven + rust

I expected the newer version to be in the tree now. I visit bugzille here to find out why there is NO newer version. So please update the MASK message to inform users there is currently no new version, to keep them away from unnecessary searching like I did....

And, on the other hand, "Too much effort to fix for now. Someone can take it up if they want." practically means "maintainer needed", right?
Comment 6 Georgy Yakovlev archtester gentoo-dev 2020-04-22 17:35:20 UTC
I've updated mask text to

> # Depends on vulnerable old version of icedtea-web #711392                                                                                                                                                                                                                                                            
> # new version is not packaged yet                                                                                                                                                                                                                                                                                     
> # package/useflag is not going away anytime soon,                                                                                                                                                                                                                                                                     
> # just masked. unmask as needed. 


New 2.0 version is pretty hard to package, yeah. Java already has bad enough dependency situation, but latest version of icedtea-web depends on rust and uses maven as it's build system. Pretty much the worst possible combination for an ebuild.

Some people show interest in bumping icedtea-web properly to version 1.8.3 (rust is optional in that one), I may have time to look at it later as well.

As soon as bump is done and we have new package I'll remove the mask.

I'm aware that javaws still widely used in some situations, and it was never my intention to completely remove it from gentoo.

But since it's vulnerable it's now disabled by default and masked, so people who really need it have to make a decision and take an extra action to install vulnerable pkg.
Comment 7 Alec Moskvin 2020-09-04 15:09:34 UTC
icedtea-web 2.0 is in alpha stages, but 1.8.4 has fixes for the CVE-2019-{10181,10182,10185}, and adding the rust dependency for it seems pretty straight-forward.

Here's my stab at it: https://github.com/gentoo/gentoo/pull/17413

I've tested Java Web Start with icedtea-3.16.0, and it works for me.
Comment 8 Larry the Git Cow gentoo-dev 2020-09-05 05:24:31 UTC
The bug has been closed via the following commit(s):

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

commit fd4ada8f3923f51e8028b136c276a6a3a079e80d
Author:     Alec Moskvin <alecm@gmx.com>
AuthorDate: 2020-09-04 14:00:41 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-09-05 05:20:31 +0000

    dev-java/icedtea-web: Bump to version 1.8.4
    
    Closes: https://bugs.gentoo.org/711392
    Signed-off-by: Alec Moskvin <alecm@gmx.com>
    Closes: https://github.com/gentoo/gentoo/pull/17413
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/icedtea-web/Manifest                 |  2 +
 dev-java/icedtea-web/icedtea-web-1.8.4.ebuild | 92 +++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit d79c65a0c600776066d2e0ebe2d261a41c345d57
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-09-05 04:32:54 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-09-05 05:23:43 +0000

    dev-java/icedtea-web: fix multiple qa issues in 1.8.4
    
    disabled a lot of useless/old functionality
    
    Bug: https://bugs.gentoo.org/711392
    Closes: https://bugs.gentoo.org/715316
    Closes: https://bugs.gentoo.org/684330
    Closes: https://github.com/gentoo/gentoo/pull/17413
    Package-Manager: Portage-3.0.5, Repoman-3.0.1
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/icedtea-web/files/README.gentoo-r2   | 14 +++++
 dev-java/icedtea-web/icedtea-web-1.8.4.ebuild | 88 +++++++++++++--------------
 2 files changed, 57 insertions(+), 45 deletions(-)
Comment 9 Georgy Yakovlev archtester gentoo-dev 2020-09-05 06:01:53 UTC
sorry, should not have closed.
new version in the tree, currently ~arch keyworded.
let's give it a time before stabilization.
Comment 10 Joakim Tjernlund 2020-12-30 21:04:24 UTC
Does not current icedtea-web-1.8.4-r1 build against whatever is the current
system vm? I don't think 1.8.4 builds with java-11 ?
Comment 11 Oleksandr 2021-01-06 22:11:20 UTC
Emerging icedtea-web-1.8.4-r1 fails.
Comment 12 Oleksandr 2021-01-06 22:17:38 UTC
Created attachment 681577 [details]
log
Comment 13 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-01-06 22:41:24 UTC
(In reply to Alexander from comment #12)
> Created attachment 681577 [details]
> log

Please file a new bug for this
Comment 14 Oleksandr 2021-01-06 23:21:15 UTC
(In reply to John Helmert III (ajak) from comment #13)
> (In reply to Alexander from comment #12)
> > Created attachment 681577 [details]
> > log
> 
> Please file a new bug for this

Discovered that it is already submitted: https://bugs.gentoo.org/763636
Comment 15 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-03-09 16:01:32 UTC
(In reply to Georgy Yakovlev from comment #9)
> sorry, should not have closed.
> new version in the tree, currently ~arch keyworded.
> let's give it a time before stabilization.

Ready?
Comment 16 Andreas Sturmlechner gentoo-dev 2021-03-27 15:18:03 UTC
Please either cleanup old or CC arches.
Comment 17 Larry the Git Cow gentoo-dev 2021-04-04 13:23:06 UTC
The bug has been referenced in the following commit(s):

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

commit d41e3cc3fe9be81f8f0a999c94434df4b0dabff8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-03-30 20:30:45 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-04-04 13:19:36 +0000

    dev-java/icedtea-web: 1.6.1-r1 and 1.6.2 security cleanup
    
    Bug: https://bugs.gentoo.org/711392
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-java/icedtea-web/Manifest                      |  2 -
 dev-java/icedtea-web/files/README.gentoo-r1        | 56 --------------
 .../files/icedtea-web-1.6-javadoc.patch            | 11 ---
 .../files/icedtea-web-1.6-launchers.patch          | 79 -------------------
 .../icedtea-web/files/icedtea-web-1.6-no-hg.patch  | 49 ------------
 .../files/icedtea-web-1.6-respect-ldflags.patch    | 20 -----
 .../files/icedtea-web-1.6-unused-libs.patch        | 20 -----
 dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild   | 88 ----------------------
 dev-java/icedtea-web/icedtea-web-1.6.2.ebuild      | 86 ---------------------
 dev-java/icedtea-web/metadata.xml                  |  5 --
 10 files changed, 416 deletions(-)
Comment 18 Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-04 16:04:05 UTC
x86 stable
Comment 19 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-04 21:27:38 UTC
ppc64 stable
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-05 16:45:22 UTC
amd64 done
Comment 21 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-06 19:51:44 UTC
arm64 done

all arches done
Comment 22 Larry the Git Cow gentoo-dev 2021-04-15 00:00:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c3c1a7e9603fa0d2c8da0277d5dc95853f7ab44

commit 1c3c1a7e9603fa0d2c8da0277d5dc95853f7ab44
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-04-14 23:59:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-04-14 23:59:00 +0000

    profiles: drop obsolete icedtea-web mask
    
    Bug: https://bugs.gentoo.org/711392
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 4 ----
 1 file changed, 4 deletions(-)
Comment 23 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-07-22 03:54:48 UTC
GLSA request filed.
Comment 24 GLSAMaker/CVETool Bot gentoo-dev 2021-07-23 03:02:45 UTC
This issue was resolved and addressed in
 GLSA 202107-51 at https://security.gentoo.org/glsa/202107-51
by GLSA coordinator John Helmert III (ajak).