Description
Stack-based buffer overflow in Firebird 2.1.3 through 2.1.5 before 18514, and 2.5.1 through 2.5.3 before 26623, on Windows allows remote attackers to execute arbitrary code via a crafted packet to TCP port 3050, related to a missing size check during extraction of a group number from CNCT information.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | firebird2.1 | 2.1.3.18185-0.ds1-11+squeeze1 | DSA-2647-1 |
| Debian 6.0 | firebird2.5 | 2.5.0.26054~ReleaseCandidate3.ds2-1+squeeze1 | DSA-2648-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Firebird Relational Database CNCT Group Number Buffer Overflow
exploit/windows/misc/fb_cnct_group
Exploit-DB 1
- Firebird - Relational Database CNCT Group Number Buffer Overflow (Metasploit) EDB-41709 · local · Jan 31, 2013 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DSA-2647-1 firebird2.1 - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2648-1 firebird2.5 - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- GLSA-201512-11 vendor-advisory
- https://gist.github.com/zeroSteiner/85daef257831d904479c
- openSUSE-SU-2013:0496 vendor-advisory
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/misc/fb_cnct_group.rb
- 58393 vdb-entry
- DSA-2648 vendor-advisory
- http://tracker.firebirdsql.org/browse/CORE-4058
- openSUSE-SU-2013:0504 vendor-advisory
- DSA-2647 vendor-advisory