CVE-2007-2666

Notepad++ < 4.1.1 - Stack-based Buffer Overflow in LexRuby.cxx

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-2666. PoCs published by vade79.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in Notepad++ v4.1 when processing Ruby files (.rb). It overwrites EAX and EIP to redirect execution to a NOP sled and shellcode, spawning calc.exe by default.

Description

Stack-based buffer overflow in LexRuby.cxx (SciLexer.dll) in Scintilla 1.73, as used by notepad++ 4.1.1 and earlier, allows user-assisted remote attackers to execute arbitrary code via certain Ruby (.rb) files with long lines. NOTE: this was originally reported as a vulnerability in notepad++.

Exploits (1)

exploitdb WORKING POC VERIFIED
by vade79 · clocalwindows_x86
https://www.exploit-db.com/exploits/3912

This exploit targets a buffer overflow vulnerability in Notepad++ v4.1 when processing Ruby files (.rb). It overwrites EAX and EIP to redirect execution to a NOP sled and shellcode, spawning calc.exe by default.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Notepad++ v4.1
No auth needed
Prerequisites: Victim must open the malicious .rb file via 'Edit with Notepad++'
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (12)

Core 12
Core References
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1794
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/468529/100/0/threaded
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/3912
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25327
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1867
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/469348/100/100/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23961
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/34269
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/34372
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/36007
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25245

Scores

EPSS 0.1523
EPSS Percentile 96.3%

Details

CWE
CWE-119
Status published
Products (2)
notepad\+\+/notepad\+\+ < 4.1.1
scintilla/scintilla 1.73
Published May 14, 2007
Tracked Since Feb 18, 2026