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…
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
Action score
43
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.
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
| openpkg | openpkg | cpe:2.3:a:openpkg:openpkg |
| trustix | secure linux | cpe:2.3:o:trustix:secure_linux |
| ubuntu | ubuntu linux | cpe:2.3:o:ubuntu:ubuntu_linux |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
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
+12 more rows
- php php3.0.16
- php php3.0.17
- php php3.0.18
- php php3.0.2
- php php3.0.3
- php php3.0.4
- php php3.0.5
- php php3.0.6
- php php3.0.7
- php php3.0.8
- php php3.0.9
- php php4.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-19.ent | 0:4.3.2-19.ent |
| Red Hat:enterprise_linux:4::as | php | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-debuginfo | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-devel | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-domxml | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-gd | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-imap | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-ldap | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-mbstring | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-mysql | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-ncurses | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-odbc | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-pear | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-pgsql | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-snmp | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
| Red Hat:enterprise_linux:4::as | php-xmlrpc | before 0:4.3.9-3.2 | 0:4.3.9-3.2 |
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- 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…KEV99Now
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 / package | Fixed version | Source |
|---|---|---|
| red hat:php | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-debuginfo | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-devel | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-domxml | 0:4.3.9-3.2 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-gd | 0:4.3.9-3.2 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-imap | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ldap | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-mbstring | 0:4.3.9-3.2 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-mysql | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ncurses | 0:4.3.9-3.2 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-odbc | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-pgsql | 0:4.3.2-19.ent · Red Hat:enterprise_linux:3::as | Package 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.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (9 more)Show less
- msgs.securepoint.com/cgi-bin/get/bugtraq0412/157.html
- www.mandriva.com/security/advisories?name=MDKSA-2004:151
- www.novell.com/linux/security/advisories/2005_02_php4_mod_php4.html
- www.php.net/release_4_3_10.php
- www.redhat.com/support/errata/RHSA-2004-687.html
- www.redhat.com/support/errata/RHSA-2005-032.html
- bugzilla.fedora.us/show_bug.cgi?id=2344
- exchange.xforce.ibmcloud.com/vulnerabilities/18517
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10877
Vendor advisories and official records. Exploit/PoC links are deliberately left out.