CVE-2015-2783
published 2015-06-09CVE-2015-2783: ext/phar/phar.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows remote attackers to obtain sensitive information from process memory…
PriorityP431medium5.8CVSS 2.0
AVNACMAuNCPINAP
EPSS
10.88%
95.4th percentile
ext/phar/phar.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows remote attackers to obtain sensitive information from process memory or cause a denial of service (buffer over-read and application crash) via a crafted length value in conjunction with crafted serialized data in a phar archive, related to the phar_parse_metadata and phar_parse_pharfile functions.
Affected
41 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | mac_os_x | <= 10.10.5 | — |
| apple | os_x_el_capitan_v10.11 | — | — |
| apple | os_x_yosemite_v10.10.5_and_security_update_2015-006 | — | — |
| php | php | <= 5.4.39 | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
| php | php | — | — |
CVSS provenance
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:P
osv6.8MEDIUM
vendor_ubuntu6.8MEDIUM
vendor_redhat5.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PHP vulnerabilities
vendor_ubuntu·2015-04-20·CVSS 6.8
CVE-2015-2305 [MEDIUM] PHP vulnerabilities
Title: PHP vulnerabilities
Summary: Several security issues were fixed in PHP.
It was discovered that PHP incorrectly handled cleanup when used with
Apache 2.4. A remote attacker could use this issue to cause PHP to crash,
resulting in a denial of service, or possibly execute arbitrary code.
(CVE-2015-3330)
It was discovered that PHP incorrectly handled opening tar, zip or phar
archives through the PHAR extension. A remote attacker could use this issue
to cause PHP to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2015-3329)
It was discovered that PHP incorrectly handled regular expressions. A
remote attacker could use this issue to cause PHP to crash, resulting in a
denial of service, or possibly execute arbitrary code. (CVE-2015-2305)
Paulos Yibelo
Red Hat
php: buffer over-read in Phar metadata parsing
vendor_redhat·2015-04-16·CVSS 5.8
CVE-2015-2783 [MEDIUM] CWE-20 php: buffer over-read in Phar metadata parsing
php: buffer over-read in Phar metadata parsing
ext/phar/phar.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows remote attackers to obtain sensitive information from process memory or cause a denial of service (buffer over-read and application crash) via a crafted length value in conjunction with crafted serialized data in a phar archive, related to the phar_parse_metadata and phar_parse_pharfile functions.
A buffer over-read flaw was found in PHP's phar (PHP Archive) paths implementation. A malicious script author could possibly use this flaw to disclose certain portions of server memory.
Package: php (Red Hat Enterprise Linux 5) - Not affected
Package: php53 (Red Hat Enterprise Linux 5) - Will not fix
Package: php54-php (Red Hat Software Collections) - Affect
Apple
CVE-2015-2783: OS X Yosemite v10.10.5 and Security Update 2015-006
vendor_apple·CVSS 5.8
CVE-2015-2783 [MEDIUM] CVE-2015-2783: OS X Yosemite v10.10.5 and Security Update 2015-006
Apple Security Update: About the security content of OS X Yosemite v10.10.5 and Security Update 2015-006
Product: OS X Yosemite v10.10.5 and Security Update 2015-006
CVE: CVE-2015-2783
Component: CVE-2015-2783
Apple
CVE-2015-2783: OS X El Capitan v10.11
vendor_apple·CVSS 5.8
CVE-2015-2783 [MEDIUM] CVE-2015-2783: OS X El Capitan v10.11
Apple Security Update: About the security content of OS X El Capitan v10.11
Product: OS X El Capitan v10.11
CVE: CVE-2015-2783
Component: CVE-2015-2783
GHSA
GHSA-2f6j-55rv-w4vc: ext/phar/phar
ghsa_unreviewed·2022-05-14
CVE-2015-2783 [MEDIUM] CWE-119 GHSA-2f6j-55rv-w4vc: ext/phar/phar
ext/phar/phar.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows remote attackers to obtain sensitive information from process memory or cause a denial of service (buffer over-read and application crash) via a crafted length value in conjunction with crafted serialized data in a phar archive, related to the phar_parse_metadata and phar_parse_pharfile functions.
OSV
php5 vulnerabilities
osv·2015-04-20·CVSS 6.8
CVE-2015-3330 [MEDIUM] php5 vulnerabilities
php5 vulnerabilities
It was discovered that PHP incorrectly handled cleanup when used with
Apache 2.4. A remote attacker could use this issue to cause PHP to crash,
resulting in a denial of service, or possibly execute arbitrary code.
(CVE-2015-3330)
It was discovered that PHP incorrectly handled opening tar, zip or phar
archives through the PHAR extension. A remote attacker could use this issue
to cause PHP to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2015-3329)
It was discovered that PHP incorrectly handled regular expressions. A
remote attacker could use this issue to cause PHP to crash, resulting in a
denial of service, or possibly execute arbitrary code. (CVE-2015-2305)
Paulos Yibelo discovered that PHP incorrectly handled moving files when
OSV
CVE-2015-2783: ext/phar/phar
osv·2015-04-17·CVSS 5.8
CVE-2015-2783 [MEDIUM] CVE-2015-2783: ext/phar/phar
ext/phar/phar.c in PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 allows remote attackers to obtain sensitive information from process memory or cause a denial of service (buffer over-read and application crash) via a crafted length value in conjunction with crafted serialized data in a phar archive, related to the phar_parse_metadata and phar_parse_pharfile functions.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2015-3307 php: invalid pointer free() in phar_tar_process_metadata()
bugzilla·2015-05-20·CVSS 5.8
CVE-2015-3307 [MEDIUM] CVE-2015-3307 php: invalid pointer free() in phar_tar_process_metadata()
CVE-2015-3307 php: invalid pointer free() in phar_tar_process_metadata()
A vulnerability in PHP was reported whereby the Heap header gets misaligned resulting in the corruption of the heap chunk's metadata.
A heap chunk is allocated in ext/phar/tar.c:167
metadata = (char *) safe_emalloc(1, entry->uncompressed_filesize, 1);
A reference to this heap chunk is passed into phar_parse_metadata() at ext/phar/tar.c:176
if (phar_parse_metadata(&metadata, &entry->metadata, entry->uncompressed_filesize TSRMLS_CC) == FAILURE) {
The following gets called within phar_parse_metadata:611 when zip_metadata_len==0
PHAR_GET_32(*buffer, buf_len);
This moves the pointer referencing the heap chunk by 4 bytes.
When the heap chunk gets freeed at at tar.c:177:
efree(metadata);
The heap chunk is now misa
Bugzilla
CVE-2015-2783 php: buffer over-read in Phar metadata parsing
bugzilla·2015-04-20·CVSS 5.8
CVE-2015-2783 [MEDIUM] CVE-2015-2783 php: buffer over-read in Phar metadata parsing
CVE-2015-2783 php: buffer over-read in Phar metadata parsing
PHP versions 5.4.40, 5.5.24, and 5.6.8 provide a fix for Phar PHP extension which previously did not properly processed a crafted Phar data. This issue could lead to a sensitive information disclosure.
Upstream fix:
http://git.php.net/?p=php-src.git;a=commitdiff;h=9faaee66fa493372c7340b1ab05f8fd115131a42
Upstream bug:
https://bugs.php.net/bug.php?id=69324
Discussion:
Created php tracking bugs for this issue:
Affects: fedora-all [bug 1213456]
---
php-5.6.8-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
---
php-5.6.8-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug repor
Bugzilla
CVE-2015-2783 CVE-2015-3329 php: various flaws [fedora-all]
bugzilla·2015-04-20·CVSS 5.8
CVE-2015-2783 [MEDIUM] CVE-2015-2783 CVE-2015-3329 php: various flaws [fedora-all]
CVE-2015-2783 CVE-2015-3329 php: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. While only
http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.htmlhttp://lists.apple.com/archives/security-announce/2015/Sep/msg00008.htmlhttp://lists.opensuse.org/opensuse-security-announce/2015-05/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2015-05/msg00005.htmlhttp://marc.info/?l=bugtraq&m=143403519711434&w=2http://php.net/ChangeLog-5.phphttp://rhn.redhat.com/errata/RHSA-2015-1066.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1135.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1186.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1187.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1218.htmlhttp://www.debian.org/security/2015/dsa-3280http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.htmlhttp://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.htmlhttp://www.securityfocus.com/bid/74239http://www.securitytracker.com/id/1032146http://www.ubuntu.com/usn/USN-2572-1https://bugs.php.net/bug.php?id=69324https://security.gentoo.org/glsa/201606-10https://support.apple.com/HT205267https://support.apple.com/kb/HT205031http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.htmlhttp://lists.apple.com/archives/security-announce/2015/Sep/msg00008.htmlhttp://lists.opensuse.org/opensuse-security-announce/2015-05/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2015-05/msg00005.htmlhttp://marc.info/?l=bugtraq&m=143403519711434&w=2http://php.net/ChangeLog-5.phphttp://rhn.redhat.com/errata/RHSA-2015-1066.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1135.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1186.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1187.htmlhttp://rhn.redhat.com/errata/RHSA-2015-1218.htmlhttp://www.debian.org/security/2015/dsa-3280http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.htmlhttp://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.htmlhttp://www.securityfocus.com/bid/74239http://www.securitytracker.com/id/1032146http://www.ubuntu.com/usn/USN-2572-1https://bugs.php.net/bug.php?id=69324https://security.gentoo.org/glsa/201606-10https://support.apple.com/HT205267https://support.apple.com/kb/HT205031
2015-06-09
Published