Flop remote code execution in pagination cursor decoding
Affects apps using flop with cursor-based pagination in versions before 0.26.7, 0.27.3, 0.28.1, or 0.29.2 on their respective branches. Fixed in 0.26.7, 0.27.3, 0.28.1, and 0.29.2.
- Exploited
- No known exploitation
- Fix
- Fixed in 0.26.7, 0.27.3, 0.28.1, 0.29.2
- Who is exposed
- Default setups
Summary
Flop, a woylie package, has a deserialization flaw in how it decodes pagination cursors, which can let a remote attacker run code on the server. The attacker does this by sending a crafted pagination cursor, without needing to log in.
Written by a model
Original description
Deserialization of Untrusted Data vulnerability in woylie flop allows a remote attacker to execute code on the server via a crafted pagination cursor.
Flop.Cursor.decode/2 in lib/flop/cursor.ex decodes the after and before parameters with :erlang.binary_to_term/2 in :safe mode. Its check rejects functions, PIDs, ports and references, but it accepts maps, and therefore structs of any module. Flop passes the decoded values to Ecto as query parameters. A cursor value that nests an Ecto.Query.DynamicExpr struct with a DBConnection.Stream struct as its binding fails the Ecto cast. Ecto then inspects the value for the error message, the Inspect implementation enumerates the stream, and DBConnection calls the module, function and arguments in the :log option of the stream.
This issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2.
Who should check
Teams running flop 0.8.0 to before 0.26.7, 0.27.x before 0.27.3, 0.28.x before 0.28.1, or 0.29.x before 0.29.2 that pass request parameters to Flop with cursor-based pagination on Ecto schemas.
“This issue affects flop: from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2.”
What to do
Check every install: default setups are affected.
Upgrade to a fixed version: 0.26.7, 0.27.3, 0.28.1, 0.29.2.
Workaround: Set the pagination_types option so that it excludes :first and :last, for example pagination_types: [:page, :offset]. This disables cursor-based pagination.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-130411 (Code execution through deserialization of pagination cursors in flop), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-130411 (entry last updated 2026-11-24):
Affected:
- Hex package flop: from 0.8.0, fixed in 0.26.7; from 0.27.0, fixed in 0.27.3; from 0.28.0, fixed in 0.28.1; from 0.29.0, fixed in 0.29.2
- woylie flop: version range not reported
Fixed versions: 0.26.7, 0.27.3, 0.28.1, 0.29.2.
Conditions (all must be true for the bug to be hit):
- Affects flop versions from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2. (source: https://cna.erlef.org/cves/CVE-2026-130411.html)
- The application passes request parameters to Flop (for example via Flop.validate_and_run/3) and permits cursor-based pagination. (source: https://www.cve.org/CVERecord?id=CVE-2026-130411)
- The demonstrated call chain needs ecto and db_connection in the application and an order_by field of the Ecto type :naive_datetime. (source: https://www.cve.org/CVERecord?id=CVE-2026-130411)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
Workaround: Set the pagination_types option so that it excludes :first and :last, for example pagination_types: [:page, :offset]. This disables cursor-based pagination. (source: https://cna.erlef.org/cves/CVE-2026-130411.html)
CISA KEV: CVE-2026-130411 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-130411 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Hex): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/woylie/flop/commit/6382b932ce85872b5dcce78e45731dc9ce3be438
- https://github.com/woylie/flop/commit/82e9399a9db6798bbb3bc976969e5aa0f3b0f7a7
- https://github.com/woylie/flop/commit/93fabace5c9cc419fc638d657828feec71b6a6ab
- https://github.com/woylie/flop/commit/bfd9ee23db39b9df6233d085606c19b27b586100
- https://cna.erlef.org/cves/CVE-2026-130411.html
- https://osv.dev/vulnerability/EEF-CVE-2026-130411
- https://github.com/woylie/flop/commit/4535794baa135c8cccca7bb1ada4b64c91afc81d
- https://www.cve.org/CVERecord?id=CVE-2026-130411
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-130411
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-130411"}.Affected versions
- flopFrom 0.8.0 · fixed in 0.26.7; From 0.27.0 · fixed in 0.27.3; From 0.28.0 · fixed in 0.28.1; From 0.29.0 · fixed in 0.29.2
- woylie/flopVersion range not reported
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure22/25Default setups, reachable over the network without a login
- Reach10/20Affects Hex packages
- Severity9.2/10CVSS 9.2
- No patch0/5No signal
What would change the score
- Would score about 81 if added to CISA KEV
- Would score about 76 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
Evidence 9
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-130411 |
| Record | NVD · CVE-2026-130411 |
| Other links 7 | |
| Patch | GitHub · woylie/flop · Commit 6382b932 |
| Patch | GitHub · woylie/flop · Commit 82e9399a |
| Patch | GitHub · woylie/flop · Commit 93fabace |
| Patch | GitHub · woylie/flop · Commit bfd9ee23 |
| Repository | GitHub · woylie/flop · Commit 4535794b |
| Link | cna.erlef.org · cves/CVE-2026-130411.html |
| Link | osv.dev · vulnerability/EEF-CVE-2026-130411 |
Questions about CVE-2026-130411
Is CVE-2026-130411 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Flop deserializes pagination cursors taken from request parameters, and a crafted pagination cursor can make the server execute code. The advisory describes this as a remote attacker executing code on the server running the application.
Source: cna.erlef.org, cve.org
Which versions are affected by CVE-2026-130411?
flop (Hex): from 0.8.0 before 0.26.7; from 0.27.0 before 0.27.3; from 0.28.0 before 0.28.1; from 0.29.0 before 0.29.2.
Source: cve.now feed data
Am I affected, and how do I check?
Affected versions are flop from 0.8.0 before 0.26.7, from 0.27.0 before 0.27.3, from 0.28.0 before 0.28.1, and from 0.29.0 before 0.29.2. The application must pass request parameters to Flop, for example with Flop.validate_and_run/3, and permit cursor-based pagination. The demonstrated call chain also needs ecto and db_connection in the application and an order_by field of the Ecto type :naive_datetime, so check the flop version in mix.lock and the pagination_types setting.
Source: cna.erlef.org, cve.org
How do I fix CVE-2026-130411?
Upgrade flop to the fixed version on the same release line: 0.26.7, 0.27.3, 0.28.1, or 0.29.2. The vendor names no other patch or recommended version for this issue.
Source: cna.erlef.org, cve.org
Related
- CVE-2026-66353Doggo vulnerable to cross-site scripting via unescaped date field values
- CVE-2026-129514Unauthenticated remote code execution through struct values in Erlang term request bodies
- CVE-2026-134019PyTables: Remote code execution via auto-unpickled HDF5 attributes
- CVE-2026-131754WordPress APCu Manager plugin <= 4.6.1 - PHP Object Injection vulnerability
- CVE-2026-132726Echo: legacy event_extra goes to unserialize() with no class limit; a vendor class turns it into PHP code execution in the job runner
- CVE-2026-124283Code execution and SQL injection via struct-wrapped values in a forged keyset pagination cursor in Ash
No corrections so far. Something wrong on this page? Report an error.