CVE-2024-21668
MEDIUM 4.9CVSS 3.1react-native-mmkv Insertion of Sensitive Information into Log File vulnerability
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.
- Published
- 9 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-532
- Also known as
- GHSA-4jh3-6jhv-2mgp
- Sources
- NVDJSONOSV GHSA-4jh3-6jhv-2mgpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mrousavy | react-native-mmkvcpe:2.3:a:mrousavy:react-native-mmkv:*:*:*:*:*:node.js:*:* |
< 2.11.0 | 2.11.0 |
| OSV | npm | react-native-mmkv | < 2.11.0 | 2.11.0 |
References
- https://github.com/mrousavy/react-native-mmkv/commit/a8995ccb7184281f7d168bad3e9987c9bd05f00d · Patch, WEB
- https://github.com/mrousavy/react-native-mmkv/releases/tag/v2.11.0 · Release Notes, WEB
- https://github.com/mrousavy/react-native-mmkv/security/advisories/GHSA-4jh3-6jhv-2mgp · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21668 · ADVISORY
- https://github.com/mrousavy/react-native-mmkv · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Jan 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Jan 2024)