{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:chafa_project:chafa:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.12.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "08e87f5acbce734a7cb450d4b1562c7641fc9db5"
            },
            {
              "fixed": "e6ce3746cdcf0836b9dae659a5aed15d73a080d8"
            }
          ],
          "repo": "https://github.com/hpjansson/chafa",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "@huntrdev",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2061.json"
  },
  "details": "Heap-based Buffer Overflow in GitHub repository hpjansson/chafa prior to 1.12.0.",
  "id": "CVE-2022-2061",
  "modified": "2026-07-15T01:49:18.076459355Z",
  "published": "2022-06-13T11:30:25Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://huntr.dev/bounties/365ab61f-9a63-421c-97e6-21d4653021f0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2061.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-2061"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hpjansson/chafa/commit/e6ce3746cdcf0836b9dae659a5aed15d73a080d8"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Heap-based Buffer Overflow in hpjansson/chafa"
}