Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7039

tcp_emu in tcp_subr.c in libslirp 4.1.0, as used in QEMU 4.2.0, mismanages memory, as demonstrated by IRC DCC commands in EMU_IRC. This can cause a heap-based buffer overflow or other out-of-bounds access which can lead to a DoS or potential execute arbitrary code.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7039
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:18 UTC · Revision 1

Source evidence

CVE-2020-7039

core-osv · Original source

Published 16 Jan 2020, 23:15 UTC

tcp_emu in tcp_subr.c in libslirp 4.1.0, as used in QEMU 4.2.0, mismanages memory, as demonstrated by IRC DCC commands in EMU_IRC. This can cause a heap-based buffer overflow or other out-of-bounds access which can lead to a DoS or potential execute arbitrary code.

osv:CVE-2020-7039
Complete source record
{
  "id": "dbbdf87434c13800de0ac5360c988f150e150c512bf53ec27cc0fb8327002923",
  "url": "https://osv.dev/vulnerability/CVE-2020-7039",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7039",
    "summary": "tcp_emu in tcp_subr.c in libslirp 4.1.0, as used in QEMU 4.2.0, mismanages memory, as demonstrated by IRC DCC commands in EMU_IRC. This can cause a heap-based buffer overflow or other out-of-bounds access which can lead to a DoS or potential execute arbitrary code.",
    "evidence": "osv:CVE-2020-7039",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-7039",
      "aliases": [
        "CVE-2020-7039"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/qemu/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                },
                {
                  "last_affected": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.2.0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.2.0",
            "v4.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7039.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/spring-projects/spring-framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8d2fd1163309e659c7411b7e5557eddb912ec684"
                },
                {
                  "last_affected": "8d2fd1163309e659c7411b7e5557eddb912ec684"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libslirp_project:libslirp:4.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.1.0",
            "v4.1.0.RELEASE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7039.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/qemu-project/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                },
                {
                  "last_affected": "b0ca999a43a22b38158a222233d3f5881648bb4f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.2.0"
                      },
                      {
                        "last_affected": "4.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.2.0",
            "v4.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7039.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.freedesktop.org/slirp/libslirp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6651ba26c4e94f64d6448a2db4991269ce553bd9"
                },
                {
                  "last_affected": "6651ba26c4e94f64d6448a2db4991269ce553bd9"
                },
                {
                  "fixed": "2655fffed7a9e765bcb4701dd876e9dab975f289"
                },
                {
                  "fixed": "82ebe9c370a0e2970fb5695aa19aa5214a6a1c80"
                },
                {
                  "fixed": "ce131029d6d4a405cb7d3ac6716d03e58fb4a5d9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libslirp_project:libslirp:4.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2655fffed7a9e765bcb4701dd876e9dab975f289"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "82ebe9c370a0e2970fb5695aa19aa5214a6a1c80"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ce131029d6d4a405cb7d3ac6716d03e58fb4a5d9"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.1.0",
            "v4.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7039.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-7039-2a648928",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "25387690005046493626353118587777793358",
                    "160309386740755709201610707267999592638",
                    "330487027014476331133156449357976513666",
                    "99653444036453149687853936484662716155",
                    "301088068340020129739283949698391890860",
                    "187567610230749590157484504403283356975",
                    "100127496917207286311847526121443219979",
                    "55028710168073066391953858696394065939",
                    "126881792079116541005255363469384401593",
                    "88332501612171860209272905662950217016",
                    "186687794306581204807428526777309569466",
                    "29641077412104432210341758818222247178",
                    "88108022677456657889450813356683575088",
                    "236097773785422097267213823434495860007"
                  ]
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@82ebe9c370a0e2970fb5695aa19aa5214a6a1c80",
                "target": {
                  "file": "src/tcp_subr.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7039-66dd0ac8",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "241284285325634071912458277399824585701",
                    "101024470289889841703992026745821739860",
                    "46610385591659169243295099148013167523",
                    "132650339709434889629960677488439439114",
                    "3207942234795332521456043419559591854",
                    "95411540399998749707763516469279061285",
                    "319218515594435546624940427699079978353",
                    "204887157760773484595687427919028940019",
                    "95904249482584446495943420617708760582",
                    "3207942234795332521456043419559591854",
                    "209517937668929253962348685190549018146",
                    "40802723628150449286468541765947464847",
                    "134894284404824705336579519351776315941",
                    "111803825195004922490986731124225859938"
                  ]
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@ce131029d6d4a405cb7d3ac6716d03e58fb4a5d9",
                "target": {
                  "file": "src/tcp_subr.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7039-6b9a8895",
                "digest": {
                  "length": 6641,
                  "function_hash": "16394558136358550035582286927942919055"
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@82ebe9c370a0e2970fb5695aa19aa5214a6a1c80",
                "target": {
                  "file": "src/tcp_subr.c",
                  "function": "tcp_emu"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7039-8a519e5a",
                "digest": {
                  "length": 6632,
                  "function_hash": "221627384635618976683759339920942865720"
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@ce131029d6d4a405cb7d3ac6716d03e58fb4a5d9",
                "target": {
                  "file": "src/tcp_subr.c",
                  "function": "tcp_emu"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7039-ab5b2a67",
                "digest": {
                  "length": 6508,
                  "function_hash": "140651076775259481436786107058209110775"
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@2655fffed7a9e765bcb4701dd876e9dab975f289",
                "target": {
                  "file": "src/tcp_subr.c",
                  "function": "tcp_emu"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7039-b7d4660f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "15140320714121997435057219044735030567",
                    "156375986140405105978356906120087512541",
                    "316338764136262695171768734962189969112",
                    "244401903337416974613622709277191320620",
                    "241036784587630143944011798907199304443",
                    "142282155878608727980020123582809939206",
                    "32139479471153033922636960518668746078"
                  ]
                },
                "source": "https://gitlab.freedesktop.org/slirp/libslirp@2655fffed7a9e765bcb4701dd876e9dab975f289",
                "target": {
                  "file": "src/tcp_subr.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:12:07Z"
          }
        }
      ],
      "modified": "2026-10-24T14:12:07.269820110Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2020:0348",
        "https://access.redhat.com/errata/RHSA-2020:0775",
        "https://lists.debian.org/debian-lts-announce/2020/01/msg00022.html",
        "https://lists.debian.org/debian-lts-announce/2020/01/msg00036.html",
        "https://lists.debian.org/debian-lts-announce/2021/02/msg00012.html",
        "https://seclists.org/bugtraq/2020/Feb/0",
        "https://security.gentoo.org/glsa/202005-02",
        "https://usn.ubuntu.com/4283-1/",
        "https://www.debian.org/security/2020/dsa-4616",
        "https://gitlab.freedesktop.org/slirp/libslirp/commit/2655fffed7a9e765bcb4701dd876e9dab975f289",
        "https://gitlab.freedesktop.org/slirp/libslirp/commit/82ebe9c370a0e2970fb5695aa19aa5214a6a1c80",
        "https://gitlab.freedesktop.org/slirp/libslirp/commit/ce131029d6d4a405cb7d3ac6716d03e58fb4a5d9"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.1"
                  },
                  {
                    "last_affected": "15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-7039",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443323,
  "published_at": "2020-01-16T23:15:12.19+00:00"
}