Skip to content
Heist/ feed
Back to feed
Low

re2c — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-2903

A flaw has been found in skvadrik re2c up to 4.4. Impacted is the function check_and_merge_special_rules of the file src/parse/ast.cc. This manipulation causes null pointer dereference. The attack can only be executed locally. The exploit has been published and may be used. Patch name: febeb977936f9519a25d9fbd10ff8256358cdb97. It is suggested to install a patch to address this issue.

Products
re2c
Affected versions
2.0.3-1build1, 2.2-1, 3.0-1, 3.1-1, 3.1-1build1, 4.1-1, 4.3-2, 4.3.1-1, 4.4-1, 4.5.1-1
Fixed versions
Not specified
CVEs
CVE-2026-2903
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-2903

core-osv · Original source

Published 22 Feb 2026, 01:16 UTC

A flaw has been found in skvadrik re2c up to 4.4. Impacted is the function check_and_merge_special_rules of the file src/parse/ast.cc. This manipulation causes null pointer dereference. The attack can only be executed locally. The exploit has been published and may be used. Patch name: febeb977936f9519a25d9fbd10ff8256358cdb97. It is suggested to install a patch to address this issue.

osv:UBUNTU-CVE-2026-2903

re2c

Fixed versions: Not specified

re2c

Fixed versions: Not specified

re2c

Fixed versions: Not specified

re2c

Fixed versions: Not specified

re2c

Fixed versions: Not specified

Complete source record
{
  "id": "45eaf6bff31dce9641724a9001c3bb9bda77d555ba706aa73abbba24aea8d94a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-2903",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-2903",
    "summary": "A flaw has been found in skvadrik re2c up to 4.4. Impacted is the function check_and_merge_special_rules of the file src/parse/ast.cc. This manipulation causes null pointer dereference. The attack can only be executed locally. The exploit has been published and may be used. Patch name: febeb977936f9519a25d9fbd10ff8256358cdb97. It is suggested to install a patch to address this issue.",
    "evidence": "osv:UBUNTU-CVE-2026-2903",
    "products": [
      {
        "name": {
          "value": "re2c",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.3-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "re2c",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.1-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "re2c",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.3-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "re2c",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.4-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.5.1-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "re2c",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.3-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.3.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.4-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2026-2903",
      "aliases": [
        "UBUNTU-CVE-2026-2903"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "re2c",
            "purl": "pkg:deb/ubuntu/re2c?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.0.3-1build1",
            "2.2-1",
            "3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2903.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "re2c",
                "binary_version": "3.0-1"
              }
            ],
            "priority_reason": "This is only a crash is a command-line tool"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "re2c",
            "purl": "pkg:deb/ubuntu/re2c?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.1-1",
            "3.1-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2903.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "re2c",
                "binary_version": "3.1-1build1"
              }
            ],
            "priority_reason": "This is only a crash is a command-line tool"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "re2c",
            "purl": "pkg:deb/ubuntu/re2c?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.1-1",
            "4.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2903.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "re2c",
                "binary_version": "4.3-2"
              }
            ],
            "priority_reason": "This is only a crash is a command-line tool"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "re2c",
            "purl": "pkg:deb/ubuntu/re2c?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.4-1",
            "4.5.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2903.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "re2c",
                "binary_version": "4.5.1-1"
              }
            ],
            "priority_reason": "This is only a crash is a command-line tool"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "re2c",
            "purl": "pkg:deb/ubuntu/re2c?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.3-2",
            "4.3.1-1",
            "4.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2903.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "re2c",
                "binary_version": "4.4-1"
              }
            ],
            "priority_reason": "This is only a crash is a command-line tool"
          }
        }
      ],
      "modified": "2026-10-17T12:59:57.583583561Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-2903"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-2903",
        "https://www.cve.org/CVERecord?id=CVE-2026-2903",
        "https://github.com/oneafter/0202/blob/main/re/repro",
        "https://github.com/skvadrik/re2c/",
        "https://github.com/skvadrik/re2c/issues/571#issuecomment-3837675101",
        "https://vuldb.com/?ctiid.347210",
        "https://vuldb.com/?id.347210",
        "https://vuldb.com/?submit.755030"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-2903",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360035,
  "published_at": "2026-02-22T01:16:00+00:00"
}