Insertion of Sensitive Information into Log File in react-native-mmkv
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-532.
Summary
react-native-mmkv is a library that allows easy use of MMKV inside React Native applications. Before version 2.11.0, the react-native-mmkv logged the optional encryption key for the MMKV database into the Android system log. The key can be obtained by anyone with access to the Android Debugging Bridge (ADB) if it is enabled in the phone settings. This bug is not present on iOS devices. By logging the encryption secret to the system logs, attackers can trivially recover the secret by enabling ADB and undermining an app's thread model. This issue has been patched in version 2.11.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mrousavy | react-native-mmkv | before 2.11.0 | 2.11.0 | Patch available | CNA |
| — | react-native-mmkv (npm) | before 2.11.0 | 2.11.0 | Patch available | GHSA-4jh3-6jhv-2mgp |
- react-native-mmkv Vendormrousavy Affected before 2.11.0 Fixed in 2.11.0 Patch available CNA
- react-native-mmkv (npm) Vendor— Affected before 2.11.0 Fixed in 2.11.0 Patch available GHSA-4jh3-6jhv-2mgp
Remediation
- Fix · CNA react-native-mmkv (mrousavy) Fixed in 2.11.0
- Fix · GHSA-4jh3-6jhv-2mgp react-native-mmkv (npm) Fixed in 2.11.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21668
- 2026-10-03 Alias added: GHSA-4jh3-6jhv-2mgp
References
Patch 1
Advisory 2
Sources
- CVE-2024-21668 · CVE Program
- CVE-2024-21668 · NVD
- FIRST EPSS
- GHSA-4jh3-6jhv-2mgp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences