CVE-2007-4916

HP Photo and Imaging Gallery - Heap-Based Buffer Overflow via Long First Argument

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2007-4916. PoCs published by Jonathan Sarba, GOODFELLAS.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in the CFileFind::FindFile method in the MFC library, specifically via the 'hpqutil.dll' ActiveX control. It uses a VBScript to trigger the overflow by passing a long string of 'A' characters to the ListFiles method.

Description

Heap-based buffer overflow in the FileFind::FindFile method in (1) MFC42.dll, (2) MFC42u.dll, (3) MFC71.dll, and (4) MFC71u.dll in Microsoft Foundation Class (MFC) Library 8.0, as used by the ListFiles method in hpqutil.dll 2.0.0.138 in Hewlett-Packard (HP) All-in-One and Photo & Imaging Gallery 1.1 and probably other products, allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a long first argument.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Jonathan Sarba · textdoswindows
https://www.exploit-db.com/exploits/30593

This exploit targets a buffer overflow vulnerability in the CFileFind::FindFile method in the MFC library, specifically via the 'hpqutil.dll' ActiveX control. It uses a VBScript to trigger the overflow by passing a long string of 'A' characters to the ListFiles method.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Microsoft Windows XP SP2 (MFC library, hpqutil.dll ActiveX control)
No auth needed
Prerequisites: Victim must visit a malicious webpage or open a malicious HTML file · ActiveX control must be enabled in the browser
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by GOODFELLAS · htmldoswindows
https://www.exploit-db.com/exploits/4409

This exploit demonstrates a heap overflow vulnerability in HP's hpqutil.dll (version 2.0.0.138) due to an unsafe lstrcpyA call in the ListFiles function. The PoC triggers the overflow by passing a long string (620 'A's) to the ActiveX control, leading to a crash or potential remote code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: HP All-in-One Series Web Release, HP Photo & Imaging Gallery version 1.1 (hpqutil.dll 2.0.0.138)
No auth needed
Prerequisites: ActiveX enabled in Internet Explorer · Target visits a malicious webpage
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (13)

Core 13
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36608
US Government Resource third-party-advisory x_refsource_cert-vn
http://www.kb.cert.org/vuls/id/611008
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25697
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/479442/100/0/threaded
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/479443/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018698
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25673
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/3143
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26800
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/3182
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/36609

Scores

EPSS 0.7188
EPSS Percentile 98.8%

Details

CWE
CWE-119
Status published
Products (2)
hp/all-in-on_printer
hp/photo_and_imaging_gallery 1.1
Published Sep 17, 2007
Tracked Since Feb 18, 2026