Drupal Form API ignores access restrictions on submit buttons

drupal/core Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
7.5

CVE-2016-3165: Drupal Form API ignores access restrictions on submit buttons. Affects drupal/core versions >= 6.0, < 6.38. Fixed in 6.38. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Drupal is a popular open-source content management system (CMS) written in PHP. It provides a flexible framework for building websites and applications. The Form API is a key component of Drupal that allows developers to create and handle forms. It provides a set of functions and methods for defining, rendering, and processing forms. However, a vulnerability has been discovered in the Form API of Drupal versions 6.x before 6.38. This vulnerability allows remote attackers to bypass access restrictions on submit buttons, potentially leading to unauthorized actions or data manipulation.

Vulnerability Detail

The vulnerability arises from the Form API's failure to enforce access restrictions on submit buttons. In Drupal 6.x before 6.38, the '#access' property of a submit button in the server-side form definition is not properly checked. This means that even if a user does not have the necessary permissions to access or submit a form, they can still do so by leveraging a button with '#access' set to FALSE. This bypasses the intended access restrictions and allows the attacker to perform actions that should be restricted. The impact of this vulnerability depends on the specific form and the permissions associated with it. However, it could potentially lead to unauthorized data modification, privilege escalation, or other malicious activities.

How To Fix

Minimum fixed version

6.38

This is the first release that contains the fix.

composer require drupal/core:6.38

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to Drupal 6.38 or later is not immediately feasible, a temporary workaround can be implemented by manually modifying the affected forms. Developers can review the form definitions and ensure that the '#access' property of submit buttons is properly set according to the desired access restrictions. By explicitly setting '#access' to TRUE or FALSE based on the required permissions, the vulnerability can be mitigated. However, this workaround is not recommended as it requires manual intervention and may introduce human error. Upgrading to the latest version of Drupal is the recommended solution.

Conclusion

In conclusion, the Drupal Form API vulnerability allows remote attackers to bypass access restrictions on submit buttons, potentially leading to unauthorized actions or data manipulation. To mitigate this vulnerability, it is recommended to upgrade to Drupal version 6.38 or later. Regularly updating and maintaining your Drupal installation is crucial for overall security. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for drupal/core →

Share this vulnerability

FAQ

The vulnerability affects Drupal versions 6.x before 6.38.

The impact of this vulnerability depends on the specific form and the permissions associated with it. However, it could potentially lead to unauthorized data modification, privilege escalation, or other malicious activities.

To fix this vulnerability, it is recommended to upgrade to Drupal version 6.38 or later.

Yes, a temporary workaround can be implemented by manually modifying the affected forms.

Upgrading to the latest version of Drupal is generally a good practice to benefit from the latest security patches and improvements.

Related vulnerabilities

Recent vulnerabilities recorded for drupal/core.

How To Fix

Minimum fixed version

6.38

This is the first release that contains the fix.

composer require drupal/core:6.38

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback