Skip to content

[uk-ai-resilience] Tier B: ZIP log extraction lacks total size/entry limits (code scanning 1062) #74889

Done

Description

@github-actions

Tier B, remediation priority: medium (SLA: medium)

Location: pkg/cli/logs_download_zip.go (~line 37), code scanning alert 1062 (CWE-409).

Each entry is capped at 1GB but total uncompressed bytes and entry count are unbounded, so a multi-entry archive can exhaust disk/CPU when logs are downloaded.

Risk scores (1-5): exposure 3, patchability 1, detectability 3, fragility 2, ownership confidence 2.

Remediation: add cumulative byte and entry-count caps with a clear error; add a unit test with a multi-entry archive.

Discussion report: see the "[uk-ai-resilience] Recent-changes risk & resilience report 2026-11-04" discussion in this repository.

Generated by UK AI Operational Resilience · copilot · auto · ~21 AIC · ⌖ ~1 AIC · ⊞ 8.6K · ◷

Activity

  1. github-actions commented on Nov 4, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 12.9K · ◷

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

Metadata

Metadata

Labels

ai-generatedcookiehigh-prioritysecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions