Where
-Infinity
0

Vendor Risk Score

See how the php group compares to other vendors in security performance

View Risk Score →
Severity
7
Null Pointer Dereference

In PHP versions 8.1. before 8.1.34, 8.2. before 8.2.30, 8.3. before 8.3.29, 8.4. before 8.4.16, 8.5. before 8.5.1 when using the PDO PostgreSQL driver with PDO::ATTREMULATEPREPARES enabled, an invalid character sequence (such as \x99) in a prepared statement parameter may cause the quoting function PQescapeStringConn to return NULL, leading to a null pointer dereference in pdoparseparams() function. This may lead to crashes (segmentation fault) and affect the availability of the target server.

First published (updated )
Severity
7
Use After Free

In PHP versions 8.2. before 8.2.31, 8.3. before 8.3.31, 8.4. before 8.4.21, and 8.5. before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.

First published (updated )
Severity
5
AV:N/AC:L/Au:N/C:P/I:N/A:N

The Next action in PEAR HTMLQuickFormController 1.0.4 includes the SID in the URL even when session.useonlycookies is configured, which allows remote attackers to obtain the SID via an HTTP Referer field and possibly other vectors.

First published (updated )
Severity
4

According to https://www.php.net/manual/en/security.cgi-bin.force-redirect.php, the configuration directive cgi.forceredirect prevents anyone from calling PHP directly with a URL like http://host.example/cgi-bin/php/secretdir/script.php. The default value of cgi.forceredirect is 1.

But there is a bug that can cause attackers to bypass restrictions and access php-cgi directly.

First published (updated )
Severity
4
SQL Injection, Integer Overflow

PHP is vulnerable to an integer overflow in the mysqliapi.c:mysqlirealescapestring() function. An attacker could exploit this by performing a crafted query to cause a crash.

Upstream Bug:

https://bugs.php.net/bug.php?id=74544

First published (updated )
Severity
4

PHP through is vulnerable to an out of bounds access in the phppcre.c:phppcrereplaceimpl() function. An attacker could exploit this by calling pregreplace() with crafted arguments.

Upstream Bug:

https://bugs.php.net/bug.php?id=74604

First published (updated )
Severity
4

In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted.

Reference: https://bugs.php.net/bug.php?id=79082

First published (updated )
Severity
4
Buffer Overflow

Common Vulnerabilities and Exposures assigned an identifier CVE-2006-4484 to the following vulnerability:

Buffer overflow in the LWZReadByte function in ext/gd/libgd/gdgifin.c in the GD extension in PHP before 5.1.5 allows remote attackers to have an unknown impact via a GIF file with inputcodesize greater than MAXLWZBITS, which triggers an overflow when initializing the table array.

References: http://bugs.php.net/bug.php?id=38112 http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdgifin.c?r1=1.10&r2=1.11 http://www.php.net/ChangeLog-5.php#5.1.5

First published (updated )
Severity
4
Integer Overflow

It was reported [1],[2] that there was an integer overflow in PHP's shmopread() function. This function reads a given number of bytes from memory, at a given offset starting from a shared memory area. With a sufficiently large value, more memory is allocated than there is space for, which could result in a segfault because PHP is reading past its own memory. If there is enough allocated memory available, however, PHP could leak up to 2GB of arbitrary memory.

To test:

<?php $shmkey = ftok(FILE, 't'); $shmid = shmopopen($shmkey, "c", 0644, 100); $shmdata = shmopread($shmid, 1, 2147483647); //if there is no segmentation fault past this point, we have 2gb of memory! echo $shmdata; ?>

This sets a start value of 1, and 2^31 (2147483647) as the count:

2147483647+1 = -2147483647

This was corrected upstream [3] for version 5.3.6.

References:

[1] http://openwall.com/lists/oss-security/2011/03/08/9 [2] http://bugs.php.net/54193 [3] http://svn.php.net/viewvc/?view=revision&revision=309018

