{"id":"CVE-2024-38375","aliases":["CVE-2024-38375","GHSA-mp3g-vpm9-9vqv"],"related":[],"kind":"vulnerability","state":"published","title":"@fastly/js-compute use-after-free in some host call implementations","summary":"@fastly/js-compute is a JavaScript SDK and runtime for building Fastly Compute applications. The implementation of several functions were determined to include a use-after-free bug. This bug could allow for unintended data loss if the result of the preceding functions were sent anywhere else, and often results in a guest trap causing services to return a 500. This bug has been fixed in version 3.16.0 of the `@fastly/js-compute` package.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@fastly/js-compute is a JavaScript SDK and runtime for building Fastly Compute applications. The implementation of several functions were determined to include a use-after-free bug. This bug could allow for unintended data loss if the result of the preceding functions were sent anywhere else, and often results in a guest trap causing services to return a 500. This bug has been fixed in version 3.16.0 of the `@fastly/js-compute` package.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe implementation of the following functions were determined to include a use-after-free bug:\n\n* `FetchEvent.client.tlsCipherOpensslName`\n* `FetchEvent.client.tlsProtocol`\n* `FetchEvent.client.tlsClientCertificate`\n* `FetchEvent.client.tlsJA3MD5`\n* `FetchEvent.client.tlsClientHello`\n* `CacheEntry.prototype.userMetadata` of the `fastly:cache` subsystem\n* `Device.lookup` of the `fastly:device` subsystem\n\nThis bug could allow for an unintended data leak if the result of the preceding functions were sent anywhere else, and often results in a Compute service crash causing an HTTP 500 error to be returned. As all requests to Compute are isolated from one another, the only data at risk is data present for a single request.\n\n### Patches\nThis bug has been fixed in version 3.16.0 of the `@fastly/js-compute` package.\n\n### Workarounds\nThere are no workarounds for this bug, any use of the affected functions introduces the possibility of a data leak or crash in guest code.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@fastly/js-compute es un SDK de JavaScript y un tiempo de ejecución para crear aplicaciones Fastly Compute. Se determinó que la implementación de varias funciones incluía un error de use after free. Este error podría permitir la pérdida de datos no intencionada si el resultado de las funciones anteriores se enviara a cualquier otro lugar y, a menudo, resulta en una trampa de invitados que hace que los servicios devuelvan un 500. Este error se solucionó en la versión 3.16.0 de `@fastly/ Paquete js-compute`.F2937","source":"nvd"}],"published":"2024-06-26T18:46:12.471Z","modified":"2026-09-10T03:50:15.651Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.16.0","status":"affected"}],"vendor":"fastly","product":"js-compute-runtime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.16.0"}],"ecosystem":"npm","package":"@fastly/js-compute","purl":"pkg:npm/%40fastly/js-compute","source":"ghsa"}],"references":[{"url":"https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38375","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastly/js-compute-runtime","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-30T19:52:41.445Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38375","url":"https://www.cve.org/CVERecord?id=CVE-2024-38375","licence":"CVE Terms of Use","modified":"2024-08-02T04:04:25.287Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mp3g-vpm9-9vqv","url":"https://github.com/advisories/GHSA-mp3g-vpm9-9vqv","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.651Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38375","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38375","licence":"Public domain","modified":"2026-06-17T07:40:01.200Z"}],"updatedAt":"2026-11-25T22:58:42.261Z","epss":{"score":0.00266,"percentile":0.19767,"date":"2026-12-01T12:00:22.000Z"}}