socat format _msg function allows format string attack

socat-format-string (17822) The risk level is classified as HighHigh Risk

Description:

socat is vulnerable to a format string attack, caused by a vulnerability in the _msg function in error.c. A remote or local attacker could exploit this vulnerability to execute arbitrary commands with privileges of the socat processor or to gain elevated privileges when socat is listening on the UNIX domain socket.

Note: In order to exploit this vulnerability, the socat must log to the syslog using the 'ly command line option.


Consequences:

Gain Access

Remedy:

Upgrade to the latest version of socat (1.4.0.3 or later), available from the socat download Web page. See References.

As a workaround, ensure logging into syslog is disabled.

For Gentoo Linux:
Upgrade to the latest version of socat (1.4.0.3 or later), as listed in GLSA 200410-26. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

Platforms Affected:

  • Gentoo Linux
  • socat socat prior to 1.4.0.3

Reported:

Oct 22, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page