{"id":"CVE-2004-0959","aliases":["EUVD-2004-0957","GHSA-276j-rjhh-4rwm","RHSA-2004:687"],"status":"published","title":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP...","description":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the \"$_FILES\" array to be modified.","severity":{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00577,"percentile":0.47796,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2004-10-16T04:00:00Z","modified":"2026-06-29T10:01:17Z","affected":[{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.3.2-19.ent"}]}],"bundled":5}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10961","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17392","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://securitytracker.com/id?1011307","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://secunia.com/advisories/12560/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109534848430404\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2344","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://archives.neohapsis.com/archives/vulnwatch/2004-q3/0054.html","tags":["mailing-list","x_refsource_VULNWATCH","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2004-687.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Patch","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0959","tags":["advisory"]},{"url":"http://secunia.com/advisories/12560"},{"url":"https://github.com/advisories/GHSA-276j-rjhh-4rwm"},{"url":"https://access.redhat.com/errata/RHSA-2004:687","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=131412","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=131562","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=132003","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=134971","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=134975","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=141132","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=142056","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_687.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0958","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617331","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0958","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0958","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0959","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617332","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0959","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1018","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617352","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1018","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1018","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1019","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617353","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1019","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1019","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1065","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617361","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1065","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1065","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0959","description":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the \"$_FILES\" array to be modified.","status":"published","published":"2004-10-16T04:00:00Z","modified":"2024-08-08T00:31:48.301Z","updated_at":"2026-11-02T14:34:54.758165Z"}],"euvd":[{"id":"EUVD-2004-0957","description":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the \"$_FILES\" array to be modified.","status":"published","published":"2004-10-16T04:00:00Z","modified":"2024-08-08T00:31:48Z","updated_at":"2026-11-03T01:15:17.239417Z"}],"ghsa":[{"id":"GHSA-276j-rjhh-4rwm","title":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP...","description":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the \"$_FILES\" array to be modified.","status":"published","published":"2022-04-29T02:58:41Z","modified":"2025-04-03T04:02:49Z","updated_at":"2026-11-02T15:00:39.470148Z"}],"nvd":[{"id":"CVE-2004-0959","description":"rfc1867.c in PHP before 5.0.2 allows local users to upload files to arbitrary locations via a PHP script with a certain MIME header that causes the \"$_FILES\" array to be modified.","status":"published","published":"2004-11-03T05:00:00Z","modified":"2026-06-16T22:06:44.697Z","cvss":[{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary"}],"updated_at":"2026-11-02T14:00:51.000028Z"}],"osv":[{"id":"RHSA-2004:687","title":"Red Hat Security Advisory: php security update","status":"published","published":"2024-09-17T01:14:42Z","modified":"2026-06-29T10:01:17Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
