| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP up to 4.4.4. It has been declared as critical. This vulnerability affects the function sqlite_udf_decode_binary. Executing a manipulation of the argument in can lead to sql injection.
This vulnerability appears as CVE-2007-1887. The attack may be performed from remote. In addition, an exploit is available.
It is recommended to upgrade the affected component.
Details
A vulnerability classified as critical was found in PHP up to 4.4.4 (Programming Language Software). This vulnerability affects the function sqlite_udf_decode_binary. The manipulation of the argument in with an unknown input leads to a sql injection vulnerability. The CWE definition for the vulnerability is CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
Buffer overflow in the sqlite_decode_binary function in the bundled sqlite library in PHP 4 before 4.4.5 and PHP 5 before 5.2.1 allows context-dependent attackers to execute arbitrary code via an empty value of the in parameter, as demonstrated by calling the sqlite_udf_decode_binary function with a 0x01 character.
The bug was discovered 03/31/2007. The weakness was presented 04/05/2007 by Stefan Esser (Website). The advisory is shared for download at php.net. This vulnerability was named CVE-2007-1887 since 04/05/2007. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Technical details and also a public exploit are known. The MITRE ATT&CK project declares the attack technique as T1505.
It is possible to download the exploit at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 5 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 27759 (Fedora 7 : php-5.2.4-1.fc7 (2007-2215)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12259 (PHP Prior to 5.2.1/4.4.5 Multiple Vulnerabilities).
Upgrading to version 4.4.5 eliminates this vulnerability. A possible mitigation has been published 6 months after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at X-Force (33766), Tenable (27759), SecurityFocus (BID 23235†), OSVDB (33958†) and Secunia (SA25062†). See VDB-2920, VDB-2911, VDB-2914 and VDB-2917 for similar entries. Once again VulDB remains the best source for vulnerability data.
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.3
VulDB Temp Score: 6.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Sql injectionCWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 27759
Nessus Name: Fedora 7 : php-5.2.4-1.fc7 (2007-2215)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍
OpenVAS ID: 58335
OpenVAS Name: Debian Security Advisory DSA 1283-1 (php5)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: PHP 4.4.5
Timeline
03/31/2007 🔍03/31/2007 🔍
03/31/2007 🔍
04/05/2007 🔍
04/05/2007 🔍
04/05/2007 🔍
04/16/2007 🔍
04/30/2007 🔍
09/18/2007 🔍
11/06/2007 🔍
03/13/2015 🔍
07/18/2019 🔍
Sources
Product: php.orgAdvisory: php.net
Researcher: Stefan Esser
Status: Not defined
Confirmation: 🔍
CVE: CVE-2007-1887 (🔍)
GCVE (CVE): GCVE-0-2007-1887
GCVE (VulDB): GCVE-100-36028
OVAL: 🔍
X-Force: 33766
SecurityFocus: 23235 - PHP sqlite_udf_decode_binary() Function Buffer Overflow Vulnerability
Secunia: 25062
OSVDB: 33958 - CVE-2007-1887 - PHP - Buffer Overflow Issue
Vulnerability Center: 14858 - PHP before 4.4.5 and 5.2.1 Buffer Overflow in the sqlite_decode_binary Function Code Execution, Medium
Vupen: ADV-2007-2016
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 03/13/2015 14:56Updated: 07/18/2019 09:02
Changes: 03/13/2015 14:56 (86), 07/18/2019 09:02 (5)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.