{"id":"CVE-2024-21668","published":"2024-01-09T19:05:49Z","modified":"2025-06-17T14:26:17Z","title":"Insertion of Sensitive Information into Log File in react-native-mmkv","vendor":"mrousavy","product":"react-native-mmkv","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00383,"percentile":0.33278,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/mrousavy/react-native-mmkv/security/advisories/GHSA-4jh3-6jhv-2mgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mrousavy/react-native-mmkv/commit/a8995ccb7184281f7d168bad3e9987c9bd05f00d","tags":["x_refsource_MISC"]},{"url":"https://github.com/mrousavy/react-native-mmkv/releases/tag/v2.11.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":6.66},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"mrousavy","affectedVersions":[{"vendor":"mrousavy","product":"react-native-mmkv","versions":["< 2.11.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-07T16:44:20.437998Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"react-native-mmkv","vulnerableRanges":["<2.11.0"],"patched":["2.11.0"],"from":["GHSA-4jh3-6jhv-2mgp"],"provenance":"source"}],"summary":{"text":"The react-native-mmkv library for React Native applications logs the optional MMKV database encryption key to the Android system log, a flaw that does not affect iOS. An attacker with local access who can use the Android Debugging Bridge, which requires it to be enabled on the device, can read the key from the system log and recover the database encryption secret.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:43Z"},"euvd":{"id":"EUVD-2024-0246","exploited":false,"provenance":"source"}}