First published (updated )
EOL
Aug 14, 2014
Support Ends
Jun 30, 2011

End of life: 8/14/2014, End of support: 6/30/2011, Latest version: 5.3.29

First published (updated )
EOL
Aug 14, 2014
Support Ends
Jun 30, 2011

End of life: 8/14/2014, End of support: 6/30/2011, Latest version: 5.3.29

First published (updated )
EOL
Sep 5, 2005
Support Ends
Sep 5, 2005

End of life: 9/5/2005, End of support: 9/5/2005, Latest version: 5.0.5

First published (updated )
EOL
Sep 5, 2005
Support Ends
Sep 5, 2005

End of life: 9/5/2005, End of support: 9/5/2005, Latest version: 5.0.5

First published (updated )
EOL
Nov 30, 2020
Support Ends
Nov 30, 2019

End of life: 11/30/2020, End of support: 11/30/2019, Latest version: 7.2.34

First published (updated )
EOL
Nov 30, 2020
Support Ends
Nov 30, 2019

End of life: 11/30/2020, End of support: 11/30/2019, Latest version: 7.2.34

First published (updated )
EOL
Dec 31, 2018
Support Ends
Jan 19, 2017

End of life: 12/31/2018, End of support: 1/19/2017, Latest version: 5.6.40

First published (updated )
EOL
Dec 31, 2018
Support Ends
Jan 19, 2017

End of life: 12/31/2018, End of support: 1/19/2017, Latest version: 5.6.40

First published (updated )
EOL
Jan 6, 2011
Support Ends
Nov 2, 2008

End of life: 1/6/2011, End of support: 11/2/2008, Latest version: 5.2.17

First published (updated )
EOL
Jan 6, 2011
Support Ends
Nov 2, 2008

End of life: 1/6/2011, End of support: 11/2/2008, Latest version: 5.2.17

First published (updated )
EOL
Nov 26, 2023
Support Ends
Nov 26, 2022

End of life: 11/26/2023, End of support: 11/26/2022, Latest version: 8.0.30

First published (updated )
EOL
Nov 26, 2023
Support Ends
Nov 26, 2022

End of life: 11/26/2023, End of support: 11/26/2022, Latest version: 8.0.30

First published (updated )
EOL
Dec 31, 2026
Support Ends
Dec 31, 2024

End of life: 12/31/2026, End of support: 12/31/2024, Latest version: 8.2.33

First published (updated )
EOL
Dec 31, 2026
Support Ends
Dec 31, 2024

End of life: 12/31/2026, End of support: 12/31/2024, Latest version: 8.2.33

First published (updated )
EOL
Sep 14, 2015
Support Ends
Sep 14, 2014

End of life: 9/14/2015, End of support: 9/14/2014, Latest version: 5.4.45

First published (updated )
EOL
Sep 14, 2015
Support Ends
Sep 14, 2014

End of life: 9/14/2015, End of support: 9/14/2014, Latest version: 5.4.45

First published (updated )
EOL
Aug 24, 2006
Support Ends
Aug 24, 2006

End of life: 8/24/2006, End of support: 8/24/2006, Latest version: 5.1.6

First published (updated )
EOL
Aug 24, 2006
Support Ends
Aug 24, 2006

End of life: 8/24/2006, End of support: 8/24/2006, Latest version: 5.1.6

First published (updated )
EOL
Nov 28, 2022
Support Ends
Nov 28, 2021

End of life: 11/28/2022, End of support: 11/28/2021, Latest version: 7.4.33

First published (updated )
EOL
Nov 28, 2022
Support Ends
Nov 28, 2021

End of life: 11/28/2022, End of support: 11/28/2021, Latest version: 7.4.33

First published (updated )
EOL
Dec 31, 2027
Support Ends
Dec 31, 2025

End of life: 12/31/2027, End of support: 12/31/2025, Latest version: 8.3.33

First published (updated )

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203