Skip to main content
← All vulnerabilities
CVE-2024-21668GHSA-4JH3-6JHV-2MGP

Insertion of Sensitive Information into Log File in react-native-mmkv

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.11.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • mrousavy react-native-mmkv

    fixed in 2.11.0

  • react-native-mmkvnpm

    fixed in 2.11.0

References 3

GitHub · mrousavy/react-native-mmkv