CVE Vulnerabilities

CVE-2004-0594

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Jul 27, 2004 | Modified: Feb 15, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
5.1 MEDIUM
AV:N/AC:H/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function and overwriting a HashTable destructor pointer before the initialization of key data structures is complete.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state.

Affected Software

Name Vendor Start Version End Version
Openpkg Openpkg 2.0 (including) 2.0 (including)
Openpkg Openpkg 2.1 (including) 2.1 (including)
Converged_communications_server Avaya 2.0 (including) 2.0 (including)
Debian_linux Debian 3.0 (including) 3.0 (including)
Hp-ux Hp b.11.00 (including) b.11.00 (including)
Hp-ux Hp b.11.11 (including) b.11.11 (including)
Hp-ux Hp b.11.22 (including) b.11.22 (including)
Hp-ux Hp b.11.23 (including) b.11.23 (including)
Secure_linux Trustix 1.5 (including) 1.5 (including)
Secure_linux Trustix 2.0 (including) 2.0 (including)
Secure_linux Trustix 2.1 (including) 2.1 (including)

Potential Mitigations

References