CWE
78
Advisory Published
Updated

CVE-2007-5653: OS Command Injection

First published: Tue Oct 23 2007(Updated: )

The Component Object Model (COM) functions in PHP 5.x on Windows do not follow safe_mode and disable_functions restrictions, which allows context-dependent attackers to bypass intended limitations, as demonstrated by executing objects with the kill bit set in the corresponding ActiveX control Compatibility Flags, executing programs via a function in compatUI.dll, invoking wscript.shell via wscript.exe, invoking Scripting.FileSystemObject via wshom.ocx, and adding users via a function in shgina.dll, related to the com_load_typelib function.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP<=5.2.4

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-5653?

    CVE-2007-5653 has been classified as a high-severity vulnerability due to its ability to allow attackers to bypass security restrictions.

  • How do I fix CVE-2007-5653?

    To mitigate CVE-2007-5653, upgrade PHP to a version later than 5.2.4 where this vulnerability has been addressed.

  • What systems are affected by CVE-2007-5653?

    CVE-2007-5653 affects PHP 5.x on Windows systems, specifically versions up to and including 5.2.4.

  • What types of attacks can occur due to CVE-2007-5653?

    CVE-2007-5653 allows attackers to execute objects that have the kill bit set, potentially leading to unauthorized actions on the system.

  • Is CVE-2007-5653 a remote or local vulnerability?

    CVE-2007-5653 is considered a local vulnerability because it requires context-dependent access to exploit the COM functions.

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