{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "1.16"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "d7ba35bbb649209c66e582d5a0244ba988a15159"
            }
          ],
          "repo": "https://github.com/civetweb/civetweb",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124040.json"
  },
  "details": "CivetWeb through 1.16, when built with USE_HTTP2 and enable_http2 on, contains a use-after-free vulnerability in handle_http2() that retains freed :method and :path pointers. Unauthenticated remote attackers can send a later HEADERS frame omitting these pseudo-headers to influence request method or path seen by access rules, or crash the server.",
  "id": "CVE-2026-124040",
  "modified": "2026-11-12T02:30:46.563877419Z",
  "published": "2026-11-06T19:14:48.975Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124040"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/civetweb/civetweb/issues/1379"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/civetweb/civetweb"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/civetweb/civetweb/blob/v1.16/src/http2.inl#L1574-L1581"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "CivetWeb through 1.16 HTTP/2 Use-After-Free via Stale Pseudo-Header State"
}