# CVE-2026-27887: Spin has memory leaks in various WIT interfaces

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

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Passive; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-28)
- **CWE:** CWE-770, CWE-774, CWE-789
- **Published:** 2026-02-26T00:55:53.360Z
- **Modified:** 2026-06-17T10:27:49.410Z

## Who should check

- Anyone running spinframework spin \< 3.6.1
- Anyone running spinframework SpinKube \< 0.6.2
- Anyone running spinframework containerd-shim-spin \< 0.22.1

## Description

Spin is an open source developer tool for building and running serverless applications powered by WebAssembly. When Spin is configured to allow connections to a database or web server which could return responses of unbounded size (e.g. tables with many rows or large content bodies), Spin may in some cases attempt to buffer the entire response before delivering it to the guest, which can lead to the host process running out of memory, panicking, and crashing. In addition, a malicious guest application could incrementally insert a large number of rows or values into a database and then retrieve them all in a single query, leading to large host allocations. Spin 3.6.1, SpinKube 0.6.2, and \`containerd-shim-spin\` 0.22.1 have been patched to address the issue. As a workaround, configure Spin to only allow access to trusted databases and HTTP servers which limit response sizes.

## Affected and fixed versions

- spinframework spin: \< 3.6.1 (cvelist)
- spinframework SpinKube: \< 0.6.2 (cvelist)
- spinframework containerd-shim-spin: \< 0.22.1 (cvelist)

## Mitigation

- Upgrade spin to 3.6.1 or later.
- Upgrade SpinKube to 0.6.2 or later.
- Upgrade containerd-shim-spin to 0.22.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-27887.md
Affected: spinframework spin < 3.6.1; spinframework SpinKube < 0.6.2; spinframework containerd-shim-spin < 0.22.1
Fixed in: spinframework spin 3.6.1, spinframework SpinKube 0.6.2, spinframework containerd-shim-spin 0.22.1

Steps:
1. Search this machine and project for spinframework spin, spinframework SpinKube, spinframework containerd-shim-spin: 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-2026-27887 being exploited?

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

### How serious is CVE-2026-27887?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-27887?

spinframework spin \< 3.6.1; spinframework SpinKube \< 0.6.2; spinframework containerd-shim-spin \< 0.22.1.

### Is there a fix for CVE-2026-27887?

Yes. Fixed in spinframework spin 3.6.1, spinframework SpinKube 0.6.2, spinframework containerd-shim-spin 0.22.1. Upgrade spin to 3.6.1 or later. Upgrade SpinKube to 0.6.2 or later. Upgrade containerd-shim-spin to 0.22.1 or later.

### How do I check if I'm affected by CVE-2026-27887?

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/spinframework/spin/security/advisories/GHSA-mv4f-6ffm-32wx>

## 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-2026-27887>

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