CVE-2008-5695: Input Validation

Published Dec 19, 2008
·
Updated

wp-admin/options.php in WordPress MU before 1.3.2, and WordPress 2.3.2 and earlier, does not properly validate requests to update an option, which allows remote authenticated users with manageoptions and uploadfiles capabilities to execute arbitrary code by uploading a PHP script and adding this script's pathname to activeplugins.

Affected Software

2 affected components
WordPress WordPress<=2.3.2
WordPress Wordpress MU<1.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Revoke the 'upload_files' capability from any roles or users that do not require it. Use a capability-management plugin or call remove_cap() for the specific roles (e.g., remove_cap('role','upload_files')) so only trusted accounts can upload files.

    WordPress roles/capabilities upload_files = remove from untrusted roles/users
  2. Configuration

    Ensure the 'manage_options' capability is assigned only to trusted administrator accounts. Remove this capability from non-admin or untrusted accounts using a capability-management plugin or by adjusting role definitions (e.g., remove_cap('role','manage_options')).

    WordPress roles/capabilities manage_options = limit to trusted administrators
  3. Compensating control

    Prevent execution of uploaded PHP by configuring the web server to disallow PHP execution in upload directories (for example, disable PHP handler or add rules to deny .php execution in wp-content/uploads via .htaccess or equivalent Nginx configuration).

  4. Operational

    Audit the active_plugins option and the uploads directory for malicious entries/files: inspect the options table (option_name = 'active_plugins') for any plugin paths pointing to uploaded PHP files and remove such entries; scan wp-content/uploads for .php files and delete any unauthorized PHP files.

Event History

Dec 19, 2008
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
via NVD·06:30 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2008-5695?

CVE-2008-5695 is classified as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2008-5695?

To fix CVE-2008-5695, upgrade to WordPress version 2.3.3 or later, or WordPress MU version 1.3.2 or later.

3

Who is affected by CVE-2008-5695?

CVE-2008-5695 affects remote authenticated users with manage_options and upload_files capabilities in WordPress and WordPress MU.

4

What can an attacker do with CVE-2008-5695?

An attacker can execute arbitrary code by uploading a malicious PHP script due to the inadequate validation of requests.

5

When was CVE-2008-5695 reported?

CVE-2008-5695 was reported in late 2008, impacting specific versions of WordPress MU and WordPress.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203