Skip to content
Heist/ feed
Back to feed
HighFix available

golang-1.19 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-41715

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.

Products
golang-1.19
Affected versions
Not specified
Fixed versions
1.19.2-1
CVEs
CVE-2022-41715
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 15:31 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-41715

core-osv · Original source

Published 14 Oct 2022, 15:16 UTC

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.

osv:DEBIAN-CVE-2022-41715

golang-1.19

Fixed versions: 1.19.2-1

Complete source record
{
  "id": "e418224a14f36468569a484c9e498e5715ac67b76034d052ca04c4705f190c00",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-41715",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-41715",
    "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.",
    "evidence": "osv:DEBIAN-CVE-2022-41715",
    "products": [
      {
        "name": {
          "value": "golang-1.19",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.19.2-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2022-41715",
      "aliases": [
        "DEBIAN-CVE-2022-41715"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.19.2-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-1.19",
            "purl": "pkg:deb/debian/golang-1.19?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-41715.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:03:04.979583471Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-41715"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-41715"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-41715",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 325079,
  "published_at": "2022-10-14T15:16:20.78+00:00"
}