CWE
20
Advisory Published
Updated

CVE-2012-5653: Input Validation

First published: Thu Jan 03 2013(Updated: )

The file upload feature in Drupal 6.x before 6.27 and 7.x before 7.18 allows remote authenticated users to bypass the protection mechanism and execute arbitrary PHP code via a null byte in a file name.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Drupal=7.0
Drupal=7.0-alpha1
Drupal=7.0-alpha2
Drupal=7.0-alpha3
Drupal=7.0-alpha4
Drupal=7.0-alpha5
Drupal=7.0-alpha6
Drupal=7.0-alpha7
Drupal=7.0-beta1
Drupal=7.0-beta2
Drupal=7.0-beta3
Drupal=7.0-dev
Drupal=7.0-rc1
Drupal=7.0-rc2
Drupal=7.0-rc3
Drupal=7.0-rc4
Drupal=7.1
Drupal=7.2
Drupal=7.3
Drupal=7.4
Drupal=7.5
Drupal=7.6
Drupal=7.7
Drupal=7.8
Drupal=7.9
Drupal=7.10
Drupal=7.11
Drupal=7.12
Drupal=7.13
Drupal=7.14
Drupal=7.15
Drupal=7.16
Drupal=7.17
Drupal=7.x-dev
Debian Linux=6.0
Debian Linux=7.0
Drupal=6.0
Drupal=6.0-beta1
Drupal=6.0-beta2
Drupal=6.0-beta3
Drupal=6.0-beta4
Drupal=6.0-dev
Drupal=6.0-rc1
Drupal=6.0-rc2
Drupal=6.0-rc3
Drupal=6.0-rc4
Drupal=6.1
Drupal=6.2
Drupal=6.3
Drupal=6.4
Drupal=6.5
Drupal=6.6
Drupal=6.7
Drupal=6.8
Drupal=6.9
Drupal=6.10
Drupal=6.11
Drupal=6.12
Drupal=6.13
Drupal=6.14
Drupal=6.15
Drupal=6.16
Drupal=6.17
Drupal=6.18
Drupal=6.19
Drupal=6.20
Drupal=6.21
Drupal=6.22
Drupal=6.23
Drupal=6.24
Drupal=6.25
Drupal=6.26

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2012-5653?

    CVE-2012-5653 is rated as a medium severity vulnerability due to its ability to allow remote authenticated users to execute arbitrary PHP code.

  • How do I fix CVE-2012-5653?

    To fix CVE-2012-5653, upgrade your Drupal installation to version 6.27 or 7.18 or later.

  • Who is affected by CVE-2012-5653?

    CVE-2012-5653 affects users of Drupal versions 6.x before 6.27 and 7.x before 7.18.

  • What types of attacks can be conducted using CVE-2012-5653?

    CVE-2012-5653 allows attackers to upload files with null byte characters in the name, enabling them to execute arbitrary PHP code.

  • Is there a workaround for CVE-2012-5653?

    No official workaround is available for CVE-2012-5653; upgrading to the latest version of Drupal is the recommended mitigation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203