Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-1061

python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in the difflib.IS_LINE_JUNK method. An attacker could use this flaw to cause denial of service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-1061
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:53 UTC · Revision 1

Source evidence

CVE-2018-1061

core-osv · Original source

Published 19 Jun 2018, 12:29 UTC

python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in the difflib.IS_LINE_JUNK method. An attacker could use this flaw to cause denial of service.

osv:CVE-2018-1061
Complete source record
{
  "id": "1ffad70f4dac230bcbd375f3b355db87bb3d3389aaab42684515031a8735b016",
  "url": "https://osv.dev/vulnerability/CVE-2018-1061",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-1061",
    "summary": "python before versions 2.7.15, 3.4.9, 3.5.6rc1, 3.6.5rc1 and 3.7.0 is vulnerable to catastrophic backtracking in the difflib.IS_LINE_JUNK method. An attacker could use this flaw to cause denial of service.",
    "evidence": "osv:CVE-2018-1061",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-1061",
      "aliases": [
        "CVE-2018-1061",
        "PSF-2018-4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/python/cpython",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ca079a3ea30098aff3197c559a0e32d42dda6d84"
                },
                {
                  "introduced": "6046c5e0298c25515ea58abc8ab87f7413e3f743"
                },
                {
                  "fixed": "0a5a5af9b6b47727c5ee3def4508dab312949075"
                },
                {
                  "introduced": "2e789a1f1d84b343a996e8654590703b5fbdd441"
                },
                {
                  "last_affected": "27657e7cea26548958518144d63200d7a2333d1c"
                },
                {
                  "introduced": "8d999cbf4adea053be6dbb612b9844635c4dfb8e"
                },
                {
                  "last_affected": "d48ecebad5ac78a1783e09b0d32c211d9754edf4"
                },
                {
                  "introduced": "dfad352267cee3ea581035622a7371bc3b235378"
                },
                {
                  "last_affected": "dfad352267cee3ea581035622a7371bc3b235378"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.7.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0"
                      },
                      {
                        "fixed": "3.4.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.5.0"
                      },
                      {
                        "last_affected": "3.5.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.6"
                      },
                      {
                        "last_affected": "3.6.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:python:python:3.7.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.7.0-rc1"
                      },
                      {
                        "last_affected": "3.7.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.7.0-rc1",
            "v3.4.9rc1",
            "v3.7.0rc1",
            "v2.7.15rc1",
            "v3.5.5",
            "v3.4.8",
            "v3.5.5rc1",
            "v3.4.8rc1",
            "v3.6.4",
            "v3.6.4rc1",
            "v3.4.7",
            "v3.5.4",
            "v3.5.4rc1",
            "v3.4.7rc1",
            "v3.6.2rc1",
            "v3.4.6",
            "v3.5.3",
            "v3.5.3rc1",
            "v3.4.6rc1",
            "v3.6.0rc1",
            "v2.7.13rc1",
            "v3.6.0b4",
            "v3.6.0b3",
            "v3.6.0b1",
            "v3.6.0a3",
            "v3.4.5",
            "v3.5.2",
            "v3.4.5rc1",
            "v3.5.2rc1",
            "v2.7.12rc1",
            "v3.5.1rc1",
            "v2.7.11rc1",
            "v3.5.0rc3",
            "v3.5.0rc2",
            "v3.5.0rc1",
            "v3.5.0b4",
            "v3.5.0b3",
            "v3.5.0b1",
            "v2.7.10rc1",
            "v3.5.0a4",
            "v3.5.0a3",
            "v3.5.0a2",
            "v3.4.3",
            "v3.5.0a1",
            "v3.4.3rc1",
            "v2.7.9rc1",
            "v3.4.2rc1",
            "v2.7.8",
            "v3.4.1",
            "v3.4.1rc1",
            "v3.4.0",
            "v3.4.0rc3",
            "v3.4.0rc2",
            "v3.4.0rc1",
            "v3.4.0b3",
            "v3.4.0b2",
            "v3.4.0b1",
            "v2.7.6rc1",
            "v3.4.0a4",
            "v3.4.0a3",
            "v3.4.0a2",
            "v3.4.0a1",
            "v2.7.5",
            "v2.7.4rc1",
            "v3.3.0rc3",
            "v3.3.0rc2",
            "v3.3.0rc1",
            "v3.3.0b2",
            "v3.3.0b1",
            "v3.3.0a4",
            "v3.3.0a3",
            "v3.3.0a2",
            "v2.7.3rc1",
            "v2.7.2rc1",
            "v2.7",
            "v3.2rc3",
            "v3.2rc2",
            "v3.2rc1",
            "v3.2b2",
            "v3.2b1",
            "v2.7.1",
            "v2.7.1rc1",
            "v3.2a4",
            "v3.2a3",
            "v3.2a2",
            "v3.2a1",
            "v2.7rc2",
            "v2.7rc1",
            "v2.7b2",
            "v2.7b1",
            "v2.7a4",
            "v2.7a3",
            "v2.7a2",
            "v2.7a1",
            "v3.1",
            "v3.1rc2",
            "v3.1rc1",
            "v3.1b1",
            "v3.1a2",
            "v3.1a1",
            "v3.0rc3",
            "v3.0rc2",
            "v2.6",
            "v2.6rc2",
            "v3.0rc1",
            "v2.6rc1",
            "v3.0b3",
            "v2.6b3",
            "v2.6b2",
            "v3.0b2",
            "v2.6b1",
            "v3.0b1",
            "v2.6a3",
            "v3.0a5",
            "v2.6a2",
            "v3.0a4",
            "v3.0a3",
            "v2.6a1",
            "v3.0a2",
            "v3.0a1",
            "v2.5b3",
            "v2.5b2",
            "v2.5b1",
            "v2.5a2",
            "v2.5a1",
            "v2.5a0",
            "v2.4",
            "v2.4c1",
            "v2.4b2",
            "v2.4b1",
            "v2.4a3",
            "v2.4a2",
            "v2.4a1",
            "v2.3c2",
            "v2.3c1",
            "v2.2a3",
            "v2.1",
            "v2.1c2",
            "v2.1c1",
            "v2.1b2",
            "v2.1b1",
            "v2.1a2",
            "v2.1a1",
            "v2.0",
            "v2.0c1",
            "v2.0b2",
            "v2.0b1",
            "v1.6a2",
            "v1.6a1",
            "v1.5.2",
            "v1.5.2c1",
            "v1.5.2b2",
            "v1.5.2b1",
            "v1.5.2a2",
            "v1.5.2a1",
            "v1.5.1",
            "v1.5",
            "v1.5b2",
            "v1.5b1",
            "v1.5a4",
            "v1.5a3",
            "v1.5a2",
            "v1.5a1",
            "v1.4",
            "v1.4b3",
            "v1.4b2",
            "v1.4b1",
            "v1.3",
            "v1.3b1",
            "v1.2",
            "v1.2b4",
            "v1.2b3",
            "v1.2b2",
            "v1.2b1",
            "v1.1.1",
            "v1.1",
            "v1.0.2",
            "v1.0.1",
            "v0.9.9",
            "v0.9.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1061.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:45.873252311Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46PVWY5LFP4BRPG3BVQ5QEEFYBVEXHCK/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEZ5IQT7OF7Q2NCGIVABOWYGKO7YU3NJ/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JSKPGPZQNTAULHW4UH63KGOOUIDE4RRB/",
        "https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbst03951en_us",
        "https://access.redhat.com/errata/RHBA-2019:0327",
        "https://access.redhat.com/errata/RHSA-2018:3041",
        "https://access.redhat.com/errata/RHSA-2018:3505",
        "https://access.redhat.com/errata/RHSA-2019:1260",
        "https://access.redhat.com/errata/RHSA-2019:3725",
        "https://bugs.python.org/issue32981",
        "https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-6-release-candidate-1",
        "https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-5-release-candidate-1",
        "https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html",
        "https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html",
        "https://usn.ubuntu.com/3817-1/",
        "https://usn.ubuntu.com/3817-2/",
        "https://www.debian.org/security/2018/dsa-4306",
        "https://www.debian.org/security/2018/dsa-4307",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1061"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "12.04"
                  },
                  {
                    "last_affected": "12.04"
                  },
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "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:fedoraproject:fedora:28:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "28"
                  },
                  {
                    "last_affected": "28"
                  },
                  {
                    "introduced": "29"
                  },
                  {
                    "last_affected": "29"
                  },
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:python:python:3.7.0:alpha1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:alpha2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:alpha3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:alpha4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta1:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta2:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta3:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta4:*:*:*:*:*:*",
              "cpe:2.3:a:python:python:3.7.0:beta5:*:*:*:*:*:*"
            ],
            "vendor_product": "python:python",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.7.0-alpha1"
                  },
                  {
                    "last_affected": "3.7.0-alpha1"
                  },
                  {
                    "introduced": "3.7.0-alpha2"
                  },
                  {
                    "last_affected": "3.7.0-alpha2"
                  },
                  {
                    "introduced": "3.7.0-alpha3"
                  },
                  {
                    "last_affected": "3.7.0-alpha3"
                  },
                  {
                    "introduced": "3.7.0-alpha4"
                  },
                  {
                    "last_affected": "3.7.0-alpha4"
                  },
                  {
                    "introduced": "3.7.0-beta1"
                  },
                  {
                    "last_affected": "3.7.0-beta1"
                  },
                  {
                    "introduced": "3.7.0-beta2"
                  },
                  {
                    "last_affected": "3.7.0-beta2"
                  },
                  {
                    "introduced": "3.7.0-beta3"
                  },
                  {
                    "last_affected": "3.7.0-beta3"
                  },
                  {
                    "introduced": "3.7.0-beta4"
                  },
                  {
                    "last_affected": "3.7.0-beta4"
                  },
                  {
                    "introduced": "3.7.0-beta5"
                  },
                  {
                    "last_affected": "3.7.0-beta5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_tower:3.3:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_tower",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.3"
                  },
                  {
                    "last_affected": "3.3"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-1061",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436223,
  "published_at": "2018-06-19T12:29:00.22+00:00"
}