{"id":"CVE-2024-35223","aliases":["CVE-2024-35223","GHSA-284c-x8m7-9w5h","GO-2024-2879"],"related":[],"kind":"vulnerability","state":"published","title":"Dapr API Token Exposure","summary":"Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge. Dapr sends the app token of the invoker app instead of the app token of the invoked app. This causes of a leak of the application token of the invoker app to the invoked app when using Dapr as a gRPC proxy for remote service invocation. This vulnerability impacts Dapr users who use Dapr as a gRPC proxy for remote service invocation as well as the Dapr App API token functionality. An attacker could exploit this vulnerability to gain access to the app token of the invoker app, potentially compromising security and authentication mechanisms. This vulnerability was patched in version 1.13.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge. Dapr sends the app token of the invoker app instead of the app token of the invoked app. This causes of a leak of the application token of the invoker app to the invoked app when using Dapr as a gRPC proxy for remote service invocation. This vulnerability impacts Dapr users who use Dapr as a gRPC proxy for remote service invocation as well as the Dapr App API token functionality. An attacker could exploit this vulnerability to gain access to the app token of the invoker app, potentially compromising security and authentication mechanisms. This vulnerability was patched in version 1.13.3.","source":"cvelist"},{"lang":"en","text":"### **Summary**\n\nA vulnerability has been found in Dapr that causes a leak of the application token of the invoker app to the invoked app when using Dapr as a gRPC proxy for remote service invocation. This issue arises because Dapr sends the app token of the invoker app instead of the app token of the invoked app.\n\nUsers who leverage Dapr for gRPC proxy service invocation and are using the app API token feature are encouraged to upgrade Dapr to version [1.13.3](https://github.com/dapr/dapr/releases/tag/v1.13.3). \n\n### Impact\n\nThis vulnerability impacts Dapr users who use Dapr as a gRPC proxy for remote service invocation as well as the [Dapr App API token](https://docs.dapr.io/operations/security/app-api-token/) functionality. An attacker could exploit this vulnerability to gain access to the app token of the invoker app, potentially compromising security and authentication mechanisms.\n\n### Patches\n\nThe issue has been fixed in Dapr version [1.13.3](https://github.com/dapr/dapr/releases/tag/v1.13.3).\n\n### Details\n\nDapr uses two types of tokens for authentication:\n\n- `APP_API_TOKEN`: Used by Dapr to authenticate to the app.\n- `DAPR_API_TOKEN`: Used by the app to authenticate to Dapr.\n\nDapr uses the `dapr-api-token` metadata in gRPC calls (or header, for HTTP calls) for authentication.\n\n- In communication from dapr to the app, the `dapr-api-token` metadata field will carry the  `APP_API_TOKEN`.\n- In communication from the app to daprd, the `dapr-api-token` metadata field will carry the  `DAPR_API_TOKEN`.\n\nBefore version 1.13.0, the `APP_API_TOKEN` was not being sent to the invoked app for authentication, as reported in [this issue](https://github.com/dapr/dapr/issues/7344). Instead, Dapr was incorrectly using the same `DAPR_API_TOKEN` that the invoker app had passed to Dapr. This was addressed in [PR #7404](https://github.com/dapr/dapr/pull/7404), but the fix only worked for self-invocation scenarios.\n\nWhen Dapr needed to communicate with another instance, it would mistakenly include the `APP_API_TOKEN` of the invoker app in the request. This behavior is incorrect, app tokens should never be included in requests between Dapr sidecars. This vulnerability allows the receiving app to see the app token of the invoker app, leading to potential misuse and security breaches.\n\nThe vulnerability is addressed by ensuring that Dapr uses the correct app token (of the invoked app) during gRPC proxy service invocation.\n\n### References\n\n- https://docs.dapr.io/operations/security/app-api-token/\n- https://github.com/dapr/dapr/issues/7344\n- https://github.com/dapr/dapr/pull/7404 \n\n### Credits\n\nThanks to [Benjamin Delay](mailto:benjamin.delay@gmail.com) for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Dapr API Token Exposure in github.com/dapr/dapr","format":"markdown","source":"go"},{"lang":"es","text":"Dapr es un tiempo de ejecución portátil, controlado por eventos, para crear aplicaciones distribuidas en la nube y en el perímetro. Dapr envía el token de aplicación de la aplicación invocadora en lugar del token de aplicación de la aplicación invocada. Esto provoca una fuga del token de aplicación de la aplicación invocadora a la aplicación invocada cuando se usa Dapr como proxy gRPC para la invocación de servicios remotos. Esta vulnerabilidad afecta a los usuarios de Dapr que usan Dapr como proxy gRPC para la invocación de servicios remotos, así como a la funcionalidad del token API de la aplicación Dapr. Un atacante podría aprovechar esta vulnerabilidad para obtener acceso al token de la aplicación invocadora, lo que podría comprometer los mecanismos de seguridad y autenticación. Esta vulnerabilidad fue parcheada en la versión 1.13.3.","source":"nvd"}],"published":"2024-05-22T18:47:58.000Z","modified":"2026-09-10T03:50:12.880Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":">= 1.13.0, < 1.13.3","status":"affected"}],"vendor":"dapr","product":"dapr","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.11.2","lastAffected":"1.13.3","status":"affected"}],"vendor":"dapr","product":"dapr","cpe":"cpe:2.3:a:dapr:dapr:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.3"}],"ecosystem":"Go","package":"github.com/dapr/dapr","purl":"pkg:golang/github.com/dapr/dapr","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.3"}],"ecosystem":"Go","package":"github.com/dapr/dapr","purl":"pkg:golang/github.com/dapr/dapr","source":"go"}],"references":[{"url":"https://github.com/dapr/dapr/security/advisories/GHSA-284c-x8m7-9w5h","tags":["advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dapr/dapr/issues/7344","tags":["report","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dapr/dapr/pull/7404","tags":["fix","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dapr/dapr/commit/e0591e43d0cdfd30a2f2960dce5d9892dc98bc2c","tags":["fix","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dapr/dapr/releases/tag/v1.13.3","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35223","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/dapr/dapr","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-05-23T20:26:00.242Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35223","url":"https://www.cve.org/CVERecord?id=CVE-2024-35223","licence":"CVE Terms of Use","modified":"2024-08-02T03:07:46.803Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-284c-x8m7-9w5h","url":"https://github.com/advisories/GHSA-284c-x8m7-9w5h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:12.880Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2879","url":"https://pkg.go.dev/vuln/GO-2024-2879","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:24.003Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35223","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35223","licence":"Public domain","modified":"2026-06-17T07:34:34.463Z"}],"updatedAt":"2026-11-25T22:58:40.759Z","epss":{"score":0.00438,"percentile":0.39775,"date":"2026-12-01T12:00:22.000Z"}}