Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

BID:24436

Info

Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

Bugtraq ID: 24436
Class: Boundary Condition Error
CVE: CVE-2007-3181
Remote: Yes
Local: No
Published: Jun 12 2007 12:00AM
Updated: Mar 27 2008 01:39PM
Credit: Cody Pierce of Tippingpoint Digital Vaccine Labs is credited with the discovery of this vulnerability.
Vulnerable: Gentoo Linux
Firebird Firebird SQL 2.0
Debian Linux 4.0 sparc
Debian Linux 4.0 s/390
Debian Linux 4.0 powerpc
Debian Linux 4.0 mipsel
Debian Linux 4.0 mips
Debian Linux 4.0 m68k
Debian Linux 4.0 ia-64
Debian Linux 4.0 ia-32
Debian Linux 4.0 hppa
Debian Linux 4.0 arm
Debian Linux 4.0 amd64
Debian Linux 4.0 alpha
Debian Linux 4.0
Not Vulnerable: Firebird Firebird SQL 2.0.1

Discussion

Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

Firebird SQL is prone to a remote buffer-overflow vulnerability.

An attacker can exploit this issue to execute arbitrary machine code in the context of the affected database server. Failed exploit attempts will likely crash the server, denying service to legitimate users.

Firebird SQL 2.0 is vulnerable; previous versions may also be affected.

Exploit / POC

Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

The following proof-of-concept request is available from Tippingpoint:

typedef struct p_cnct
{
P_OP p_cnct_operation; /* OP_CREATE or OP_OPEN */
USHORT p_cnct_cversion; /* Version of connect protocol */
P_ARCH p_cnct_client; /* Architecture of client */
CSTRING p_cnct_file; /* File name */
USHORT p_cnct_count; /* Protocol versions understood */
CSTRING p_cnct_user_id; /* User identification stuff */
struct p_cnct_repeat
{
USHORT p_cnct_version; /* Protocol version number */
P_ARCH p_cnct_architecture; /* Architecture of client */
USHORT p_cnct_min_type; /* Minimum type */
USHORT p_cnct_max_type; /* Maximum type */
USHORT p_cnct_weight; /* Preference weight */
}
p_cnct_versions[10];
} P_CNCT;

Solution / Fix

Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

Solution:
The vendor has released an update that addresses this vulnerability. Please see the vendor references for more information.

References

Firebird SQL Fbserver Remote Buffer Overflow Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report