{"schemaVersion":3,"id":"CVE-2024-38375","aliases":["GHSA-mp3g-vpm9-9vqv"],"status":"published","duplicateOf":null,"title":null,"description":"@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.","dates":{"published":"2024-06-26T18:46:12.471Z","modified":"2024-08-02T04:04:25.287Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","exploitability":1.3,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00266,"percentile":0.17466,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00266},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00266,"percentile":0.17466}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00266,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00266,"percentile":0.17466}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"fastly","product":"js-compute-runtime","name":"js-compute-runtime","label":"js-compute-runtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.16.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.16.0","eol":null,"hubHref":"/vendor/fastly/js-compute-runtime"},{"vendor":"@fastly","product":"js-compute","name":"@fastly/js-compute","label":"js-compute","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@fastly/js-compute","purlType":"npm","versions":[{"text":"≥ 3.0.0, < 3.16.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.16.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv","label":"github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3","label":"github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38375","label":"nvd.nist.gov/vuln/detail/CVE-2024-38375","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastly/js-compute-runtime","label":"github.com/fastly/js-compute-runtime","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-06-26T18:46:12.471Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T04:04:25.287Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T21:18:07.599Z","stale":false,"partial":false}}