Bug 2067387 (CVE-2022-24771) - CVE-2022-24771 node-forge: Signature verification leniency in checking `digestAlgorithm` structure can lead to signature forgery
Summary: CVE-2022-24771 node-forge: Signature verification leniency in checking `diges...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-24771
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: 2069008 2069007 2069009 2069010 2069011 2069012 2069013 2069014 2069015 2069016 2069214 2069215 2069216 2069589 2069590 2069591 2078881 2078882 2078883 2102579
Blocks: 2067462
TreeView+ depends on / blocked
 
Reported: 2022-03-23 20:30 UTC by Pedro Sampaio
Modified: 2024-03-19 02:23 UTC (History)
108 users (show)

Fixed In Version: node-forge 1.3.0
Clone Of:
Environment:
Last Closed: 2022-05-06 00:16:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:1681 0 None None None 2022-05-03 16:43:46 UTC
Red Hat Product Errata RHSA-2022:1739 0 None None None 2022-05-05 18:03:03 UTC
Red Hat Product Errata RHSA-2022:6156 0 None None None 2022-08-24 13:47:13 UTC
Red Hat Product Errata RHSA-2022:6813 0 None None None 2022-10-05 10:46:00 UTC
Red Hat Product Errata RHSA-2022:6835 0 None None None 2022-10-06 12:27:45 UTC

Description Pedro Sampaio 2022-03-23 20:30:42 UTC
Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code is lenient in checking the digest algorithm structure. This can allow a crafted structure that steals padding bytes and uses unchecked portion of the PKCS#1 encoded message to forge a signature when a low public exponent is being used. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.

https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765
https://github.com/digitalbazaar/forge/commit/3f0b49a0573ef1bb7af7f5673c0cfebf00424df1

Comment 3 Avinash Hanwate 2022-03-28 04:38:01 UTC
Created cockatrice tracking bugs for this issue:

Affects: fedora-all [bug 2069010]


Created couchdb tracking bugs for this issue:

Affects: fedora-all [bug 2069011]


Created dotnet3.1 tracking bugs for this issue:

Affects: fedora-all [bug 2069007]


Created golang-ariga-atlas tracking bugs for this issue:

Affects: fedora-all [bug 2069012]


Created golang-github-prometheus tracking bugs for this issue:

Affects: epel-all [bug 2069008]


Created golang-vitess tracking bugs for this issue:

Affects: fedora-all [bug 2069013]


Created grpc tracking bugs for this issue:

Affects: fedora-all [bug 2069014]


Created openvas-gsa tracking bugs for this issue:

Affects: fedora-all [bug 2069015]


Created zuul tracking bugs for this issue:

Affects: fedora-all [bug 2069016]

Comment 5 Ben Beasley 2022-03-28 13:56:41 UTC
Since grpc only references the affected package in a package-lock.json file for a sample project in the documentation, I have closed the grpc bugs as NOTABUG. (See also bug 2061818.) I’m removing the package-lock.json file from the sample project, which will hopefully keep bugs from being filed for CVEs in its recursive dependency tree in the future.

Comment 12 errata-xmlrpc 2022-05-03 16:43:40 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8

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

Comment 13 errata-xmlrpc 2022-05-05 18:02:59 UTC
This issue has been addressed in the following products:

  OpenShift Service Mesh 2.1

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

Comment 14 Product Security DevOps Team 2022-05-06 00:16:24 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-2022-24771

Comment 16 errata-xmlrpc 2022-08-24 13:47:08 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Data Foundation 4.11 on RHEL8

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

Comment 17 errata-xmlrpc 2022-10-05 10:45:54 UTC
This issue has been addressed in the following products:

  RHPAM 7.13.1 async

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

Comment 18 errata-xmlrpc 2022-10-06 12:27:40 UTC
This issue has been addressed in the following products:

  RHINT Service Registry 2.3.0 GA

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


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