The dissector_postgresql function in dissectors/ec_postgresql.c in Ettercap before 0.8.1 allows remote attackers to cause a denial of service and possibly execute arbitrary code via a crafted password length, which triggers a 0 character to be written to an arbitrary memory location.
https://www.obrela.com/home/security-labs/advisories/osi-advisory-osi-1402/
https://security.gentoo.org/glsa/201505-01
https://github.com/Ettercap/ettercap/commit/e3abe7d7585ecc420a7cab73313216613aadad5a
http://www.securityfocus.com/bid/71697
http://www.securityfocus.com/archive/1/534248/100/0/threaded