dest-unreach / socat / contrib / security advisory 2
A stack overflow vulnerability was found that is triggered when command line arguments (complete address specifications, host names, file names) are longer than 512 bytes.
Successful exploitation allows an attacker to execute arbitrary code with the privileges of the socat process.
This vulnerability can only be exploited when an attacker is able to inject data into socat's command line.
A vulnerable scenario would be a CGI script that reads data from clients and uses (parts of) this data as hostname for a socat invocation.
The problem was caused by a coding error in function nestlex() that ineffected the output buffer end check.
22.214.171.124 - 126.96.36.199
2.0.0-b1 - 2.0.0-b3
188.8.131.52 - 184.108.40.206
220.127.116.11 and later
2.0.0-b4 and later
The updated sources can be downloaded from:
Patch to 18.104.22.168:http://www.dest-unreach.org/socat/download/socat-22.214.171.124.patch
Patch to 2.0.0-b3:http://www.dest-unreach.org/socat/download/socat-2.0.0-b4.patch
Full credits to Felix Gröbert, Google Security Team, for finding and reporting this issue.