Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for regexp/syntax by Go standard library

    CVE-2022-41715 (GCVE-0-2022-41715)

    Vulnerability from nvd – Published: 2022-10-14 00:00 – Updated: 2025-02-13 16:33
    VLAI
    Title
    Memory exhaustion when compiling regular expressions in regexp/syntax
    Summary
    Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.
    Severity
    No CVSS data available.
    CWE
    • CWE 400: Uncontrolled Resource Consumption
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library regexp/syntax Affected: 0 , < 1.18.7 (semver)
    Affected: 1.19.0-0 , < 1.19.2 (semver)
    Create a notification for this product.
    Credits
    Adam Korczynski (ADA Logics) OSS-Fuzz
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T12:49:43.550Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/55949"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/439356"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-1039"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://security.gentoo.org/glsa/202311-09"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "regexp/syntax",
              "product": "regexp/syntax",
              "programRoutines": [
                {
                  "name": "parser.push"
                },
                {
                  "name": "parser.repeat"
                },
                {
                  "name": "parser.factor"
                },
                {
                  "name": "parse"
                },
                {
                  "name": "Parse"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.18.7",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.19.2",
                  "status": "affected",
                  "version": "1.19.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Adam Korczynski (ADA Logics)"
            },
            {
              "lang": "en",
              "value": "OSS-Fuzz"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE 400: Uncontrolled Resource Consumption",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-11-25T11:09:55.534Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/55949"
            },
            {
              "url": "https://go.dev/cl/439356"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-1039"
            },
            {
              "url": "https://security.gentoo.org/glsa/202311-09"
            }
          ],
          "title": "Memory exhaustion when compiling regular expressions in regexp/syntax"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-41715",
        "datePublished": "2022-10-14T00:00:00.000Z",
        "dateReserved": "2022-09-28T00:00:00.000Z",
        "dateUpdated": "2025-02-13T16:33:07.652Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-41715 (GCVE-0-2022-41715)

    Vulnerability from cvelistv5 – Published: 2022-10-14 00:00 – Updated: 2025-02-13 16:33
    VLAI
    Title
    Memory exhaustion when compiling regular expressions in regexp/syntax
    Summary
    Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.
    Severity
    No CVSS data available.
    CWE
    • CWE 400: Uncontrolled Resource Consumption
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library regexp/syntax Affected: 0 , < 1.18.7 (semver)
    Affected: 1.19.0-0 , < 1.19.2 (semver)
    Create a notification for this product.
    Credits
    Adam Korczynski (ADA Logics) OSS-Fuzz
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T12:49:43.550Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/55949"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/439356"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-1039"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://security.gentoo.org/glsa/202311-09"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "regexp/syntax",
              "product": "regexp/syntax",
              "programRoutines": [
                {
                  "name": "parser.push"
                },
                {
                  "name": "parser.repeat"
                },
                {
                  "name": "parser.factor"
                },
                {
                  "name": "parse"
                },
                {
                  "name": "Parse"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.18.7",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.19.2",
                  "status": "affected",
                  "version": "1.19.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Adam Korczynski (ADA Logics)"
            },
            {
              "lang": "en",
              "value": "OSS-Fuzz"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE 400: Uncontrolled Resource Consumption",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-11-25T11:09:55.534Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/55949"
            },
            {
              "url": "https://go.dev/cl/439356"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-1039"
            },
            {
              "url": "https://security.gentoo.org/glsa/202311-09"
            }
          ],
          "title": "Memory exhaustion when compiling regular expressions in regexp/syntax"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-41715",
        "datePublished": "2022-10-14T00:00:00.000Z",
        "dateReserved": "2022-09-28T00:00:00.000Z",
        "dateUpdated": "2025-02-13T16:33:07.652Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }