CVE-2024-21668 json
Insertion of Sensitive Information into Log File in react-native-mmkv
published 2024-01-09 2 y ago modified 2026-09-10 1 mo ago also GHSA-4jh3-6jhv-2mgp , EUVD-2024-0246
- cvss
- 4.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
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.
Patch / fix
- npm react-native-mmkv 2.11.0
- mrousavy react-native-mmkv 2.11.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | react-native-mmkv | <2.11.0 |
2.11.0 |
Affected products
- mrousavy react-native-mmkv
Classification
- Weakness
-
- CWE-532 Insertion of Sensitive Information into Log File
References
-
github.com
/mrousavy/react-native-mmkv/commit/a8995ccb7184281f7d168bad3e9987c9bd05f00d
web, patch
-
github.com
/mrousavy/react-native-mmkv/security/advisories/GHSA-4jh3-6jhv-2mgp
web, vendor-advisory
-
github.com
/mrousavy/react-native-mmkv/releases/tag/v2.11.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-21668
advisory
-
github.com
/mrousavy/react-native-mmkv
package
Sources
- CVE List CVE-2024-21668
- GitHub Advisory GHSA-4jh3-6jhv-2mgp
- NVD CVE-2024-21668
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.