Bug 2040856 (CVE-2021-44533)

Summary: CVE-2021-44533 nodejs: Incorrect handling of certificate subject and issuer fields
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abenaiss, amctagga, andrea.innocenti1, aos-bugs, bdettelb, caswilli, dkuc, fjansen, hhorak, hvyas, jburrell, jorton, jwong, kaycoth, micjohns, mrunge, nodejs-maint, nodejs-sig, pbhattac, rfreiman, sgallagh, spandura, sthirugn, thrcka, vkumar, zsvetlik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: node 12.22.9, node 14.18.3, node 16.13.2, node 17.3.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in node.js, where it did not properly handle multi-value Relative Distinguished Names. This flaw allows a specially crafted x509 certificate to produce a false multi-value Relative Distinguished Name and to inject arbitrary data in node.js libraries.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-06 13:16:58 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: 2040857, 2040858, 2040859, 2040860, 2040861, 2042984, 2042985, 2042986, 2042987, 2042988, 2042989, 2046354, 2046369, 2052252, 2086809, 2086810, 2086811, 2086812, 2087168, 2132709, 2132710, 2150318, 2150319    
Bug Blocks: 2040868    

Description Guilherme de Almeida Suckevicz 2022-01-14 19:44:04 UTC
Node.js did not handle multi-value Relative Distinguished Names correctly. Attackers could craft certificate subjects containing a single-value Relative Distinguished Name that would be interpreted as a multi-value Relative Distinguished Name, for example, in order to inject a Common Name that would allow bypassing the certificate subject verification.

Affected versions of Node.js do not accept multi-value Relative Distinguished Names and are thus not vulnerable to such attacks themselves. However, third-party code that uses node's ambiguous presentation of certificate subjects may be vulnerable.

Reference:
https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/

Comment 1 Guilherme de Almeida Suckevicz 2022-01-14 19:44:40 UTC
Created nodejs tracking bugs for this issue:

Affects: epel-7 [bug 2040861]
Affects: fedora-all [bug 2040857]


Created nodejs:12/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2040858]


Created nodejs:14/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2040859]


Created nodejs:16/nodejs tracking bugs for this issue:

Affects: fedora-all [bug 2040860]

Comment 2 Cedric Buissart 2022-01-20 12:55:03 UTC
Upstream fix :
https://github.com/nodejs/node/commit/a336444c7fb9fd1d0055481d84cdd57d7d569879

Comment 6 errata-xmlrpc 2022-06-06 09:27:13 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:4914 https://access.redhat.com/errata/RHSA-2022:4914

Comment 7 Product Security DevOps Team 2022-06-06 13:16:54 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-44533

Comment 9 errata-xmlrpc 2022-10-19 10:10:58 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2022:7044 https://access.redhat.com/errata/RHSA-2022:7044

Comment 10 errata-xmlrpc 2022-11-08 11:33:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7830 https://access.redhat.com/errata/RHSA-2022:7830

Comment 11 errata-xmlrpc 2022-12-15 16:16:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:9073 https://access.redhat.com/errata/RHSA-2022:9073

Comment 12 errata-xmlrpc 2023-04-12 14:58:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:1742 https://access.redhat.com/errata/RHSA-2023:1742

Comment 13 errata-xmlrpc 2023-06-22 19:51:36 UTC
This issue has been addressed in the following products:

  RHODF-4.13-RHEL-9

Via RHSA-2023:3742 https://access.redhat.com/errata/RHSA-2023:3742