summaryrefslogtreecommitdiff
blob: 5c3cdf3ed8151722c7f129fafede7b76111d5f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200410-26">
  <title>socat: Format string vulnerability</title>
  <synopsis>
    socat contains a format string vulnerability that can potentially lead to
    remote or local execution of arbitrary code with the privileges of the
    socat process.
  </synopsis>
  <product type="ebuild">socat</product>
  <announced>2004-10-25</announced>
  <revised count="02">2006-05-22</revised>
  <bug>68547</bug>
  <access>remote</access>
  <affected>
    <package name="net-misc/socat" auto="yes" arch="*">
      <unaffected range="ge">1.4.0.3</unaffected>
      <vulnerable range="lt">1.4.0.3</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    socat is a multipurpose bidirectional relay, similar to netcat.
    </p>
  </background>
  <description>
    <p>
    socat contains a syslog() based format string vulnerablility in the
    '_msg()' function of 'error.c'. Exploitation of this bug is only
    possible when socat is run with the '-ly' option, causing it to log
    messages to syslog.
    </p>
  </description>
  <impact type="normal">
    <p>
    Remote exploitation is possible when socat is used as a HTTP proxy
    client and connects to a malicious server. Local privilege escalation
    can be achieved when socat listens on a UNIX domain socket. Potential
    execution of arbitrary code with the privileges of the socat process is
    possible with both local and remote exploitations.
    </p>
  </impact>
  <workaround>
    <p>
    Disable logging to syslog by not using the '-ly' option when starting
    socat.
    </p>
  </workaround>
  <resolution>
    <p>
    All socat users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=net-misc/socat-1.4.0.3"</code>
  </resolution>
  <references>
    <uri link="http://www.dest-unreach.org/socat/advisory/socat-adv-1.html">socat Security Advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-1484">CVE-2004-1484</uri>
  </references>
  <metadata tag="requester" timestamp="2004-10-23T13:12:08Z">
    vorlon078
  </metadata>
  <metadata tag="bugReady" timestamp="2004-10-23T13:30:23Z">
    koon
  </metadata>
  <metadata tag="submitter" timestamp="2004-10-24T21:38:40Z">
    lewk
  </metadata>
</glsa>