Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108598 Overview
CVE-2026-108598 is a code injection vulnerability [CWE-94] in Floci versions 1.1.0 through 2.1.x. The flaw resides in the VtlTemplateEngine component used by the API Gateway emulator. Floci processes Apache Velocity Template Language (VTL) mapping templates without sandboxing, allowing attackers to invoke Java reflection through the $util context object. Unauthenticated attackers can create a REST API with a MOCK integration whose template reaches java.lang.Runtime or java.lang.ProcessBuilder, executing arbitrary operating system commands inside the Floci JVM process.
Critical Impact
Unauthenticated remote attackers can achieve arbitrary command execution on the host running Floci, resulting in full compromise of the service and any data or credentials accessible to the JVM.
Affected Products
- Floci 1.1.0 through 2.1.x (fixed in 2.2.0)
- Floci API Gateway emulator component (VtlTemplateEngine)
- Floci AppSync emulator VTL rendering path
Discovery Timeline
- 2026-10-10 - CVE-2026-108598 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
- Floci maintainers released version 2.2.0 with the 144b90e sandboxing commit
Technical Details for CVE-2026-108598
Vulnerability Analysis
Floci is an open-source emulator for AWS services. Its API Gateway emulator renders VTL mapping templates to transform requests between the REST front end and backend integrations. The VtlTemplateEngine class instantiates Apache Velocity without a secure uberspector, leaving the full Java reflection surface reachable through template context variables. Because the API Gateway emulator accepts unauthenticated requests to create resources and integrations by default, any network-reachable attacker can define a MOCK integration whose request or response template contains Velocity expressions that resolve to arbitrary Java method calls.
Successful exploitation yields command execution in the context of the Floci process. Attackers can read local files, pivot into connected cloud credentials, or install persistence. The CWE-94 classification reflects the direct interpretation of attacker-supplied template content as executable code.
Root Cause
The root cause is unrestricted Velocity rendering. The pre-patch VtlTemplateEngine did not configure a SecureUberspector, did not cap output size, did not bound #foreach iterations, and did not enforce a wall-clock timeout. A $util helper exposed in the template context permitted reflective access to Class.forName, which in turn exposed Runtime.getRuntime().exec() and ProcessBuilder.start().
Attack Vector
The attack is remote and unauthenticated over the network. An attacker issues HTTP requests to the Floci API Gateway emulator to create a REST API, attach a MOCK integration, and supply a VTL mapping template that reflects into Runtime to execute an OS command. Invoking the API triggers template rendering and command execution. A public proof of concept is published in the Exploitarium PoC Repository.
The following snippet from the official fix shows the configuration surface added to bound VTL execution:
interface ApiGatewayServiceConfig {
@WithDefault("true")
boolean enabled();
/** Maximum #foreach loop iterations allowed in a single VTL mapping template render, as a
* hard backstop against runaway loops. Env: FLOCI_SERVICES_APIGATEWAY_VTL_MAX_LOOPS */
@WithDefault("10000")
int vtlMaxLoops();
/** Maximum rendered output size, in characters, for a single VTL mapping template render.
* Env: FLOCI_SERVICES_APIGATEWAY_VTL_MAX_OUTPUT_CHARS */
@WithDefault("1048576")
int vtlMaxOutputChars();
/** Wall-clock execution budget, in milliseconds, for a single VTL mapping template render.
* Env: FLOCI_SERVICES_APIGATEWAY_VTL_TIMEOUT_MILLIS */
@WithDefault("5000")
long vtlTimeoutMillis();
}
Source: Floci Commit 144b90e
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-108598
Indicators of Compromise
- Unexpected child processes spawned by the Floci JVM, especially /bin/sh, bash, cmd.exe, curl, or wget descendants.
- Floci API Gateway REST APIs or MOCK integrations created from untrusted sources, particularly containing $util, Class.forName, Runtime, or ProcessBuilder strings in mapping templates.
- Outbound network connections from the Floci host to attacker-controlled infrastructure shortly after an API invocation.
- Floci log entries showing VTL rendering errors referencing reflective calls or exceeding the new vtlMaxLoops, vtlMaxOutputChars, or vtlTimeoutMillis thresholds.
Detection Strategies
- Inspect stored API Gateway configurations for mapping templates referencing Runtime, ProcessBuilder, exec, getClass, or forName.
- Alert on process-ancestry chains where the Floci Java process spawns shells or networking utilities.
- Monitor HTTP traffic to the Floci control plane for anonymous POST requests that create APIs or integrations.
Monitoring Recommendations
- Enable verbose logging on the API Gateway emulator and forward logs to a central analytics platform.
- Baseline normal Floci child-process behavior so anomalous exec activity is flagged.
- Correlate newly created REST APIs with the identity, source IP, and session that created them.
How to Mitigate CVE-2026-108598
Immediate Actions Required
- Upgrade Floci to version 2.2.0 or later, which introduces SecureUberspector, bounded writers, loop caps, and execution deadlines.
- Restrict network exposure of the Floci API Gateway emulator to trusted developer networks only; do not expose it to the public internet.
- Audit existing REST APIs, integrations, and VTL mapping templates for reflective expressions and remove any that cannot be attributed to a legitimate change.
- Rotate any cloud credentials, API keys, or secrets that were accessible to the Floci JVM process.
Patch Information
The fix is delivered in Floci Release 2.2.0 via commit 144b90e. The patch sandboxes VTL rendering with SecureUberspector, wraps output in a BoundedWriter that enforces a character budget, caps #foreach iterations, and enforces a wall-clock timeout. Review the GitHub Security Advisory GHSA-3p4c-wp7w-mgjx and the VulnCheck Floci RCE Advisory for additional guidance.
Workarounds
- Block all inbound access to the Floci API Gateway emulator port using host or network firewall rules until the upgrade is applied.
- Run Floci under a dedicated, low-privilege operating system account with no access to production credentials.
- Isolate Floci in an ephemeral container or virtual machine so successful exploitation cannot pivot into other systems.
# Tune the new VTL sandbox limits introduced in Floci 2.2.0
export FLOCI_SERVICES_APIGATEWAY_VTL_MAX_LOOPS=10000
export FLOCI_SERVICES_APIGATEWAY_VTL_MAX_OUTPUT_CHARS=1048576
export FLOCI_SERVICES_APIGATEWAY_VTL_TIMEOUT_MILLIS=5000
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

