CVE-2024-21668: react-native-mmkv Insertion of Sensitive Information into Log File vulnerability
4.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55562%
CWE
Published
1/9/2024
Updated
1/19/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| react-native-mmkv | npm | < 2.11.0 | 2.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the Android native code bridge logging the encryption key during MMKV instance creation. The commit a8995cc specifically modifies the logging statement in MmkvHostObject.cpp's constructor to stop printing cryptKey.c_str() and instead log a boolean indicating encryption status. This directly matches the CWE-532 description of sensitive information in logs, and the function's role in initializing the database with cryptographic material makes it the clear vulnerability source.