Buffer overflow in Firebird 1.0.2 and other versions before 1.5, and possibly other products that use the InterBase codebase, allows local users to execute arbitrary code via a long INTERBASE environment variable when calling (1) gds_inet_server, (2) gds_lock_mgr, or (3) gds_drop.
https://exchange.xforce.ibmcloud.com/vulnerabilities/11977
http://www.securityfocus.com/bid/7546
http://security.gentoo.org/glsa/glsa-200405-18.xml
http://secunia.com/advisories/8758