Bug 306821 (CVE-2007-3294)

Summary: CVE-2007-3294 php tidy extension buffer overflow
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jorton
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-3294
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-26 15:48:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Hoger 2007-09-26 12:13:22 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2007-3294 to the following vulnerability:

Multiple buffer overflows in libtidy, as used in the Tidy extension for PHP 5.2.3 and possibly other products, allow context-dependent attackers to execute arbitrary code via (1) a long second argument to the tidy_parse_string function or (2) an unspecified vector to the tidy_repair_string function.  NOTE: this might only be an issue in environments where vsnprintf is implemented as a wrapper for vsprintf.

References:

http://www.milw0rm.com/exploits/4080
http://secunia.com/advisories/25735
http://xforce.iss.net/xforce/xfdb/34931

Comment 1 Tomas Hoger 2007-09-26 12:19:17 UTC
This issue does not affect php as shipped in Red Hat Enterprise Linux 2.1, 3, 4,
or 5, as those packages are not built with libtidy support.

Comment 2 Tomas Hoger 2007-09-26 15:48:58 UTC
php-tidy in Fedora does not demonstrate any problems with large arguments passed
to tidy functions.