Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2004-1065: 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…

CriticalCVSS 10.0 · v2.0—No exploit Fix available

Noroxi assessment

Priority: Plan (action score 43/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 10% (FIRST EPSS); higher than 95.6% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: php (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent; php-debuginfo (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent; php-devel (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent.

Add it to your regular patch cycle. Upgrade to php (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent; php-debuginfo (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent; php-devel (Red Hat:enterprise_linux:3::as) 0:4.3.2-19.ent or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Jan 10, 2005
Updated
Jun 16, 2026
EPSS
10.0% · 95th percentile
CWE
—

Report tools

JSON

Action score

43

Plan

Add it to your regular patch cycle.

CVSS
40 / 40 · 10.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
3 / 30 · 10.0%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2004-1065

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
phpphp
openpkgopenpkg
trustixsecure linux
ubuntuubuntu linux

Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)

Watch new CVEs for php

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or is weaponized

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • php php3.0
  • php php3.0.1
  • php php3.0.10
  • php php3.0.11
  • php php3.0.12
  • php php3.0.13
  • php php3.0.14
  • php php3.0.15

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Red Hat:enterprise_linux:3::asphpbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-debuginfobefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-develbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-imapbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-ldapbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-mysqlbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-odbcbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:3::asphp-pgsqlbefore 0:4.3.2-19.ent0:4.3.2-19.ent
Red Hat:enterprise_linux:4::asphpbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-debuginfobefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-develbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-domxmlbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-gdbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-imapbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-ldapbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-mbstringbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-mysqlbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-ncursesbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-odbcbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-pearbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-pgsqlbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-snmpbefore 0:4.3.9-3.20:4.3.9-3.2
Red Hat:enterprise_linux:4::asphp-xmlrpcbefore 0:4.3.9-3.20:4.3.9-3.2

Same product

php: all records

Other highest-scoring records for the same primary product.

  • CVE-2024-4577Argument Injection in PHP-CGIKEV
    99Now
  • CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV
    99Now
  • CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV
    99Now

Published before and after this one in the same product

  • ← EarlierCVE-2004-1063Jan 10, 2005 · PHP 4.x to 4.3.9, and PHP 5.x to 5.0.2, when running in safe mode on a multithreaded Unix webserver, allows local users to bypass…
    41Plan
  • ← EarlierCVE-2004-1064Jan 10, 2005 · The safe mode checks in PHP 4.x to 4.3.9 and PHP 5.x to 5.0.2 truncate the file path before passing the data to the realpath function…
    41Plan
  • Later →CVE-2005-1043Apr 14, 2005 · exif.c in PHP before 4.3.11 allows remote attackers to cause a denial of service (memory consumption and crash) via an EXIF header with a…
    21Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
red hat:php0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-debuginfo0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-devel0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-domxml0:4.3.9-3.2 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:php-gd0:4.3.9-3.2 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:php-imap0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-ldap0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-mbstring0:4.3.9-3.2 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:php-mysql0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-ncurses0:4.3.9-3.2 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:php-odbc0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)
red hat:php-pgsql0:4.3.2-19.ent · Red Hat:enterprise_linux:3::asPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
C · data can be read
Integrity
C · data or configuration can be modified
Availability
C · the service can be disrupted
Attack complexity
Low
Confidentiality impact
C
Integrity impact
C
Availability impact
C

Weakness class (CWE)

—

CVSS vector

AV:N/AC:L/Au:N/C:C/I:C/A:C

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records