Floci API Gateway VTL template injection enables unauthenticated remote code execution

CVE-2026-108598 — Floci API Gateway VTL template injection enables unauthenticated remote code execution; Critical severity, CVSS 9.3

CVE-2026-108598 describes a critical code-injection vulnerability in Floci's API Gateway VTL rendering. An attacker who can reach the Floci HTTP service may place a malicious mapping template and cause the Floci JVM to execute operating-system commands without authentication or user interaction. The supplied sources contain a version-range conflict: the official CVE record marks version 1.1.0 through versions before 2.2.0 as affected, while the vendor advisory describes versions through 1.5.28 as affected and initially lists no patched version. The vendor's 2.2.0 release notes and security-related commit document sandboxing changes that address the vulnerable behavior. This article reflects the evidence available as of October 10, 2026. [1] [2] [3] [4]

Quick facts

Severity
The official record rates the issue Critical, with CVSS 4.0 score 9.3 and CVSS 3.1 score 9.8. The vector describes network access, low attack complexity, no privileges, no user interaction, and high confidentiality, integrity and availability impact. [1]
Affected product
The affected product is floci-io/floci, an AWS-compatible local emulator whose services are commonly exposed through port 4566. [1] [5]
Vulnerable feature
The issue resides in API Gateway VTL mapping-template evaluation. The vulnerable implementation creates a standard Apache Velocity engine without the reflection restrictions needed to prevent access to Java classes and process-execution APIs. [1] [2] [6]
Attack prerequisites
The attacker must be able to reach the Floci HTTP endpoint and use the API Gateway surface to create or modify resources and integration responses. The supplied vendor advisory describes the path as unauthenticated in the affected configuration. [2]
Potential impact
Successful exploitation can execute commands with the privileges of the Floci JVM, potentially exposing or modifying files, credentials, emulator state and other resources available to that process. This impact description is based on the documented process-execution primitive, not evidence of exploitation in the wild. [1] [2] [7]
Fix evidence
Floci 2.2.0 release notes list sandboxing VTL rendering with SecureUberspector and execution limits as a bug fix. The associated commit documents reflection restrictions, output limits and execution-time controls. [3] [4]
Exploitation status
A public proof-of-concept repository is listed in the official record, and the retrieved research material describes local validation. Neither source establishes exploitation against production systems or exploitation in the wild. [1] [7]

What happened

Floci evaluates API Gateway mapping templates with Apache Velocity. In the vulnerable implementation, attacker-controlled templates are rendered by a default Velocity engine, while helper objects such as $util remain available. The implementation also exposes methods and classes that make Java reflection reachable from the template language. That combination turns a feature intended to transform request and response data into a path toward arbitrary code execution. [2] [6]

The issue is classified as CWE-94, Improper Control of Generation of Code. The practical security boundary is not merely the API Gateway route itself; it is the template evaluator running inside the Floci JVM. [1] [2]

Impact and prerequisites

The documented attack path requires network reachability to Floci and access to the API Gateway control-plane operations needed to create or update an API, configure a MOCK integration, store an integration response template, deploy it, and invoke the resulting route. The vendor advisory states that no authentication or user interaction is required for the described vulnerable deployment. [2]

If exploitation succeeds, commands run with the privileges of the Floci process. The consequences therefore depend on how Floci is deployed: a tightly isolated development container presents a different blast radius from a process with host mounts, cloud credentials, Docker access or broad filesystem permissions. These environmental consequences are operational inferences from the documented process-execution behavior, not a vendor-tested exploit scenario. [2] [7]

Affected and fixed versions

The official CVE record marks version 1.1.0 through versions before 2.2.0 as affected, preserving the lower bound rather than implying that only the latest 1.x release is vulnerable. The vendor advisory instead states that versions through 1.5.28 are affected and lists no patched version. This discrepancy should be resolved by treating versions below 2.2.0 as requiring review unless the vendor confirms otherwise. [1] [2]

Floci 2.2.0 release notes identify a fix for API Gateway and AppSync VTL sandboxing. The related commit describes SecureUberspector-based reflection restrictions, blocked sensitive classes and packages, and loop, output-size and execution-time limits. These sources support upgrading to 2.2.0 or later, but they do not independently prove that every later build is unaffected beyond the documented change. [3] [4]

