VYPR
Unrated severityNVD Advisory· Published Jan 25, 2022· Updated Apr 23, 2025

SQL Injection in FileContentProvider (GHSL-2021-1007)

CVE-2021-43863

Description

The Nextcloud Android app is the Android client for Nextcloud, a self-hosted productivity platform. The Nextcloud Android app uses content providers to manage its data. Prior to version 3.18.1, the providers FileContentProvider and DiskLruImageCacheFileProvider have security issues (an SQL injection, and an insufficient permission control, respectively) that allow malicious apps in the same device to access Nextcloud's data bypassing the permission control system. Users should upgrade to version 3.18.1 to receive a patch. There are no known workarounds aside from upgrading.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2021-43863 fixes an SQL injection in FileContentProvider and a permission bypass in DiskLruImageCacheFileProvider in Nextcloud Android app before 3.18.1.

Vulnerability

The Nextcloud Android app, versions prior to 3.18.1, contains two security issues in its content providers. The FileContentProvider has an SQL injection vulnerability (GHSL-2021-1007) where user-supplied input is not properly sanitized before being used in SQL queries. The DiskLruImageCacheFileProvider has insufficient permission control, allowing access without proper authorization [1][2].

Exploitation

An attacker requires a malicious app installed on the same device as the Nextcloud Android app. No additional network access or authentication is needed because the attack is local. The malicious app can exploit the SQL injection in FileContentProvider by crafting content provider queries with malicious SQL, or directly access files through DiskLruImageCacheFileProvider due to the insufficient permission check [1][2].

Impact

Successful exploitation allows a malicious app to bypass Nextcloud's permission control system and access Nextcloud data stored on the device. This can lead to unauthorized disclosure of files, metadata, and other sensitive information stored in the Nextcloud app's local storage [2].

Mitigation

Users should upgrade to Nextcloud Android app version 3.18.1 or later, which was released on 2022-01-25 and contains the fixes for both issues [2]. The fix includes input validation in FileContentProvider to prevent SQL injection and proper permission checks in DiskLruImageCacheFileProvider. No workarounds are available; upgrading is the only mitigation [1][2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.