Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-18311

Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-18311
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:26 UTC · Revision 1

Source evidence

CVE-2018-18311

core-osv · Original source

Published 7 Dec 2018, 21:29 UTC

Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.

osv:CVE-2018-18311
Complete source record
{
  "id": "4fc554d658d542f6a828ed3d1c4be83a62ec3416daab1e7121c7dd11667d79bb",
  "url": "https://osv.dev/vulnerability/CVE-2018-18311",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-18311",
    "summary": "Perl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.",
    "evidence": "osv:CVE-2018-18311",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-18311",
      "aliases": [
        "CVE-2018-18311"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/perl/perl5",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "92583df5dc9b9edbcd4a9649f753e180b9729590"
                },
                {
                  "introduced": "6cb72a3d7fbefb477b95588e2fd81e33073da8b3"
                },
                {
                  "fixed": "63afdf6c0f65af480aa5bb9ccba9f46dae52f6fc"
                },
                {
                  "fixed": "34716e2a6ee2af96078d62b065b7785c001194be"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.26.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:perl:perl:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.28.0"
                      },
                      {
                        "fixed": "5.28.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "34716e2a6ee2af96078d62b065b7785c001194be"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v5.28.1-RC1",
            "v5.26.3-RC1",
            "v5.28.0",
            "v5.29.0",
            "v5.26.2",
            "v5.26.2-RC1",
            "v5.26.1",
            "v5.26.1-RC1",
            "v5.26.0",
            "v5.26.0-RC2",
            "v5.25.11",
            "v5.25.9",
            "v5.25.7",
            "v5.25.5",
            "v5.25.4",
            "v5.25.3",
            "v5.24.0",
            "v5.25.2",
            "v5.25.0",
            "v5.24.0-RC5",
            "v5.24.0-RC4",
            "v5.24.0-RC3",
            "v5.24.0-RC2",
            "v5.24.0-RC1",
            "v5.23.7",
            "v5.23.6",
            "v5.23.4",
            "v5.23.3",
            "if-0.0605",
            "v5.23.2",
            "v5.23.1",
            "v5.23.0",
            "v5.22.0",
            "v5.22.0-RC2",
            "v5.22.0-RC1",
            "v5.21.11",
            "if-0.0604",
            "v5.21.10",
            "v5.21.9",
            "v5.21.8",
            "v5.21.6",
            "v5.21.5",
            "v5.21.4",
            "v5.21.1",
            "v5.21.0",
            "v5.20.0",
            "v5.20.0-RC1",
            "v5.19.11",
            "v5.19.7",
            "v5.19.5",
            "v5.19.3",
            "v5.19.2",
            "if-0.0603",
            "v5.19.1",
            "v5.18.0",
            "v5.19.0",
            "v5.18.0-RC4",
            "v5.18.0-RC3",
            "v5.18.0-RC2",
            "v5.18.0-RC1",
            "v5.17.9",
            "v5.17.8",
            "v5.17.7.0",
            "v5.17.7",
            "v5.17.6",
            "v5.17.4",
            "v5.17.2",
            "v5.17.0",
            "v5.16.0",
            "v5.16.0-RC2",
            "v5.16.0-RC1",
            "v5.15.9",
            "v5.15.5",
            "v5.15.4",
            "v5.15.3",
            "v5.15.2",
            "v5.15.1",
            "v5.15.0",
            "v5.14.0",
            "v5.14.0-RC3",
            "v5.14.0-RC2",
            "v5.14.0-RC1",
            "v5.13.11",
            "v5.13.10",
            "v5.13.9",
            "v5.13.8",
            "v5.13.7",
            "v5.13.6",
            "v5.13.5",
            "v5.13.4",
            "v5.13.3",
            "v5.13.2",
            "v5.13.1",
            "v5.12.0",
            "v5.13.0",
            "v5.12.0-RC5",
            "v5.12.0-RC4",
            "v5.12.0-RC3",
            "v5.12.0-RC2",
            "v5.12.0-RC1",
            "v5.12.0-RC0",
            "v5.11.5",
            "v5.11.4",
            "v5.11.3",
            "v5.11.1",
            "v5.11.0",
            "GitLive-blead",
            "v5.10.0",
            "perl-5.9.5",
            "perl-5.9.4",
            "perl-5.9.3",
            "perl-5.9.2",
            "perl-5.9.1",
            "perl-5.9.0",
            "perl-5.8.0",
            "perl-5.7.3",
            "perl-5.7.2",
            "perl-5.7.1",
            "perl-5.7.0",
            "perl-5.6.0",
            "perl-5.005",
            "perl-5.003",
            "perl-5.002_01",
            "perl-5.002",
            "perl-5.001n",
            "perl-5.001",
            "perl-5.000o",
            "perl-5.000",
            "perl-5a9",
            "perl-5a2",
            "perl-4.0.36",
            "perl-4.0.00",
            "perl-3.044",
            "perl-3.000",
            "perl-2.0",
            "perl-1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18311.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-18311-03a5f7af",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "278762646846467458220749028302630386693",
                    "312468557747119978232149888737317887481",
                    "161493643322277275457001869997113710198",
                    "63943654176538038665800518437507596469",
                    "119127681495240114184810842066462406217",
                    "296353623599777734216004584012547961258",
                    "329292465809237107923465957351581805798",
                    "231685815720260020200934945771896543007",
                    "178043359333267592176162773375020071429",
                    "237183783672896658833163336710383737165",
                    "250152108054186789770812128784948443612",
                    "213165741231015538985571116828393668584",
                    "319370801703202954217563985177783524508",
                    "329738588468454201620027238060833819704",
                    "314383455144799346142780865009893270760",
                    "123801379219583801958491077506912609356",
                    "98822304097782848954915188387318587459",
                    "71966028249863066924730486223646774984",
                    "235924869402854404509950940347127961505",
                    "56904741803182023061646506821590483013",
                    "34603087930133241378363355428359713696",
                    "135544590023977588920973923720912825129",
                    "257334656051931252101327244517455703467",
                    "205189281332546020698937958583717221794",
                    "284566781044160816925880904132687163231",
                    "49293671174851459557462202680499054488",
                    "282936611618179306955704672491742136335",
                    "35188081188623385928179560303844355424",
                    "323178167614223974339618985719825179357",
                    "227770051973309539615764254246913432760",
                    "264590287610024220661636043986184376159",
                    "30799101164680659213973560467289847539",
                    "273621009362251584277563984863829014714",
                    "23732282762801728803277791934274787462",
                    "274140217903139139305970336732798880537",
                    "113595096881323809552703933403717361115",
                    "147607090647580381413665750363608955621",
                    "89904576321677848069547443359327286432",
                    "211610302220716257581478870691569150871",
                    "322799440874947332372700787068003765999",
                    "120487017185935785522424645892048162280",
                    "1210109423129691442168615330544529791",
                    "330360107058339846493926721672137367812",
                    "334004709386001461208330486823354622959",
                    "250261000308745423778701670392269024960",
                    "175842549026026986810812406029634743851",
                    "73849908381430057173215485562541545956",
                    "251483224424742296371896010847414292954",
                    "170300462639422336973054749143305320663",
                    "215550845120736407961630486036457954122",
                    "274119170000771695150254389561532174435",
                    "165250254494429546184372444911738558090",
                    "22265498109644917814821019236596096416",
                    "230853035943194497847225723510867911094",
                    "160096760090148610203933711539747990196",
                    "24305426286278845320748928919437622618",
                    "10360737222052097615580851996968375620",
                    "49141794748794404104407450701925671967",
                    "170300462639422336973054749143305320663",
                    "215550845120736407961630486036457954122",
                    "274119170000771695150254389561532174435",
                    "49165777930563725616616829732964403532",
                    "178460126831274040021028138488238520464",
                    "278994080232964427766074689965611310706",
                    "201826042647771855853579827731172743400"
                  ]
                },
                "source": "https://github.com/perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be",
                "target": {
                  "file": "util.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:32:44Z"
          }
        }
      ],
      "modified": "2026-10-20T13:32:44.344582475Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWQGEB543QN7SSBRKYJM6PSOC3RLYGSM/",
        "https://www.oracle.com/security-alerts/cpuapr2020.html",
        "https://www.oracle.com/security-alerts/cpujul2020.html",
        "https://access.redhat.com/errata/RHBA-2019:0327",
        "https://access.redhat.com/errata/RHSA-2019:0001",
        "https://access.redhat.com/errata/RHSA-2019:0010",
        "https://access.redhat.com/errata/RHSA-2019:0109",
        "https://access.redhat.com/errata/RHSA-2019:1790",
        "https://access.redhat.com/errata/RHSA-2019:1942",
        "https://access.redhat.com/errata/RHSA-2019:2400",
        "https://kc.mcafee.com/corporate/index?page=content&id=SB10278",
        "https://lists.debian.org/debian-lts-announce/2018/11/msg00039.html",
        "https://metacpan.org/changes/release/SHAY/perl-5.26.3",
        "https://metacpan.org/changes/release/SHAY/perl-5.28.1",
        "https://seclists.org/bugtraq/2019/Mar/42",
        "https://security.gentoo.org/glsa/201909-01",
        "https://security.netapp.com/advisory/ntap-20190221-0003/",
        "https://support.apple.com/kb/HT209600",
        "https://usn.ubuntu.com/3834-1/",
        "https://usn.ubuntu.com/3834-2/",
        "https://www.debian.org/security/2018/dsa-4347",
        "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html",
        "https://rt.perl.org/Ticket/Display.html?id=133204",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1646730",
        "https://github.com/Perl/perl5/commit/34716e2a6ee2af96078d62b065b7785c001194be"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "apple:mac_os_x",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "10.14.4"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:mcafee:web_gateway:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "mcafee:web_gateway",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.7.2"
                  },
                  {
                    "fixed": "7.7.2.21"
                  },
                  {
                    "introduced": "7.8.2"
                  },
                  {
                    "fixed": "7.8.2.8"
                  },
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.1.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "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:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "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"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "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:29:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "29"
                  },
                  {
                    "last_affected": "29"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.0"
                  },
                  {
                    "last_affected": "6.0"
                  },
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "7.4"
                  },
                  {
                    "last_affected": "7.4"
                  },
                  {
                    "introduced": "7.5"
                  },
                  {
                    "last_affected": "7.5"
                  },
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "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_eus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_eus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "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_server_aus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_aus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server_tus",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.6"
                  },
                  {
                    "last_affected": "7.6"
                  }
                ],
                "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"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:openshift_container_platform",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.11"
                  },
                  {
                    "last_affected": "3.11"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-18311",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387803,
  "published_at": "2018-12-07T21:29:00.407+00:00"
}