← Vulnerability feed

Vulnerability record · CVE-2007-4776 · published 10 September 2007

CVE-2007-4776: Microsoft Visual Basic 6.0 VBP File Buffer Overflow

Microsoft · Visual Basic

Microsoft Visual Basic 6.0 and Enterprise Edition 6.0 SP6 contain a buffer overflow triggered when opening a Visual Basic project (.vbp) file with an overly long Reference line, related to VBP_Open and OLE. The flaw matters because successful exploitation can lead to arbitrary code execution, though the record notes limited usage scenarios under which this would be a vulnerability.

9.3 CVSS 2.0 High EPSS 49% · top 1.2% CWE-119 · Memory buffer overflow
9.3CVSS 2.0 base score
49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
12References
16 Jun 2026Last modified by NVD

Description

Buffer overflow in Microsoft Visual Basic 6.0 and Enterprise Edition 6.0 SP6 allows user-assisted remote attackers to execute arbitrary code via a Visual Basic project (vbp) file containing a long Reference line, related to VBP_Open and OLE. NOTE: there are limited usage scenarios under which this would be a vulnerability.

AV:N/AC:M/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

high priorityCVSS 2.0 base score is 9.3 and public exploit code exists, but exploitation requires user interaction and the record notes limited usage scenarios, keeping it below critical.

What it is

Microsoft Visual Basic 6.0 and Enterprise Edition 6.0 SP6 contain a buffer overflow triggered when opening a Visual Basic project (.vbp) file with an overly long Reference line, related to VBP_Open and OLE. The flaw matters because successful exploitation can lead to arbitrary code execution, though the record notes limited usage scenarios under which this would be a vulnerability.

Impact

An attacker who convinces a user to open a crafted .vbp file can execute arbitrary code in the context of that user. This gives full compromise of confidentiality, integrity, and availability on the affected host.

Attack surface

The vector is network-reachable (AV:N) but requires medium complexity (AC:M) and no authentication (Au:N), with user interaction implied by the user-assisted nature of opening a project file. The attacker must deliver a malicious .vbp file and get the victim to open it in Visual Basic 6.0.

Exploitation

CISA KEV does not list this CVE, but public exploit code exists on Exploit-DB (4361, 4431) and EPSS is high at 0.48964 (98.8th percentile), indicating meaningful exploitation likelihood.

What to do

  • Apply the Microsoft patch for Visual Basic 6.0 if still supported; if no patch is available, treat the product as end-of-life and plan migration.
  • Block or restrict opening of untrusted .vbp files, especially from email, downloads, or shared drives.
  • Enforce email and web gateway filtering for .vbp attachments and file types associated with Visual Basic projects.
  • Run Visual Basic 6.0 under a least-privilege account and consider application allowlisting to limit code execution impact.
  • Educate users not to open Visual Basic project files from unknown or untrusted sources.

Detection

  • Monitor for processes opening .vbp files from external or untrusted locations, especially via email clients or browsers.
  • Hunt for Visual Basic 6.0 (vb6.exe) spawning child processes such as cmd.exe, powershell.exe, or scripting hosts.
  • Inspect file creation and execution events for .vbp files with unusually long Reference lines or embedded OLE objects.
  • Review endpoint logs for crashes or exceptions in VB6.exe correlated with file-open events.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2007-4776 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2012-1856Microsoft Office MSCOMCTL.OCX TabStrip ActiveX Control Remote Code ExecutionThe TabStrip ActiveX control in MSCOMCTL.OCX fails to properly handle system state, allowing a crafted document or web page to corrupt memory and exe…KEVEPSS 72%analysed8.8CVE-2012-0158Microsoft MSCOMCTL.OCX ActiveX controls remote code executionThe ListView, ListView2, TreeView and TreeView2 ActiveX controls in MSCOMCTL.OCX in the Common Controls fail to handle crafted input, allowing memory…KEVEPSS 100%analysed10.0CVE-2007-0065Microsoft office code injection vulnerabilityHeap-based buffer overflow in Object Linking and Embedding (OLE) Automation in Microsoft Windows 2000 SP4, XP SP2, Server 2003 SP1 and SP2, Vista, Of…EPSS 43%10.0CVE-2006-4732Microsoft visual basic vulnerabilityUnspecified vulnerability in Microsoft Visual Basic (VB) 6 has an unknown impact ("overflow") via a project that contains a certain Click event proce…EPSS 6.8%10.0CVE-2003-0347Microsoft VBA SDK VBE DLL heap buffer overflow via long ID parameterVBE.DLL and VBE6.DLL in the Microsoft Visual Basic for Applications (VBA) SDK 5.0 through 6.3 contain a heap-based buffer overflow triggered by a doc…EPSS 55%analysed9.3CVE-2008-4255Windows Common ActiveX control heap overflow via crafted AVI streamThe mscomct2.ocx ActiveX control (Windows Common / Microsoft Animation control) contains a heap-based buffer overflow when parsing an AVI file with a…EPSS 54%analysed9.3CVE-2008-3704Microsoft MaskedEdit ActiveX control heap buffer overflowThe MaskedEdit ActiveX control in Msmask32.ocx fails to validate the Mask property with boundary checks, causing a heap-based buffer overflow when a …EPSS 56%analysed9.3CVE-2008-0392Microsoft visual basic memory buffer overflow vulnerabilityMultiple buffer overflows in Microsoft Visual Basic Enterprise Edition 6.0 SP6 allow user-assisted remote attackers to execute arbitrary code via a .…EPSS 30%

Source: NIST National Vulnerability Database (record CVE-2007-4776), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.