{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.5.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "f7be0ee10131f25620a2f64af7e3ded43eae2049"
            }
          ],
          "repo": "https://github.com/mholt/caddy",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "An out-of-bounds read in the rewrite function at /modules/caddyhttp/rewrite/rewrite.go in Caddy v2.5.1 allows attackers to cause a Denial of Service (DoS) via a crafted URI. Note: This has been disputed as a bug, not a security vulnerability, in the Caddy web server that emerged when an administrator's bad configuration containing a malformed request URI caused the server to return an empty reply instead of a valid HTTP response to the client.",
  "id": "CVE-2022-34037",
  "modified": "2026-03-13T21:49:37.987863870Z",
  "published": "2022-07-22T15:15:08.580Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/caddyserver/caddy/issues/4775#issuecomment-1203388116"
    },
    {
      "type": "FIX",
      "url": "https://github.com/caddyserver/caddy/issues/4775"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}