CWE
119 NVD-CWE-Other
Advisory Published
Updated

CVE-2004-1065: Buffer Overflow

First published: Wed Dec 22 2004(Updated: )

Buffer overflow in the exif_read_data function in PHP before 4.3.10 and PHP 5.x up to 5.0.2 allows remote attackers to execute arbitrary code via a long section name in an image file.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
PHP=4.3.9
PHP=3.0
PHP=3.0.5
PHP=3.0.11
PHP=4.2.0
PHP=3.0.1
PHP=3.0.2
PHP=4.1.0
openpkg openpkg=2.1
PHP=4.3.4
PHP=4.0.4
PHP=4.3.0
PHP=4.0.5
PHP=5.0-rc1
PHP=3.0.8
PHP=4.3.6
PHP=3.0.13
PHP=5.0.1
PHP=4.0.7-rc2
PHP=4.3.7
PHP=4.0.7-rc1
PHP=4.2.2
PHP=3.0.7
PHP=4.3.2
PHP=3.0.6
PHP=4.0.3-patch1
PHP=3.0.17
PHP=4.0.7
PHP=4.0.2
PHP=4.3.3
PHP=5.0-rc3
PHP=4.1.1
PHP=3.0.15
PHP=3.0.16
openpkg openpkg=current
PHP=3.0.10
PHP=3.0.4
PHP=4.2.3
PHP=4.0.1-patch1
PHP=4.0
PHP=4.0.1-patch2
PHP=4.0.6
PHP=5.0-rc2
PHP=4.1.2
PHP=4.0.7-rc3
openpkg openpkg=2.2
PHP=4.3.1
PHP=3.0.18
PHP=4.2.1
PHP=4.0.1
PHP=5.0.2
PHP=3.0.12
PHP=4.2
PHP=4.0.3
PHP=3.0.14
PHP=3.0.9
PHP=3.0.3
PHP=5.0.0
PHP=4.3.8
PHP=4.3.5
Trustix Secure Linux=2.0
Ubuntu=4.1
Trustix Secure Linux=2.1
Trustix Secure Linux=2.2
Ubuntu=4.1

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

    CVE-2004-1065 is considered critical due to the potential for remote code execution.

  • How do I fix CVE-2004-1065?

    To fix CVE-2004-1065, you should upgrade PHP to version 4.3.10 or later.

  • What systems are affected by CVE-2004-1065?

    CVE-2004-1065 affects PHP versions prior to 4.3.10 and 5.0.2 as well as specific versions of OpenPKG and Trustix Secure Linux.

  • What exploitation method is utilized in CVE-2004-1065?

    CVE-2004-1065 can be exploited through a buffer overflow in the exif_read_data function by using specially crafted image files.

  • Are there known workarounds for CVE-2004-1065?

    A known workaround for CVE-2004-1065 is to disable the exif extension in PHP if upgrading is not feasible.

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