# CVE-2024-21668: Insertion of Sensitive Information into Log File in react-native-mmkv

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2024-01-09T19:05:49.332Z
- Modified: 2026-09-10T03:50:04.757Z
- Also known as: GHSA-4jh3-6jhv-2mgp
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mrousavy react-native-mmkv: < 2.11.0; before 2.11.0
- react-native-mmkv (npm): before 2.11.0

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/mrousavy/react-native-mmkv/security/advisories/GHSA-4jh3-6jhv-2mgp> (vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2024-21668> (advisory)
- <https://github.com/mrousavy/react-native-mmkv> (package)

## Sources

- CVE List: [CVE-2024-21668](https://www.cve.org/CVERecord?id=CVE-2024-21668), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-4jh3-6jhv-2mgp](https://github.com/advisories/GHSA-4jh3-6jhv-2mgp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-21668](https://nvd.nist.gov/vuln/detail/CVE-2024-21668), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21668 · Whole record: https://cve.day/CVE-2024-21668.json · Rebuilt by cve.day 2026-11-25T22:58:36.001Z
