{"exploit":{"id":"EDB-30186","name":"Firebird SQL Fbserver 2.0 - Remote Buffer Overflow","description":"Firebird SQL Fbserver 2.0 - Remote Buffer Overflow","cves":["CVE-2007-3181"],"author":"Cody Pierce","published":"2007-06-12","platform":"linux","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/30186","path":"exploits/linux/remote/30186.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-30186.txt","vulnerabilities":[{"id":"CVE-2007-3181","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in fbserver.exe in Firebird SQL 2 before 2.0.1 allows remote attackers to execute arbitrary code via a large p_cnct_count value in a p_cnct structure in a connect (0x01) request to port 3050/tcp, related to \"an InterBase version of gds32.dll.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-3181","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-3181"},"updatedAt":"2024-08-07T14:05:29.221Z","retrievedAt":"2026-11-26T17:08:20.860Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-30186.png?v=2","url":"https://exploitbin.com/exploits/EDB-30186","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-30186/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-30186/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2007/https://www.securityfocus.com/bid/24436/info\n\nFirebird SQL is prone to a remote buffer-overflow vulnerability.\n\nAn 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.\n\nFirebird SQL 2.0 is vulnerable; previous versions may also be affected.\n\n----------------------------------------\n\ntypedef struct p_cnct\n{\nP_OP p_cnct_operation; /* OP_CREATE or OP_OPEN */\nUSHORT p_cnct_cversion; /* Version of connect protocol */\nP_ARCH p_cnct_client; /* Architecture of client */\nCSTRING p_cnct_file; /* File name */\nUSHORT p_cnct_count; /* Protocol versions understood */\nCSTRING p_cnct_user_id; /* User identification stuff */\nstruct p_cnct_repeat\n{\nUSHORT p_cnct_version; /* Protocol version number */\nP_ARCH p_cnct_architecture; /* Architecture of client */\nUSHORT p_cnct_min_type; /* Minimum type */\nUSHORT p_cnct_max_type; /* Maximum type */\nUSHORT p_cnct_weight; /* Preference weight */\n}\np_cnct_versions[10];\n} P_CNCT;","sha256":"2924ef1fa4372231a4fd00335e19eb641df3f8c62be496e6bfc6b01c27821ad7","bytes":1106,"fetchedAt":"2026-11-26T17:08:16.103Z","encoding":"utf-8 (display only; download retains original bytes)"}