CWE
94
Advisory Published
Updated

CVE-2007-1581: Code Injection

First published: Wed Mar 21 2007(Updated: )

The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting the hash_update_file function via a userspace (1) error or (2) stream handler, which can then be used to destroy and modify internal resources. NOTE: it was later reported that PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 are also affected.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP=5.2.9
PHP=5.1.5
PHP=5.1.2
PHP=5.3.1
PHP=5.1.1
PHP=5.1.6
PHP=5.0-rc1
PHP=5.2.7
PHP=5.2.2
PHP=5.0.5
PHP=5.0.1
PHP=5.1.4
PHP=5.2.5
PHP=5.0.4
PHP=5.2.12
PHP=5.0-rc3
PHP=5.2.11
PHP=5.2.6
PHP=5.3.0
PHP=5.2.3
PHP=5.0.3
PHP=5.1.0
PHP=5.2.13
PHP=5.2.0
PHP=5.0-rc2
PHP=5.2.4
PHP=5.3.2
PHP=5.1.3
PHP=5.2.10
PHP=5.0.2
PHP=5.2.1
PHP=5.0.0
PHP=5.2.8

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-2007-1581?

    CVE-2007-1581 has a high severity rating due to its potential to allow attackers to execute arbitrary code.

  • How do I fix CVE-2007-1581?

    Fixing CVE-2007-1581 involves upgrading PHP to a version later than 5.2.1 that addresses this vulnerability.

  • What versions of PHP are affected by CVE-2007-1581?

    CVE-2007-1581 affects PHP versions 5.0.0 through 5.2.1.

  • Can CVE-2007-1581 be exploited remotely?

    Yes, CVE-2007-1581 can be exploited remotely by context-dependent attackers.

  • What are the potential consequences of CVE-2007-1581?

    The consequences of CVE-2007-1581 include the ability for attackers to disrupt services or execute malicious code on affected systems.

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