Bug 1170703 - Please don’t use python-rsa
Summary: Please don’t use python-rsa
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-registry
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-04 16:08 UTC by Miloslav Trmač
Modified: 2015-01-25 02:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-25 02:35:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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!!


Note You need to log in before you can comment on or make changes to this bug.