# CVE-2024-38375: @fastly/js-compute use-after-free in some host call implementations

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-416
- **Aliases:** GHSA-mp3g-vpm9-9vqv
- **Published:** 2024-06-26T18:46:12.471Z
- **Modified:** 2026-09-10T03:50:15.651Z

## Who should check

- Projects that depend on npm package @fastly/js-compute (\>= 3.0.0, \< 3.16.0)
- Anyone running fastly js-compute-runtime \>= 3.0.0, \< 3.16.0

## 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.

## Affected and fixed versions

- npm `@fastly/js-compute`: affected \>= 3.0.0, \< 3.16.0; fixed 3.16.0 (osv)
- fastly js-compute-runtime: \>= 3.0.0, \< 3.16.0 (cvelist)

## Mitigation

- Upgrade @fastly/js-compute to 3.16.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38375. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38375.md
Affected: @fastly/js-compute >= 3.0.0, < 3.16.0
Fixed in: 3.16.0

Steps:
1. Search this machine and project for @fastly/js-compute (npm), fastly js-compute-runtime: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38375 being exploited?

There is no confirmed exploitation: CVE-2024-38375 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-38375?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-38375?

@fastly/js-compute \>= 3.0.0, \< 3.16.0.

### Is there a fix for CVE-2024-38375?

Yes. Fixed in 3.16.0. Upgrade @fastly/js-compute to 3.16.0 or later.

### How do I check if I'm affected by CVE-2024-38375?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/fastly/js-compute-runtime/security/advisories/GHSA-mp3g-vpm9-9vqv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-38375>
- patch: <https://github.com/fastly/js-compute-runtime/commit/4e16641ef4e159c4a11b500ac861b8fa8d9ff5d3>
- other: <https://github.com/fastly/js-compute-runtime>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38375>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mp3g-vpm9-9vqv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-38375> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38375>
