
Unauthenticated RCE via Velocity Template Language (VTL) injection in Floci API Gateway mapping templates (versions 1.1.0–2.2.0). CVSS 9.8 Critical.
A critical unauthenticated Remote Code Execution vulnerability in Floci (floci-io/floci), an open-source AWS API Gateway local emulator. The flaw exists in the VtlTemplateEngine component, which evaluates user-supplied Velocity Template Language (VTL) mapping templates without sandboxing or input validation.
An attacker with network access to the Floci management API can craft a malicious VTL template that exploits Java reflection to execute arbitrary OS commands at the privilege level of the JVM process — requiring no credentials.
| Field | Value |
|---|---|
| CVE ID | CVE-2026-108598 |
| CVSS v3.1 | 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| CVSS 4.0 | 9.3 Critical |
| CWE | CWE-94: Improper Control of Code Generation |
| Affected | floci-io/floci >= 1.1.0, < 2.2.0 |
| Fixed in | floci 2.2.1 |
| Auth Required | None |
Floci simulates AWS API Gateway VTL mapping templates locally using Apache Velocity. The VtlTemplateEngine instantiates the Velocity engine with its default configuration — no SecureUberspector, no class allowlist, no sandbox. This allows any template submitted via the management API to walk the Java class hierarchy using Velocity's introspection facilities and reach java.lang.Runtime or java.lang.ProcessBuilder, achieving OS command execution.
In real AWS API Gateway, VTL runs in a tightly sandboxed environment. Floci's emulation provides none of these restrictions.
Upgrade to floci 2.2.1 or later.
npm install floci@">=2.2.1" --save-dev
https://sidesploitx.github.io/CVE-2026-108598/
References
- GitHub Security Advisory GHSA-3p4c-wp7w-mgjx
- CVE-2026-108598 — ThreatInt
- CVE-2026-108598 — Strix