{"id":"GHSA-mp3g-vpm9-9vqv","summary":"@fastly/js-compute has a use-after-free in some host call implementations","details":"### 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.","aliases":["CVE-2024-38375"],"modified":"2026-09-10T03:50:15.651033617Z","published":"2024-06-26T19:12:23Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-06-26T19:12:23Z","nvd_published_at":"2024-06-26T19:15:13Z","cwe_ids":["CWE-416"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38375"},{"type":"WEB","url":"https://github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3"},{"type":"PACKAGE","url":"https://github.com/fastly/js-compute-runtime"}],"affected":[{"package":{"name":"@fastly/js-compute","ecosystem":"npm","purl":"pkg:npm/%40fastly/js-compute"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.16.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-mp3g-vpm9-9vqv/GHSA-mp3g-vpm9-9vqv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H"}]}