Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552452 - <dev-java/jython-2.7.0: drop old and potentially vulnerable versions (CVE-2013-2027)
Summary: <dev-java/jython-2.7.0: drop old and potentially vulnerable versions (CVE-201...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B4 [noglsa]
Keywords:
Depends on: 298869 429440 483018 553900
Blocks:
  Show dependency tree
 
Reported: 2015-06-18 11:17 UTC by Patrice Clement
Modified: 2016-02-18 12:22 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrice Clement gentoo-dev 2015-06-18 11:17:37 UTC
monsieurp@epsilon ~/gentoo-x86/dev-java/jython $ ls *.ebuild
jython-2.1-r11.ebuild  jython-2.2.1-r1.ebuild  jython-2.2.1-r2.ebuild  jython-2.5.3-r3.ebuild  jython-2.7.0.ebuild

Can we do away with versions < 2.7? 

monsieurp@epsilon ~/gentoo-x86/dev-java/jython $ equery d -a dev-java/jython
 * These packages depend on dev-java/jython:
app-editors/jext-5.0 (dev-java/jython:0)
app-editors/jext-5.0-r1 (dev-java/jython:0)
dev-java/batik-1.7-r3 (python ? dev-java/jython:0)
dev-java/batik-1.8 (python ? dev-java/jython:0)
dev-java/bsf-2.4.0-r1 (python ? >=dev-java/jython-2.1-r5:0)
dev-java/freemarker-2.3.13 (>=dev-java/jython-2.2:0)
dev-java/freemarker-2.3.13-r1 (>=dev-java/jython-2.2:0)
dev-java/mx4j-3.0.1-r4 (examples ? =dev-java/jython-2.2*)
dev-java/mx4j-3.0.2 (examples ? dev-java/jython:2.5)
dev-java/mx4j-3.0.2-r1 (examples ? dev-java/jython:2.7)
dev-java/mx4j-tools-3.0.1-r2 (dev-java/jython:0)
dev-java/mx4j-tools-3.0.2 (dev-java/jython:2.5)
dev-java/mx4j-tools-3.0.2-r1 (dev-java/jython:2.7)
net-p2p/frostwire-4.20.9 (dev-java/jython:0)

If I search jython-2.1 for instance in Google, it takes me to this web page http://www.jython.org/archive/21/download.html which takes me back to a time where the latest version of the JVM available was 1.1 (!).

Let's clean this up, shall we?


Reproducible: Always
Comment 1 Patrice Clement gentoo-dev 2015-06-18 11:19:17 UTC
Are you guys OK with this bug report?
Comment 2 Patrice Clement gentoo-dev 2015-06-18 11:22:27 UTC
CC'ing in the python herd too.
Comment 3 Patrick Lauer gentoo-dev 2015-06-18 22:34:50 UTC
Sounds good to me. Progress was mostly stalled on jython-2.7 final taking a few years longer than expected :)
Comment 4 GLSAMaker/CVETool Bot gentoo-dev 2015-06-20 20:39:09 UTC
CVE-2013-2027 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2013-2027):
  Jython 2.2.1 uses the current umask to set the privileges of the class cache
  files, which allows local users to bypass intended access restrictions via
  unspecified vectors.
Comment 5 Sean Amoss (RETIRED) gentoo-dev Security 2015-06-20 20:45:53 UTC
If you are aware of vulnerabilities in a package, please make sure you notify security@. 

Are there any plans to keyword ppc to bring a new stable version to them?
Comment 6 Patrice Clement gentoo-dev 2015-06-20 21:18:40 UTC
Hi Sean

Thanks for picking up on this bug. I wasn't aware of serious and/or major security bugs with jython versions < 2.7 but thanks for clearing this up and letting us know we have to remove them from the main tree. We'll get this bug out of the way ASAP.
Comment 7 Patrice Clement gentoo-dev 2015-09-02 21:50:26 UTC
I have gained access to timberdoodle and set up ppc/ppc64 chroots *just* for this task. I will start to keyword python forward dependencies on both platforms to get rid of the junk and make way for the new. Watch this space.
Comment 8 Patrice Clement gentoo-dev 2015-09-04 22:47:53 UTC
After a bit of hacking and keywording (I basically lowered the required jre/jdk), I eventually ran into the following error:
    [javac]   (use -source 7 or higher to enable try-with-resources)
    [javac] /var/tmp/portage/dev-java/jython-2.7.0/work/src/org/python/modules/sre/PatternObject.java:376: error: try-with-resources is not supported in -source 1.6
    [javac]             try (PyBuffer buf = ((BufferProtocol)obj).getBuffer(PyBUF.FULL_RO)){

It's a bit of a bummer. Talked to Chewi about it and as suggested by him, the "easy" way out of this situation for the time being is to wait for ppc platforms to support Java 8.
Comment 9 Patrice Clement gentoo-dev 2016-02-09 18:43:02 UTC
I created PR https://github.com/gentoo/gentoo/pull/813 to address this bug report. QA tests are all green so I'm going to merge it.
Comment 10 Patrice Clement gentoo-dev 2016-02-09 18:48:52 UTC
commit a3539bf (HEAD, origin/master, origin/HEAD, master)
Merge: 0302844 6f65d65
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Tue Feb 9 18:42:56 2016 +0000

    Merge remote-tracking branch 'github/pr/813'.
    
    Gentoo-Bug: 552452
    Pull-Request: https://github.com/gentoo/gentoo/pull/813

dev-java/jython-2.7 stabilisation was done in bug 553374.

Security team, please vote.
Comment 11 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-02-09 22:46:31 UTC
GLSA Vote: No
Comment 12 Yury German Gentoo Infrastructure gentoo-dev 2016-02-10 01:25:18 UTC
Vote No
Closing noglsa