Bug 1995202 (CVE-2021-31556)

Summary: CVE-2021-31556 mediawiki: OAuth extension doesn't validate length of RSA key
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, Axel.Thimm, bmontgom, eparis, jburrell, jokerman, mike, nstielau, puiterwijk, shurley, sponnaga
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mediawiki 1.31.13, mediawiki 1.35.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-23 15:34:53 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:
Bug Depends On: 1995203    
Bug Blocks: 1995205    

Description Pedro Sampaio 2021-08-18 16:02:12 UTC
An issue was discovered in the Oauth extension for MediaWiki through 1.35.2. MWOAuthConsumerSubmitControl.php does not ensure that the length of an RSA key will fit in a MySQL blob.

References:

https://phabricator.wikimedia.org/T277380
https://gerrit.wikimedia.org/r/q/I13ff0350a9a0a3cd5ab3e1f82dd0d8d9c13cf9e9

Comment 1 Pedro Sampaio 2021-08-18 16:02:34 UTC
Created mediawiki tracking bugs for this issue:

Affects: fedora-all [bug 1995203]

Comment 2 Hardik Vyas 2021-08-23 13:58:17 UTC
None of the Red Hat products are affected by this vulnerability, as the Oauth extension is distributed separately for MediaWiki and not included by default in any Red Hat products. 
Patch / code changes can be found at the OAuth extension - https://phabricator.wikimedia.org/rEOAU420a837a2df4c1c61e7efe2c0ac952f548dde2a8

Comment 3 Product Security DevOps Team 2021-08-23 15:34:53 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-31556