php: dba_replace() file corruption vulnerability
Published Aug 25, 2009
6.4
MEDIUMCVSS 2.0
EPSS 1.59%
Description
The dba_replace function in PHP 5.2.6 and 4.x allows context-dependent attackers to cause a denial of service (file truncation) via a key with the NULL byte. NOTE: this might only be a vulnerability in limited circumstances in which the attacker can modify or add database entries but does not have permissions to truncate the file.
Affected products
No data.
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.1
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.3
- 4.0.4
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.0.7
- 4.0.7
- 4.0.7
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.4.5
- 4.4.6
- 4.4.7
- 4.4.8
- 4.4.9
- 5.2.6
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
This is not a security issue. A user with read and write access to a file can reasonably be expected to manipulate the contents of the file, including truncating it. Instead of using dba_replace(), a user could simply fopen() the file in write mode, which provides the same end-result.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.59% (0.01591) | 74.77th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.59% (0.01591) | 72.41th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.60% (0.00603) | 67.04th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.82% (0.01817) | 71.70th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.66% (0.00665) | 69.52th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.94% (0.00936) | 83.72th | v3 (v2023.03.01) |
| Mar 22, 2024 | 0.94% (0.00936) | 82.68th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.94% (0.00939) | 80.68th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
References (11)
- http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1313&r2=1.2027.2.547.2.1314& x_refsource_CONFIRMVendor Advisory
- http://securityreason.com/achievement_securityalert/58 third-party-advisoryx_refsource_SREASONRESExploit
- http://www.osvdb.org/52206 vdb-entryx_refsource_OSVDB
- http://www.securityfocus.com/archive/1/498746/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/archive/1/498981/100/0/threaded mailing-listx_refsource_BUGTRAQ
- http://www.securityfocus.com/archive/1/498982/100/0/threaded mailing-listx_refsource_BUGTRAQ
- https://access.redhat.com/security/cve/CVE-2008-7068 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=519266 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/47316 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2008-7068
- https://www.cve.org/CVERecord?id=CVE-2008-7068
| Link | Providers | Tags |
|---|---|---|
| http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1313&r2=1.2027.2.547.2.1314& | x_refsource_CONFIRMVendor Advisory | |
| http://securityreason.com/achievement_securityalert/58 | third-party-advisoryx_refsource_SREASONRESExploit | |
| http://www.osvdb.org/52206 | vdb-entryx_refsource_OSVDB | |
| http://www.securityfocus.com/archive/1/498746/100/0/threaded | mailing-listx_refsource_BUGTRAQ | |
| http://www.securityfocus.com/archive/1/498981/100/0/threaded | mailing-listx_refsource_BUGTRAQ | |
| http://www.securityfocus.com/archive/1/498982/100/0/threaded | mailing-listx_refsource_BUGTRAQ | |
| https://access.redhat.com/security/cve/CVE-2008-7068 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=519266 | Issue Tracking | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/47316 | vdb-entryx_refsource_XF | |
| https://nvd.nist.gov/vuln/detail/CVE-2008-7068 | ||
| https://www.cve.org/CVERecord?id=CVE-2008-7068 |
Change history (0)
No recorded changes yet.