• Advisory ID: PSA-2014-001
  • Project: Media (third-party module)
  • Version: 7.x
  • Date: 2014-01-08
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Access Bypass


This is a public service announcement regarding the "import media" permission, labeled as "Import media files from the local file system," provided by the Media module.

The Media module provides a method for Drupal administrators to import existing files from an arbitrary location on the server. Users with the 'import media' permission can import any file from the server as local Drupal files, even those outside the Drupal install directory, which could lead to information disclosure.

As such, this permission should be granted to trusted site administrators. In the 7.x-2.x version of the module, you may disable the sub-module named "Media Bulk Upload" to disable this functionality.

CVE identifier(s) issued

  • A CVE identifier will be requested, and added upon issuance, in accordance with Drupal Security Team processes.

Versions affected

  • Media module for Drupal 7.x

Drupal core is not affected. If you do not use the contributed Media module, there is nothing you need to do.


Only grant trusted site administrators the "import media" permission.

This permission is not marked as a restricted permission in the following versions:

  • Media module 7.x-1.x versions prior to 7.x-1.4
  • Media module 7.x-2.x versions prior to 7.x-2.0-alpha3+37-dev

Upgrading to the latest release is recommended, but not required.

Also see the Media project page.

Reported by

Fixed by

  • Dave Reid the module maintainer and of the Drupal Security Team

Coordinated by

  • Dave Reid the module maintainer and of the Drupal Security Team

Contact and More Information

The Drupal security team can be reached at security at drupal.org or via the contact form at http://drupal.org/contact.

Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.

Follow the Drupal Security Team on Twitter at https://twitter.com/drupalsecurity