{"id":"CVE-2024-32980","aliases":["CVE-2024-32980","GHSA-f3h7-gpjj-wcvh"],"related":[],"kind":"vulnerability","state":"published","title":"Spin contains a potential network sandbox escape for specifically configured Spin applications","summary":"Spin is the developer tool for building and running serverless applications powered by WebAssembly. Prior to 2.4.3, some specifically configured Spin applications that use `self` requests without a specified URL authority can be induced to make requests to arbitrary hosts via the `Host` HTTP header. The following conditions need to be met for an application to be vulnerable: 1. The environment Spin is deployed in routes requests to the Spin runtime based on the request URL instead of the `Host` header, and leaves the `Host` header set to its original value; 2. The Spin application's component handling the incoming request is configured with an `allow_outbound_hosts` list containing `\"self\"`; and 3. In reaction to an incoming request, the component makes an outbound request whose URL doesn't include the hostname/port. Spin 2.4.3 has been released to fix this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Spin is the developer tool for building and running serverless applications powered by WebAssembly. Prior to 2.4.3, some specifically configured Spin applications that use `self` requests without a specified URL authority can be induced to make requests to arbitrary hosts via the `Host` HTTP header. The following conditions need to be met for an application to be vulnerable: 1. The environment Spin is deployed in routes requests to the Spin runtime based on the request URL instead of the `Host` header, and leaves the `Host` header set to its original value; 2. The Spin application's component handling the incoming request is configured with an `allow_outbound_hosts` list containing `\"self\"`; and 3. In reaction to an incoming request, the component makes an outbound request whose URL doesn't include the hostname/port. Spin 2.4.3 has been released to fix this issue.","source":"cvelist"},{"lang":"en","text":"### Impact\nSome specifically configured Spin applications that use `self` requests without a specified URL authority can be induced to make requests to arbitrary hosts via the `Host` HTTP header.\n\nIf an application's manifest contains a component with configuration such as\n```toml\nallowed_outbound_hosts = [\"http://self\", \"https://self\"]\n```\n\nand code such as\n```rust\n let res: Response = spin_sdk::http::send(\n        Request::new(Method::Get, \"/\") // Note: the request URI does not contain a URL authority\n ).await?;\n```\n\nThen that application can be induced to send an outgoing request to another host (leading the app to process the response assuming it comes from another component in the same application). This can be induced with a request such as\n```shell\ncurl -H\"Host: google.com:80\" localhost:3000 # Assuming the application is served on localhost:3000\n```\n\n> Note: If using a SDK that does not use `wasi:http/outgoing-handler`, the port can be omitted from the URL.\n\n#### Vulnerable Configurations\n\nThe following conditions need to be met for an application to be vulnerable:\n1. The environment Spin is deployed in routes requests to the Spin runtime based on the request URL instead of the `Host` header, and leaves the `Host` header set to the original value by the client.\n2. The Spin application's component handling the incoming request is configured with an `allowed_outbound_hosts` list containing `\"self\"`.\n3. In reaction to an incoming request, the component makes an outbound request whose URL doesn't include the hostname/port.\n\nIf all of these conditions apply, then Spin will use the inbound request's `Host` header to determine the `authority` part of the URL if none is explicitly provided in the request's URL.\n\n#### Setups known not to be vulnerable\n\nFermyon's [Fermyon Cloud](https://developer.fermyon.com/cloud/index) serverless product and applications hosted on it are known not to be vulnerable.\n\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\nSpin version 2.4.3 is being released with this advisory going public.\n\n### Workarounds\nFor deployments of Spin, a workaround is to ensure that the `Host` header is sanitized to match the application a request is routed to.\n\nFor individual applications, multiple workarounds exist:\n1. Ensure that outgoing requests always sanitize the `Host` header\n2. Ensure that outgoing requests always provide the hostname in the URL and use that hostname in the `allowed_outbound_hosts` list instead of `self`\n3. When using Spin 2.4, use [application-internal service chaining](https://developer.fermyon.com/spin/v2/http-outbound#local-service-chaining) for intra-application requests","format":"markdown","source":"ghsa"},{"lang":"es","text":"Spin es la herramienta de desarrollo para crear y ejecutar aplicaciones sin servidor impulsadas por WebAssembly. Antes de 2.4.3, algunas aplicaciones Spin configuradas específicamente que usan solicitudes \"automáticas\" sin una autoridad de URL especificada pueden ser inducidas a realizar solicitudes a hosts arbitrarios a través del encabezado HTTP \"Host\". Se deben cumplir las siguientes condiciones para que una aplicación sea vulnerable: 1. El entorno Spin se implementa en rutas de solicitudes al tiempo de ejecución de Spin según la URL de solicitud en lugar del encabezado \"Host\", y deja el encabezado \"Host\" configurado en su valor original; 2. El componente de la aplicación Spin que maneja la solicitud entrante está configurado con una lista `allow_outbound_hosts` que contiene `\"self\"`; y 3. En reacción a una solicitud entrante, el componente realiza una solicitud saliente cuya URL no incluye el nombre de host/puerto. Se lanzó Spin 2.4.3 para solucionar este problema.","source":"nvd"}],"published":"2024-05-08T14:32:09.059Z","modified":"2026-09-10T03:50:00.349Z","severity":{"scorer":"GitHub_M","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"},"severities":[{"scorer":"GitHub_M","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"},{"scorer":"GitHub","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-610"],"affected":[{"ranges":[{"version":"< 2.4.3","status":"affected"}],"vendor":"fermyon","product":"spin","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.3"}],"ecosystem":"crates.io","package":"spin-sdk","purl":"pkg:cargo/spin-sdk","source":"ghsa"}],"references":[{"url":"https://github.com/fermyon/spin/security/advisories/GHSA-f3h7-gpjj-wcvh","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fermyon/spin/commit/b3db535c9edb72278d4db3a201f0ed214e561354","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32980","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fermyon/spin","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-06-17T17:22:02.566Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-32980","url":"https://www.cve.org/CVERecord?id=CVE-2024-32980","licence":"CVE Terms of Use","modified":"2024-08-02T02:27:53.504Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3h7-gpjj-wcvh","url":"https://github.com/advisories/GHSA-f3h7-gpjj-wcvh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.349Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-32980","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32980","licence":"Public domain","modified":"2026-06-17T07:30:48.817Z"}],"updatedAt":"2026-11-25T22:58:40.088Z","epss":{"score":0.00485,"percentile":0.43412,"date":"2026-12-01T12:00:22.000Z"}}