Back

MEDIUM

php: dba_replace() file corruption vulnerability

Published Aug 25, 2009

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

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

References (11)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Aug 25, 2009
Updated Aug 7, 2024
Reserved Aug 24, 2009
NVD
Status Modified
Modified Jun 16, 2026
Red Hat
Severity Low
Public date Nov 28, 2008