Bug 1170703

Summary: Please don’t use python-rsa
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: docker-registryAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, lsm5, mgoldman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-25 02:35:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miloslav Trmač 2014-12-04 16:08:54 UTC
docker-registry-0:0.8.1-2.fc20.noarch depends on python-rsa, which is a very naive implementation of RSA with known unfixed vulnerabilities, e.g. https://bitbucket.org/sybren/python-rsa/issue/19/vulnerable-to-side-channel-attacks-on ).  See also bug 1170702.

I strongly recommend replacing its use by a python module that wraps one of the mainstream crypto libraries, perhaps M2Crypto.RSA or cryptography.hazmat.primitives.asymmetric.rsa .

Comment 1 Lokesh Mandvekar 2014-12-04 16:25:39 UTC
aah cool .. alright I've got a branch to use m2crypto which I use for registry on rhel, guess I'll put that on fedora too.

Guess the m2crypto variant should be upstreamed too

Comment 2 Lokesh Mandvekar 2015-01-15 21:47:01 UTC
Hi Miloslav, docker-registry 0.9.1 got rid of python-rsa and uses m2crypto 0.22.3. Btw, could you please update m2crypto to 0.22.3 for fedora and rhel7 too if possible?

Thanks!!