Bug 751800 (CVE-2011-4121)

Summary: CVE-2011-4121 ruby (openssl extension): Insecure way of creation exponent value by private RSA key generation
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jeremy, mmorsi, mtasaka, rcvalle, tagoh, vanmeeuwen+fedora, vdanen, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-07 16:03:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Lieskovsky 2011-11-07 15:52:26 UTC
A security flaw was found in the way the OpenSSL extension of the Ruby programming language (of version from the Git trunk repository after 2011-09-01 up to 2011-11-03) generated exponent value to be used for private RSA key generation (the bug caused the exponent for the generated key to be always '1'). A remote attacker could use this flaw to bypass / corrupt integrity of services, depending on strong private RSA keys generation mechanism.

Relevant upstream patch:
[1] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=33633

Comment 1 Jan Lieskovsky 2011-11-07 15:58:55 UTC
CVE Request:
[2] http://www.openwall.com/lists/oss-security/2011/11/07/7

Comment 2 Jan Lieskovsky 2011-11-07 16:03:45 UTC
This issue did NOT affect the versions of the ruby package, as shipped with
Red Hat Enterprise Linux 4, 5, and 6, since those versions directly call RSA_generate_key(3) OpenSSL library routine for RSA key generation:
[3] http://www.openssl.org/docs/crypto/RSA_generate_key.html

rather than to use own, Ruby language / module based, method.

--

This issue did NOT affect the versions of the ruby package, as shipped with Fedora release of 14 and 15, since those versions directly call RSA_generate_key(3) OpenSSL library routine for RSA key generation:
[4] http://www.openssl.org/docs/crypto/RSA_generate_key.html

rather than to use own, Ruby language / module based, method.

Comment 3 Vincent Danen 2011-11-07 17:30:56 UTC
This was assigned the name CVE-2011-4121:

http://www.openwall.com/lists/oss-security/2011/11/07/8