Moderate severityNVD Advisory· Published Jan 9, 2024· Updated Jun 17, 2025
Insertion of Sensitive Information into Log File in react-native-mmkv
CVE-2024-21668
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
react-native-mmkvnpm | < 2.11.0 | 2.11.0 |
Affected products
2- Range: < 2.11.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-4jh3-6jhv-2mgpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-21668ghsaADVISORY
- github.com/mrousavy/react-native-mmkv/commit/a8995ccb7184281f7d168bad3e9987c9bd05f00dghsax_refsource_MISCWEB
- github.com/mrousavy/react-native-mmkv/releases/tag/v2.11.0ghsax_refsource_MISCWEB
- github.com/mrousavy/react-native-mmkv/security/advisories/GHSA-4jh3-6jhv-2mgpghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.