Skip to content

[BUG][Medium]- Constraint expressions can request unbounded allocations #99

Open

Description

@arthurianresolve

Summary

An artifact can include a compact constraint expression. When validation reaches the constrained field, the expression is evaluated by MiniJinja without an application resource budget. An expression that requests a very large string or collection can exhaust host memory even though the artifact needs no network or file capability. This requires a host to load and evaluate a lower trust artifact.

Affected code

Suggested resolution

  • Bound expression evaluation by time and allocation, or restrict the expression language to operations with predictable cost.
  • Reject or fail safely on values and intermediate results that exceed the configured budget.

Acceptance criteria

  • A small expression cannot cause unbounded host allocation during validation.
  • Ordinary bounded constraints still evaluate successfully.

Related issues

#44 proposes more expressive constraints and feedback. This ticket concerns resource limits for the current constraint evaluator.

Validation performed

Static source review of upstream main at 72b247e2bddc7337f923461fb27b4127c7d104f3. No runtime exploit or deployed service test was performed.

Tracking

  • Finding ID: csf_876612d69fe3d64961dc180e
  • Fingerprint: codex-security/v1:sha256:e5bc096b71d6f9152f3b64d88a1a77f1359b66aaadc871b65e6013e150ad0ecf

AI disclosure

OpenAI Codex assisted with the static source review and organization of this issue. No code change is included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions