CIVI-CONTRIB-2026-04: Documents - SQL Injection, Local File Read and Access Bypass

The upload actions that Documents adds to Action Provider read a caller-supplied URL, allowing local file reads and server-side requests, and deleted any attachment whose file ID was submitted. Upgrading Action Provider stops the URL read but not the deletion. The contact documents page passed request values into SQL, allowing SQL injection by users with "access documents". Documents did not check contact and case permissions on documents and their versions.

Security Risk
Moderately Critical
Vulnerability
SQL Injection
Information Disclosure
Server-Side Request Forgery
Access Bypass
Affected Versions

Documents v1.34 and earlier

Fixed Versions

Documents v1.35 and later

Publication Date
Solutions

Upgrade to a fixed version of Documents

Credits

(Alphabetically) Jaap Jansma (CiviCooP), Martin Correll (CiviService)