Defensive next steps

Identify every Floci deployment and determine its exact version, exposed interfaces and API Gateway availability. Prioritize instances reachable from untrusted networks or shared development environments. Upgrade to Floci 2.2.0 or a later vendor-supported release after validating compatibility, and review release notes for any subsequent security corrections. [3] [4]

General operational considerations, not a vendor-provided workaround or tested fix: restrict port 4566 to trusted hosts or networks, avoid mounting sensitive host paths or credentials into the emulator, run the process with minimal privileges, and review logs for unexpected API Gateway resource creation, integration-template changes or unusual child processes. These measures reduce exposure but should not be treated as substitutes for upgrading. [2] [5]

Disclosure and research context

The CVE record credits Muhammad Ali, Hasan Anwar and Wael-Rd as finders and lists a vendor advisory, technical source reference, patch commit, release notes and public proof-of-concept repository. The retrieved research material reports local end-to-end validation, but a proof of concept and local validation are not evidence that exploitation has occurred in the wild. [1] [2] [7]

Public discussion

No relevant X post with retrievable content was found in this research pass. This does not establish that no discussion exists.

Questions and answers

Am I affected?

You should treat the deployment as potentially affected if it runs Floci in the official affected range, particularly any version below 2.2.0, and exposes the HTTP endpoint to untrusted or insufficiently isolated users. Because the official record and vendor advisory differ on the upper affected version, confirm the exact release and consult the vendor's current security guidance. [1] [2]

What should I do first?

Restrict network access to the Floci endpoint, inventory versions and deployments, and prioritize an upgrade to 2.2.0 or later. Also review whether the Floci process can access sensitive host files, credentials, Docker sockets or other shared services. [3] [4] [5]

Is a fix available?

Evidence supports a security-relevant fix in Floci 2.2.0: the release notes and associated commit describe VTL reflection sandboxing and execution limits. The vendor advisory text supplied here is inconsistent because it lists no patched version, so confirm the applicable package or container release before treating an installation as remediated. [2] [3] [4]

What is known about exploitation?

A public proof-of-concept repository is referenced, and the retrieved research page describes local validation of the RCE path. The supplied evidence does not establish exploitation in the wild, attacks against production systems or inclusion in an exploitation catalog. Absence of such evidence should be read as unknown, not proof that exploitation has not occurred. [1] [7]

Does authentication prevent the issue?

The vendor advisory describes the vulnerable path as unauthenticated in the affected configuration. Consequently, do not rely on application authentication as the sole mitigation; network isolation, least privilege and upgrading remain important. [2]

What remains uncertain

  • No retrieved x.com or twitter.com post with a verifiable status permalink and visible author was found for this exact CVE, so no social commentary is included.
  • The official CVE record and vendor advisory disagree on the affected-version range and patched-version status.
  • The supplied material does not provide independent confirmation of exploitation in the wild, production targeting or downstream distribution-specific exposure.
  • No independently retrieved NVD or CISA material was supplied in the source catalog, so claims are limited to the official record, vendor repository and retrieved research materials.

Research sources

  1. Official CVE record CVE-2026-108598
  2. Unauthenticated RCE via VTL $util reflection · Advisory · floci-io/floci · GitHub
  3. fix(apigateway,appsync): sandbox VTL rendering with SecureUberspector and execution limits (#3542)
  4. 2.2.0
  5. GitHub - floci-io/floci: Light, fluffy, and always free - The AWS Local Emulator alternative · GitHub
  6. github.com
  7. exploitarium/floci-apigateway-vtl-rce-poc at main · ghostx-86/exploitarium · GitHub

Description

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.

Severity (CVSS)

Base score9.3
SeverityCritical
VersionCVSS 4.0
VectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Provided byCNA

Weaknesses

  • CWE-94 — Improper Control of Generation of Code ('Code Injection')

Affected products

VendorProductVersions
floci-iofloci1.1.0 to <2.2.0 [affected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 12 Oct 2026 10:15 UTC.