CVE-2008-7068

Summary

CVECVE-2008-7068
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2009-08-25 10:30:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v2.0 6.4 from [email protected]

AV:N/AC:L/Au:N/C:N/I:P/A:P

Problem Types: CWE-20 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:N/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php 4.0 All All All
Application Php Php 4.0 beta1 All All
Application Php Php 4.0 beta2 All All
Application Php Php 4.0 beta3 All All
Application Php Php 4.0 beta4 All All
Application Php Php 4.0 beta_4_patch1 All All
Application Php Php 4.0 rc1 All All
Application Php Php 4.0 rc2 All All
Application Php Php 4.0.0 All All All
Application Php Php 4.0.1 All All All
Application Php Php 4.0.1 patch1 All All
Application Php Php 4.0.1 patch2 All All
Application Php Php 4.0.2 All All All
Application Php Php 4.0.3 All All All
Application Php Php 4.0.3 patch1 All All
Application Php Php 4.0.4 All All All
Application Php Php 4.0.4 patch1 All All
Application Php Php 4.0.5 All All All
Application Php Php 4.0.6 All All All
Application Php Php 4.0.7 All All All
Application Php Php 4.0.7 rc1 All All
Application Php Php 4.0.7 rc2 All All
Application Php Php 4.0.7 rc3 All All
Application Php Php 4.0.7 rc4 All All
Application Php Php 4.1.0 All All All
Application Php Php 4.1.1 All All All
Application Php Php 4.1.2 All All All
Application Php Php 4.2 All dev All
Application Php Php 4.2.0 All All All
Application Php Php 4.2.1 All All All
Application Php Php 4.2.2 All All All
Application Php Php 4.2.3 All All All
Application Php Php 4.3.0 All All All
Application Php Php 4.3.1 All All All
Application Php Php 4.3.10 All All All
Application Php Php 4.3.11 All All All
Application Php Php 4.3.2 All All All
Application Php Php 4.3.3 All All All
Application Php Php 4.3.4 All All All
Application Php Php 4.3.5 All All All
Application Php Php 4.3.6 All All All
Application Php Php 4.3.7 All All All
Application Php Php 4.3.8 All All All
Application Php Php 4.3.9 All All All
Application Php Php 4.4.0 All All All
Application Php Php 4.4.1 All All All
Application Php Php 4.4.2 All All All
Application Php Php 4.4.3 All All All
Application Php Php 4.4.4 All All All
Application Php Php 4.4.5 All All All
Application Php Php 4.4.6 All All All
Application Php Php 4.4.7 All All All
Application Php Php 4.4.8 All All All
Application Php Php 4.4.9 All All All
Application Php Php 5.2.6 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
SecurityReason - PHP 5.2.6 dba_replace() destroying file ( Research Advisory ) af854a3a-2127-422b-91ae-364da2661108 securityreason.com Exploit
cvs.php.net/viewvc.cgi/php-src/NEWS af854a3a-2127-422b-91ae-364da2661108 cvs.php.net Vendor Advisory
www.osvdb.org/52206 af854a3a-2127-422b-91ae-364da2661108 www.osvdb.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2009-08-27Tomas HogerThis 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.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report