/

CVE-2026-124509

Severity:

HIGH RISK

(7.3)

Path Traversal (CWE-22) in Floci S3 Destination Handler

CVE-2026-124509

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Potential access to or manipulation of files outside the intended path

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Floci's S3 destination configuration handler has a path traversal vulnerability involving the BucketARN argument. If a remotely supplied value reaches the affected bucket-name processing without adequate validation, an attacker may cause paths to resolve outside their intended location.

Affected context

The issue is in Floci's S3 Destination Configuration Handler, specifically the S3Destination.bucketName function in services/firehose/model/DeliveryStreamDescription.java. It may be present when a deployment exposes the affected processing path to remote input and accepts a BucketARN value that is not safely constrained.

Exploit preconditions

  • Attack surface: A remotely reachable Floci component that processes S3 destination configuration
  • Required access: The ability to submit or influence a BucketARN value; authentication requirements depend on deployment controls
  • Trigger point: Processing the value in S3Destination.bucketName
  • Why exploitation is possible: Insufficient path validation may allow traversal beyond the intended location

Why this happens

The underlying issue is improper limitation of a path to a restricted directory, categorized as CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The vulnerable pattern occurs when externally influenced path-related input is used without reliably normalizing and constraining the resulting path to its intended base.

Potential impact

  • An attacker may access files outside the intended location, depending on how the resulting path is used.
  • An attacker could potentially cause unintended file operations if the affected path is used for writing or other changes.
  • Application behavior or data integrity may be affected if sensitive paths are reachable.

General mitigation guidance

Defensive approaches generally focus on treating path-related input as untrusted and ensuring resolved paths remain within an explicitly allowed base.

  • Prefer structured identifiers over accepting user-controlled filesystem paths.
  • Normalize and validate paths, then verify containment within the intended directory.
  • Apply allowlists and reject unexpected path components or formats.
  • Limit the service's filesystem permissions and access to sensitive locations.
  • Keep configuration and destination-handling logic constrained by secure defaults.

How teams detect issues like this

  • Use static analysis to identify externally influenced values flowing into path construction or file APIs without containment checks.
  • During code review, inspect BucketARN handling and confirm that validation occurs before any path-dependent operation.
  • Add tests and policy checks for traversal-like input and paths that resolve outside approved locations.
  • Review access logs and application errors for unusual destination values or unexpected file access.

Sources

SourceLink
github.comgithub.com/floci-io/floci/
github.comgithub.com/floci-io/floci/commit/b986b95074ef524019be7af51e1df172e48faa4b
github.comgithub.com/floci-io/floci/issues/4281
github.comgithub.com/floci-io/floci/pull/4289
github.comgithub.com/floci-io/floci/releases/tag/2.2.0
vuldb.comvuldb.com/cve/CVE-2026-124509
vuldb.comvuldb.com/submit/1035485
vuldb.comvuldb.com/vuln/432813
vuldb.comvuldb.com/vuln/432813/cti

Frequently asked

questions

The reported attack surface is remote. Exploitability in a particular deployment depends on whether an attacker can reach the affected handler and influence BucketARN.

The available description does not specify authentication requirements. Access depends on the deployment's network exposure and authorization controls.

Treat destination-related input as untrusted, constrain resolved paths to an approved base, and avoid using arbitrary user-provided paths.

Combine input allowlisting and path-containment checks with least-privilege filesystem access, code review, and automated testing for path traversal cases.

Find out what's already
exploitable in your codebase.