Floci: Code injection in API Gateway VTL mapping templates (RCE)
Summary
Floci, a local AWS emulator, contains a code injection flaw in its VTL template engine (VtlTemplateEngine) in versions 1.1.0 up to but not including 2.2.0. An unauthenticated attacker who can reach the Floci API can create a REST API with a MOCK integration whose Velocity template uses $util reflection to run operating system commands inside the Floci JVM. A public proof-of-concept exists, and CISA SSVC rates exploitation as PoC, automatable, with total technical impact.
Affected
- Floci 1.1.0 to before 2.2.0 (default configuration)
- Vendor and CVE record: versions before 2.2.0 are affected; third-party write-ups mention 2.2.1 as the fixed version
Fixed in
- Floci 2.2.0 (per CVE record and release tag)
- Some third-party sources recommend 2.2.1 or later; verify against the vendor advisory GHSA-3p4c-wp7w-mgjx
Workaround
- No vendor-published workaround found.
- Bind Floci to localhost only and do not expose port 4566 on shared, corporate, guest or cloud networks.
- Restrict access to the Floci port with host or network firewall rules.
- Run Floci in an isolated container or VM with minimal privileges and without access to production secrets or networks.
Exploitation
- Public proof-of-concept exploit available (CVE references).
- Metasploit module submitted as a pull request; merge status unconfirmed.
- Not listed in CISA KEV; no confirmed in-the-wild exploitation found in the sources checked.
- EPSS low (about 0.007 to 0.009).
Our recommendation
- Upgrade Floci to 2.2.1 or later (at minimum 2.2.0), and check the vendor advisory for the final fixed version.
- Identify all Floci instances, including developer workstations and CI runners, and check whether they are reachable from other networks.
- Remove network exposure of Floci port 4566 if not strictly needed.
- Review Floci's local state for unexpected REST APIs or integrations as a compromise indicator.
- Monitor the host running Floci for unusual child processes spawned by the Java process.
Public exploits
Links to third-party sites, not checked by us – exploit code can contain malware. Only use it in isolated test environments.
- Proof of concept on GitHub (1 repositories)
Sidesploitx/CVE-2026-108598
Research sources
- GitHub Security Advisory GHSA-3p4c-wp7w-mgjx github.com
- Floci release 2.2.0 github.com
- Fix commit 144b90e6 github.com
- VulnCheck advisory www.vulncheck.com
- VtlTemplateEngine.java at commit 560b3e4 github.com
- OSV entry CVE-2026-108598 osv.dev
Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 02:35.
Original description (NVD)
Floci 1.1.0 before 2.2.0 contains a code injection vulnerability in VtlTemplateEngine that allows unauthenticated attackers to execute commands via unrestricted Velocity mapping templates. Attackers can create a REST API with a MOCK integration whose template uses $util reflection to reach Runtime or ProcessBuilder, executing OS commands in the Floci JVM.
NVD references (7)
- https://github.com/floci-io/floci
- https://github.com/floci-io/floci/blob/560b3e4aae61cea3ac7d4d51843bdffd0e3085fd/src/main/java/io/github/hecto…
- https://github.com/floci-io/floci/commit/144b90e6fa861a5ac882e99a090d503da01945c4
- https://github.com/floci-io/floci/releases/tag/2.2.0
- https://github.com/floci-io/floci/security/advisories/GHSA-3p4c-wp7w-mgjx
- https://github.com/ghostx-86/exploitarium/tree/main/floci-apigateway-vtl-rce-poc
- https://www.vulncheck.com/advisories/floci-1.1.0-before-2.2.0-rce-via-api-gateway-vtl-mapping-templates
Sources
The tracker combines official, freely usable data sources – updated continuously:
- NVD (NIST) – CVEs, rating (CVSS), affected products
- CISA KEV – vulnerabilities confirmed by CISA as actively exploited
- CISA Vulnrichment – CISA assessment (SSVC) in the official CVE record
- FIRST EPSS – probability of exploitation
- Microsoft MSRC – Patch Tuesday: vulnerabilities, severity, updates
- PoC-in-GitHub – public proof-of-concept repositories
- Metasploit (Rapid7) – modules of the Metasploit Framework
- Exploit-DB (OffSec) – archive of public exploits (links only)
- Patch days: official vendor pages (linked per vendor) (Vendor patch days)
This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.
Affected? We can help.
We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.
