Bug 2040839 (CVE-2021-44531) - CVE-2021-44531 nodejs: Improper handling of URI Subject Alternative Names
Summary: CVE-2021-44531 nodejs: Improper handling of URI Subject Alternative Names
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-44531
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2040841 2040842 2040843 2040844 2040845 2042964 2042965 2042967 2042968 2042969 2042970 2046369 2052252 2086799 2086800 2086801 2086802 2087166 2132705 2132706 2150314 2150315
Blocks: 2040868
TreeView+ depends on / blocked
 
Reported: 2022-01-14 19:28 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-06-22 19:51 UTC (History)
24 users (show)

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 accepted a certificate's Subject Alternative Names (SAN) entry, as opposed to what is specified by the HTTPS protocol. This flaw allows an active person-in-the-middle to forge a certificate and impersonate a trusted host.
Clone Of:
Environment:
Last Closed: 2022-06-06 12:47:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:4914 0 None None None 2022-06-06 09:27:05 UTC
Red Hat Product Errata RHSA-2022:7044 0 None None None 2022-10-19 10:10:59 UTC
Red Hat Product Errata RHSA-2022:7830 0 None None None 2022-11-08 11:33:15 UTC
Red Hat Product Errata RHSA-2022:9073 0 None None None 2022-12-15 16:16:36 UTC
Red Hat Product Errata RHSA-2023:1742 0 None None None 2023-04-12 14:58:09 UTC
Red Hat Product Errata RHSA-2023:3742 0 None None None 2023-06-22 19:51:38 UTC

Description Guilherme de Almeida Suckevicz 2022-01-14 19:28:17 UTC
Accepting arbitrary Subject Alternative Name (SAN) types, unless a PKI is specifically defined to use a particular SAN type, can result in bypassing name-constrained intermediates. Node.js was accepting URI SAN types, which PKIs are often not defined to use. Additionally, when a protocol allows URI SANs, Node.js did not match the URI correctly.

Versions of Node.js with the fix for this disable the URI SAN type when checking a certificate against a hostname.

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

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

Affects: epel-7 [bug 2040845]
Affects: fedora-all [bug 2040841]


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

Affects: fedora-all [bug 2040842]


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

Affects: fedora-all [bug 2040843]


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

Affects: fedora-all [bug 2040844]

Comment 3 Cedric Buissart 2022-01-20 12:51:16 UTC
Upstream fix :
https://github.com/nodejs/node/commit/50439b446f1e6bfc91f03d4b070edb5357b16b8b

Comment 8 errata-xmlrpc 2022-06-06 09:27:02 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 9 Product Security DevOps Team 2022-06-06 12:46:57 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-44531

Comment 11 errata-xmlrpc 2022-10-19 10:10:56 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 12 errata-xmlrpc 2022-11-08 11:33:13 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 13 errata-xmlrpc 2022-12-15 16:16:34 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 14 errata-xmlrpc 2023-04-12 14:58:08 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 15 errata-xmlrpc 2023-06-22 19:51:35 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


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