Bug 2040846 (CVE-2021-44532) - CVE-2021-44532 nodejs: Certificate Verification Bypass via String Injection
Summary: CVE-2021-44532 nodejs: Certificate Verification Bypass via String Injection
Keywords:
Status: NEW
Alias: CVE-2021-44532
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: 2042979 2042980 2042981 2046369 2052252 2086804 2086805 2086806 2086807 2087167 2040847 2040848 2040849 2040850 2040851 2042977 2042978 2042983 2046354
Blocks: 2040868
TreeView+ depends on / blocked
 
Reported: 2022-01-14 19:34 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-05-19 08:20 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:
It was found that node.js did not safely read the x509 certificate generalName format properly, resulting in data injection. A certificate could use a specially crafted extension in order to be successfully validated, permitting an attacker to impersonate a trusted host.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2022-01-14 19:34:20 UTC
Node.js converts SANs (Subject Alternative Names) to a string format. It uses this string to check peer certificates against hostnames when validating connections. The string format was subject to an injection vulnerability when name constraints were used within a certificate chain, allowing the bypass of these name constraints.

Versions of Node.js with the fix for this escape SANs containing the problematic characters in order to prevent the injection.

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

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

Affects: epel-7 [bug 2040851]
Affects: fedora-all [bug 2040848]


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

Affects: fedora-all [bug 2040847]


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

Affects: fedora-all [bug 2040849]


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

Affects: fedora-all [bug 2040850]

Comment 2 Cedric Buissart 2022-01-20 12:53:47 UTC
Upstream fix :
https://github.com/nodejs/node/commit/466e5415a2b7b3574ab5403acb87e89a94a980d1


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