CVE Index中文
L3 · ShartedElixir · Flop · Ecto · Deserialization · RCEflop-cursor-struct-rce

Flop fixes remote code execution through forged pagination cursors in four release lines

Flop can decode a client pagination cursor into forged structs that execute a callback during Ecto error formatting. Fixed releases are 0.26.7, 0.27.3, 0.28.1 and 0.29.2. Upgrade the applicable line, or disable cursor pagination; public PoC does not establish real-world Flop exploitation.

Disclosed
Nov 24, 2026
Public disclosure date
Severity
CVSS 9.2
1 CVE tracked here
Splash zone
Flop apps passing client parameters to cursor pagination; the demonstrated path uses Ecto, DBConnection and :naive_datetime sorting
elixir
In the wild
Unknown
CNA publishes a PoC; it does not confirm attacks against Flop applications.

What happened

Flop disclosed CVE-2026-130411 on November 24, 2026. The CNA publishes a proof of concept and rates it CVSS 4.0 9.2. We rate it L3 for a demonstrated execution path in an application library; no Flop victim count or real-world exploitation is confirmed by these sources.

Exposure requires an application to accept request parameters for cursor pagination, which Flop permits by default. The demonstrated route uses Flop.validate_and_run!, a schema sorted on an Ecto :naive_datetime field, and Ecto/DBConnection in the application. The attacker-controlled module and function atoms must already exist in the VM. This is not a claim that every Ecto query or all Elixir installations are remotely exploitable.

The :safe option to Erlang term decoding rejects several dangerous term types but still permits maps impersonating structs. A forged DateTime with a nested struct in its year field survives the initial cast. A later Ecto cast fails; error formatting inspects the value and reaches protocol implementations in Ecto and DBConnection. Those callbacks can run an attacker-selected function before the request reports its error. The published PoC prints a marker; the CNA describes the broader code-execution impact with application process privileges.

Install 0.26.7, 0.27.3, 0.28.1 or 0.29.2, matching the affected range. The earliest vulnerable release listed is 0.8.0. The fix rejects struct-bearing cursors and encodes supported date/time and decimal values as strings, with other structs converted to maps. Review custom cursor types and how clients recover from invalidated old cursors. If an update must wait, exclude both :first and :last from pagination_types to disable cursor pagination at the server.

This is separate from Ash’s unsigned keyset issue and the Hex registry intrusion. A shared DBConnection gadget does not prove the Hex attacker exploited Flop. The downstream callback is only one layer: rejecting untrusted structs at the application’s decoding boundary remains necessary.

What’s in the bowl

Unsafe struct decoding in pagination cursors

A forged DateTime nested in an after/before cursor can reach Inspect/Enumerable dispatch and an attacker-selected callback during a failed Ecto cast. CNA CVSS 4.0 9.2 requires the application path.

Fixed versions

ProductSafe fromNote
Flop >=0.8.0 and <0.26.70.26.7Upgrade this range
Flop 0.27.x0.27.3Patched
Flop 0.28.x0.28.1Patched
Flop 0.29.x0.29.2Patched

Crime-scene timeline

  1. Nov 24, 2026

    Flop publishes four patched releases and the CNA disclosure

    Hex records publication of 0.29.2, 0.28.1, 0.27.3 and 0.26.7 between 14:51:06 and 14:56:12 UTC. The patch rejects struct-bearing cursors and changes how supported values are encoded.

Who said what

We list each claim and who made it. Primary sources (the vendor, the researcher, the registry) are marked. Where reports disagree, we grade by the worst credible case.

  • EEF CNA Flop advisoryPrimaryFour affected ranges and fixes, demonstration prerequisites, public PoC and pagination_types workaround.
  • Flop cursor fixPrimaryRejects structs on decode and converts structs to plain representations on encode.
  • Hex Flop release metadataPrimaryConfirms all four fixed releases were published on November 24, 2026.