# CVE-2022-3037: Use After Free in vim/vim

Status: published. Published: 2022-08-30. Updated: 2026-11-02.

Use After Free in GitHub repository vim/vim prior to 9.0.0322.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: security@huntr.dev) — https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: security@huntr.dev) — https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5

## Affected products and versions

- vim / vim/vim: < 9.0.0322 (affected, custom). Source: CNA: @huntrdev

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "0.9.0",
            "versionStartIncluding": "0.5.0",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "9.0.0322",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  },
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.0: 7.8 (high); CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; source: CNA: @huntrdev

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.0: 7.8 (high); CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; source: NVD: security@huntr.dev

- CISA KEV: No listing in collected sources

- EPSS: 0.54% as of 2026-11-02; percentile 45.18%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-416

## Exploit evidence

- exploit: https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (security@huntr.dev)
- exploit: https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (af854a3a-2127-422b-91ae-364da2661108)

## References

- https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (CNA: @huntrdev; x_refsource_CONFIRM)

- https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb (CNA: @huntrdev; x_refsource_MISC)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RY3GEN2Q46ZJKSNHTN2XB6B3VAJBEILN/ (CNA: @huntrdev; vendor-advisory, x_refsource_FEDORA)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VHJ6LCLHGGVI2U6ZHXHTZ2PYP4STC23N/ (CNA: @huntrdev; vendor-advisory, x_refsource_FEDORA)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/ (CNA: @huntrdev; vendor-advisory, x_refsource_FEDORA)

- https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (ADP: CVE; x_refsource_CONFIRM, x_transferred)

- https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb (ADP: CVE; x_refsource_MISC, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RY3GEN2Q46ZJKSNHTN2XB6B3VAJBEILN/ (ADP: CVE; vendor-advisory, x_refsource_FEDORA, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VHJ6LCLHGGVI2U6ZHXHTZ2PYP4STC23N/ (ADP: CVE; vendor-advisory, x_refsource_FEDORA, x_transferred)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/ (ADP: CVE; vendor-advisory, x_refsource_FEDORA, x_transferred)

- https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb (security@huntr.dev; Patch, Third Party Advisory)

- https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (security@huntr.dev; Exploit, Patch, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RY3GEN2Q46ZJKSNHTN2XB6B3VAJBEILN/ (security@huntr.dev; Mailing List, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VHJ6LCLHGGVI2U6ZHXHTZ2PYP4STC23N/ (security@huntr.dev; Mailing List, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/ (security@huntr.dev; Mailing List, Third Party Advisory)

- https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb (af854a3a-2127-422b-91ae-364da2661108; Patch, Third Party Advisory)

- https://huntr.dev/bounties/af4c2f2d-d754-4607-b565-9e92f3f717b5 (af854a3a-2127-422b-91ae-364da2661108; Exploit, Patch, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RY3GEN2Q46ZJKSNHTN2XB6B3VAJBEILN/ (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VHJ6LCLHGGVI2U6ZHXHTZ2PYP4STC23N/ (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Third Party Advisory)

- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/ (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Third Party Advisory)

## Provenance

- CNA: @huntrdev: https://www.cve.org/CVERecord?id=CVE-2022-3037; retrieved 2026-11-02; source updated 2026-11-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-3037; retrieved 2026-11-03; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2022-3037; retrieved 2026-11-02; source updated Not reported

Revision: 863f875a185efd1b67d723beca9b4ace12e1bbe43f6e85be1e7751d21655bcb6

Canonical: https://y2.dev/cve/CVE-2022-3037

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.