CWE
NVD-CWE-Other 190
Advisory Published
Rejected
Updated

CVE-2004-1018: Integer Overflow

First published: Wed Dec 08 2004(Updated: )

Multiple integer handling errors in PHP before 4.3.10 allow attackers to bypass safe mode restrictions, cause a denial of service, or execute arbitrary code via (1) a negative offset value to the shmop_write function, (2) an "integer overflow/underflow" in the pack function, or (3) an "integer overflow/underflow" in the unpack function. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP<4.3.10
Ubuntu=4.10

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-2004-1018?

    CVE-2004-1018 is considered to be of high severity due to the potential for remote code execution, denial of service, and the ability to bypass safe mode restrictions.

  • How do I fix CVE-2004-1018?

    To fix CVE-2004-1018, upgrade PHP to version 4.3.10 or later, or apply any patches provided by your distribution.

  • What vulnerabilities are associated with CVE-2004-1018?

    CVE-2004-1018 is associated with integer handling errors in PHP that can lead to denial of service, arbitrary code execution, and safe mode bypass.

  • Which versions of PHP are affected by CVE-2004-1018?

    CVE-2004-1018 affects all PHP versions prior to 4.3.10.

  • Can CVE-2004-1018 be exploited remotely?

    Yes, CVE-2004-1018 can be exploited remotely by attackers taking advantage of the integer handling errors in PHP.

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