{"schemaVersion":3,"id":"CVE-2007-4776","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2007-09-10T21:00:00.000Z","modified":"2024-08-07T15:08:33.868Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9.3,"severity":"high","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.48964,"percentile":0.9887,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.48964},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.48964,"percentile":0.9887}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.48964,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.48964,"percentile":0.9887}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"16680","name":"Microsoft Visual Basic - '.VBP' Local Buffer Overflow (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/16680","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/16680.rb","codes":["CVE-2007-4776","OSVDB-36936"]},"metasploit":null},{"id":"4361","name":"Microsoft Visual Basic 6.0 - VBP_Open OLE Local CodeExec","source":"exploit-database","url":"https://www.exploit-db.com/exploits/4361","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/4361.pl","codes":["OSVDB-36936","CVE-2007-4776"]},"metasploit":null},{"id":"4431","name":"Microsoft Visual Basic Enterprise 6.0 SP6 - Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/4431","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/4431.py","codes":["CVE-2007-4776"]},"metasploit":null},{"id":"MSF_EXPLOIT_WINDOWS_FILEFORMAT_MS_VISUAL_BASIC_VBP","name":"Microsoft Visual Basic VBP Stack Buffer Overflow","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/windows/fileformat/ms_visual_basic_vbp.rb","maturity":"weaponized","reliabilityScore":0.6666666666666666,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/windows/fileformat/ms_visual_basic_vbp","rank":"400","rankName":"good","postAuth":false,"check":false,"stability":["crash-service-down"],"sideEffects":["artifacts-on-disk"],"reliability":["unreliable-session"]}}],"exploitCount":4,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"microsoft","product":"visual_basic","name":"visual basic","label":"visual_basic","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0:sp6","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 6.0:sp6","eol":null,"hubHref":"/vendor/microsoft/visual_basic"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.osvdb.org/36936","label":"www.osvdb.org/36936","hostname":"www.osvdb.org","tags":["VDB Entry","X Refsource OSVDB"]},{"url":"http://secunia.com/advisories/26704","label":"secunia.com/advisories/26704","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.securityfocus.com/bid/25629","label":"www.securityfocus.com/bid/25629","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://www.securitytracker.com/id?1018676","label":"www.securitytracker.com/id?1018676","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK"]},{"url":"https://www.exploit-db.com/exploits/4431","label":"www.exploit-db.com/exploits/4431","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]},{"url":"https://www.exploit-db.com/exploits/4361","label":"www.exploit-db.com/exploits/4361","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2007-09-10T21:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T15:08:33.868Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:45:06.692Z","stale":false,"partial":false}}