Vulnerability · Published Jan 9, 2024 · Assigned by GitHub_M
CVE-2024-21668Insertion of Sensitive Information into Log File in react-native-mmkv
Medium 4.4
In plain English
A medium-severity sensitive data in logs in react-native-mmkv from mrousavy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | react-native-mmkv | 2.11.0 | GHSA-4jh3-6jhv-2mgp |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mrousavy | react-native-mmkv | < 2.11.0 |
Weakness: CWE-532 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N