You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Constrain benchmark dataset and manifest paths to their roots #1903
Follow-up from the reviewed CodeRabbit deep scan (K24 K27 K48). This ticket tracks one distinct fix; duplicate scan rows are consolidated here.
Reviewed evidence and scope
K24 (scan ID d2a4b208-cab6-4e9f-bd3f-3cc7feea1828, review A, Low tooling): Dataset ID is joined into output path without containment. Validate benchmark IDs; no production service reachability established.
Source at current baseline: benchmarks/src/basic_memory_benchmarks/converters/longmemeval_to_corpus.py:129.
K27 (scan ID 8e4c54f0-d956-4ee3-aa8b-7d2bd00ec0f4, review D, Low tooling): Same unchecked benchmark group/path family as K48. Destination is an operator-selected provider, not a demonstrated Cloud cross-tenant attack.
Source at current baseline: benchmarks/src/basic_memory_benchmarks/providers/supermemory_local.py:90.
K48 (scan ID 240efc2b-3537-408e-b697-0898de63d05e, review A, Low tooling): Manifest group becomes copy source/destination fragment with no ancestry check. Same benchmark boundary as K24/K27; validate group IDs.
Source at current baseline: benchmarks/src/basic_memory_benchmarks/agent_tasks/driver.py:275.
Fix and validation
Constrain benchmark dataset and manifest paths to their roots.
Recheck current callers and supported behavior before choosing the smallest complete fix.
Add a bounded regression at the affected public or service boundary; demonstrate it fails without the fix.
Preserve legitimate inputs and tenant/project boundaries. Run focused tests plus repository static/type checks.
The scan/review establishes the code-level concern described above; it does not establish production exploitation. Conditional branches and local/tooling-only exposure must retain that scope.
Reviewed. This is benchmark tooling that only maintainers run on their own machines against their own data. The shared-/tmp and multi-user attacker conditions the scan assumes do not apply there, and no shipped package or hosted service reaches this code. Closing as not planned; we'll revisit if benchmarks ever run in a shared or hosted environment.
Activity
claude commentedon Oct 28, 2026
Claude finished @phernandez's task in 11s —— View job
Triage
Type: Bug (path-containment gap in benchmark tooling), labeled
bugandsecurityComponent: Testing / benchmarks (
benchmarks/). This is not Cloud behavior, so nocloudlabel.Priority: Low. The scan review rates it Low tooling. The affected code is local benchmark tooling and no production exposure was established.
Complexity: Simple. It needs ID/group validation or a resolved-path ancestry check at three call sites:
converters/longmemeval_to_corpus.py(dataset ID joined into the output path)providers/supermemory_local.py(group/path)agent_tasks/driver.py(manifest group used as a copy source/destination)Ideally these share one small helper, plus a regression test per boundary that fails without the fix.
Duplicates: A search for related benchmark path issues found none. K24, K27 and K48 are already consolidated here.
The issue is well specified, so I have no clarifying questions. This pass was triage only and I made no code changes.
phernandez commentedon Oct 29, 2026
Reviewed. This is benchmark tooling that only maintainers run on their own machines against their own data. The shared-/tmp and multi-user attacker conditions the scan assumes do not apply there, and no shipped package or hosted service reaches this code. Closing as not planned; we'll revisit if benchmarks ever run in a shared or hosted environment.