{"id":"CVE-2025-29914","aliases":["CVE-2025-29914","GHSA-q9f5-625g-xm39","GO-2025-3537"],"related":[],"kind":"vulnerability","state":"published","title":"OWASP Coraza WAF has parser confusion which leads to wrong URI in `REQUEST_FILENAME`","summary":"OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. Prior to 3.3.3, if a request is made on an URI starting with //, coraza will set a wrong value in REQUEST_FILENAME. For example, if the URI //bar/uploads/foo.php?a=b is passed to coraza: , REQUEST_FILENAME will be set to /uploads/foo.php. This can lead to a rules bypass. This vulnerability is fixed in 3.3.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. Prior to 3.3.3, if a request is made on an URI starting with //, coraza will set a wrong value in REQUEST_FILENAME. For example, if the URI //bar/uploads/foo.php?a=b is passed to coraza: , REQUEST_FILENAME will be set to /uploads/foo.php. This can lead to a rules bypass. This vulnerability is fixed in 3.3.3.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nURLs starting with `//` are not parsed properly, and the request `REQUEST_FILENAME` variable contains a wrong value, leading to potential rules bypass.\n\n### Details\n\nIf a request is made on an URI starting with `//`, coraza will set a wrong value in `REQUEST_FILENAME`.\nFor example, if the URI `//bar/uploads/foo.php?a=b` is passed to coraza: , `REQUEST_FILENAME` will be set to `/uploads/foo.php`.\n\nThe root cause is the usage of `url.Parse` to parse the URI in [ProcessURI](https://github.com/corazawaf/coraza/blob/8b612f4e6e18c606e371110227bc7669dc714cab/internal/corazawaf/transaction.go#L768).\n\n`url.Parse` can parse both absolute URLs (starting with a scheme) or relative ones (just the path). \n`//bar/uploads/foo.php` is a valid absolute URI (the scheme is empty), `url.Parse` will consider `bar` as the host and the path will be set to `/uploads/foo.php`.\n\n### PoC\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/url\"\n\t\"os\"\n\n\t\"github.com/corazawaf/coraza/v3\"\n)\n\nconst testRule = `\nSecDebugLogLevel 9\nSecDebugLog /dev/stdout\nSecRule REQUEST_FILENAME \"@rx /bar/uploads/.*\\.(h?ph(p|tm?l?|ar)|module|shtml)\" \"id:1,phase:1,deny\"\n`\n\nfunc main() {\n\tvar testURL = \"//bar/uploads/foo.php\"\n\n\tif os.Getenv(\"TEST_URL\") != \"\" {\n\t\ttestURL = os.Getenv(\"TEST_URL\")\n\t}\n\n\tfmt.Printf(\"Testing URL: %s\\n\", testURL)\n\n\tconfig := coraza.NewWAFConfig().WithDirectives(testRule)\n\n\twaf, err := coraza.NewWAF(config)\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\ttx := waf.NewTransaction()\n\n\ttx.ProcessURI(testURL, \"GET\", \"HTTP/1.1\")\n\n\tin := tx.ProcessRequestHeaders()\n\n\tif in != nil {\n\t\tfmt.Printf(\"%+v\\n\", in)\n\t}\n}\n```\n\n### Impact\n\nPotential bypass of rules using `REQUEST_FILENAME`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"OWASP Coraza WAF has parser confusion which leads to wrong URI in `REQUEST_FILENAME` in github.com/corazawaf/coraza","format":"markdown","source":"go"},{"lang":"es","text":"OWASP Coraza WAF es una librería de firewall de aplicaciones web compatible con Golang Modsecurity. En versiones anteriores a la 3.3.3, si se realiza una solicitud en una URI que empieza por //, coraza asigna un valor incorrecto a REQUEST_FILENAME. Por ejemplo, si se asigna la URI //bar/uploads/foo.php?a=b a coraza:, REQUEST_FILENAME se asignará a /uploads/foo.php. Esto puede provocar la omisión de reglas. Esta vulnerabilidad se corrigió en la 3.3.3.","source":"nvd"}],"published":"2025-03-20T17:44:59.024Z","modified":"2026-06-17T09:05:52.550Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-706"],"affected":[{"ranges":[{"version":"< 3.3.3","status":"affected"}],"vendor":"corazawaf","product":"coraza","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"Go","package":"github.com/jptosso/coraza-waf","purl":"pkg:golang/github.com/jptosso/coraza-waf","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"Go","package":"github.com/corazawaf/coraza/v3","purl":"pkg:golang/github.com/corazawaf/coraza/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/corazawaf/coraza","purl":"pkg:golang/github.com/corazawaf/coraza","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/corazawaf/coraza/v2","purl":"pkg:golang/github.com/corazawaf/coraza/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"Go","package":"github.com/corazawaf/coraza/v3","purl":"pkg:golang/github.com/corazawaf/coraza/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/jptosso/coraza-waf","purl":"pkg:golang/github.com/jptosso/coraza-waf","source":"go"}],"references":[{"url":"https://github.com/corazawaf/coraza/security/advisories/GHSA-q9f5-625g-xm39","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/corazawaf/coraza/commit/4722c9ad0d502abd56b8d6733c6b47eb4111742d","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29914","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/corazawaf/coraza","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-20T18:18:13.186Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-29914","url":"https://www.cve.org/CVERecord?id=CVE-2025-29914","licence":"CVE Terms of Use","modified":"2025-03-20T18:18:27.514Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q9f5-625g-xm39","url":"https://github.com/advisories/GHSA-q9f5-625g-xm39","licence":"CC-BY-4.0","modified":"2025-03-25T20:22:09.656Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3537","url":"https://pkg.go.dev/vuln/GO-2025-3537","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:23.400Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-29914","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-29914","licence":"Public domain","modified":"2026-06-17T09:05:52.550Z"}],"updatedAt":"2026-11-25T22:58:55.390Z","epss":{"score":0.00319,"percentile":0.26801,"date":"2026-12-01T12:00:22.000Z"}}