CVE-2026-110176

File Force Download for Drupal 7 Access Bypass via Unconditional Download Headers

Published Oct 31, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
The File Force Download module for Drupal 7 implements hook_file_download() to add a Content-Disposition header when a file URL carries the download query parameter. In Drupal 7, returning a non-empty header array from that hook is itself a grant of access to the file.



In versions 7.1.0 through 7.1.2, the module only delegated to other modules' hook_file_download() implementations when the file was in the private scheme. For every other scheme it returned its headers without any check. An unauthenticated visitor who appended download=1 to the URL of a file in the temporary:// scheme, or in a stream wrapper supplied by another module, could retrieve the file, overriding the access checks that would otherwise have applied. Files in the public and private schemes are not affected.

Analysis

AI-generated

Technical impact

The File Force Download module for Drupal 7 allows an unauthenticated user to force the download of files that are not normally accessible by appending download=1 to a URL. The module adds a Content‑Disposition header without validating the file scheme except for private files. When the URL points to a file in the temporary:// scheme or to a file provided by a contributed stream wrapper, the module returns its headers regardless of access checks, giving the user direct access to the file. This bypass of the system’s access control can lead to disclosure of sensitive data and is a classic example of a CWE‑863 vulnerability.

Affected Systems

Drupal 7.1.0 through 7.1.2 with the File Force Download module enabled. The flaw affects files stored in the temporary:// scheme or in any stream wrapper supplied by third‑party modules. Files in the public and private schemes are not impacted.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.7, indicating high severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog. An attacker can exploit it by simply crafting an HTTP request to a file URL with download=1, without authentication. The simplicity of the attack vector combined with the lack of mitigation in the affected Drupal versions means the risk of exploitation is high if a file is stored in a vulnerable scheme.

Remediation

Vendor Workaround

Disable the File Force Download module, avoid keeping sensitive files in the temporary:// scheme or in stream wrappers provided by contributed modules, or block anonymous requests that carry a download parameter at the web server or WAF.


OpenCVE Recommended Actions

  • Disable the File Force Download module so that no unauthorized headers are added to file responses.
  • Move any sensitive files out of the temporary:// scheme or any third‑party stream wrapper and store them in the public or private schemes instead.
  • Configure the web server or a WAF to block anonymous requests that include the download parameter until an official fix is available.

Generated by OpenCVE AI on October 31, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Drupal
Drupal file Force Download
Vendors & Products Drupal
Drupal file Force Download
Type Values Removed Values Added
Description The File Force Download module for Drupal 7 implements hook_file_download() to add a Content-Disposition header when a file URL carries the download query parameter. In Drupal 7, returning a non-empty header array from that hook is itself a grant of access to the file. In versions 7.1.0 through 7.1.2, the module only delegated to other modules' hook_file_download() implementations when the file was in the private scheme. For every other scheme it returned its headers without any check. An unauthenticated visitor who appended download=1 to the URL of a file in the temporary:// scheme, or in a stream wrapper supplied by another module, could retrieve the file, overriding the access checks that would otherwise have applied. Files in the public and private schemes are not affected.
Title File Force Download for Drupal 7 Access Bypass via Unconditional Download Headers
Weaknesses CWE-863
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
drupal
Published
Updated
Nov 6, 2026, 3:55 PM
Reserved
Oct 13, 2026, 5:02 PM
Status
Awaiting Analysis
Published
Oct 31, 2026, 1:17 AM
Modified
Nov 6, 2026, 4:17 PM