Miggo Logo

CVE-2021-43667: NULL Pointer Dereference in HyperLedger Fabric

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.66844%
Published
5/25/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/hyperledger/fabricgo>= 2.3.0, < 2.3.32.3.3
github.com/hyperledger/fabricgo< 2.2.42.2.4

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from missing nil pointer validation in the ChannelHeader function as shown in the commit diff. The fix (ebf94b1) explicitly adds a nil check for the envelope parameter. This function is critical for message processing in ordering nodes, and its NULL dereference directly matches the described crash scenario when handling malicious messages via forwardToLeader.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* vuln*r**ility **s ***n **t**t** in *yp*rL****r ***ri* v*.*.*, v*.*.*, v*.*.*. T*is *u* **n ** l*v*r**** *y *onstru*tin* * m*ss*** w*os* p*ylo** is nil *n* s*n*in* t*is m*ss*** wit* t** m*t*o* '*orw*r*ToL****r'. T*is *u* **s ***n **mitt** *n* *ix**

Reasoning

T** vuln*r**ility st*ms *rom missin* nil point*r `v*li**tion` in t** `***nn*l*****r` *un*tion *s s*own in t** *ommit *i**. T** *ix (`*******`) *xpli*itly ***s * nil ****k *or t** *nv*lop* p*r*m*t*r. T*is *un*tion is *riti**l *or m*ss*** `pro**ssin*`