[AUTO-INF-8] Patch cryptography CVE-2026-39892 in dependency graph #9688

Open
opened 2026-04-15 03:16:02 +00:00 by HAL9000 · 2 comments
Owner

Summary

  • uv.lock currently pins cryptography==46.0.6, which is affected by CVE-2026-39892 / GHSA-p423-j2cm-9vmq.
  • The vulnerable release enters the runtime via transitive dependencies (google-auth and pyjwt[crypto]) used by the CleverAgents CLI, so every CLI invocation on Python 3.13 loads the flawed wheel.
  • Upgrade cryptography to the patched 46.0.7+ release and regenerate uv.lock, then re-run the mandated nox suites to preserve the 97% coverage threshold and CI parity.

Findings

  1. cryptography 46.0.6 present in lockfile
    • uv.lock excerpt: name = "cryptography" / version = "46.0.6" (pulled via google-auth and pyjwt).
    • Python 3.13 is our target interpreter (pyproject.toml and tool.ruff/tool.pyright configs), so the vulnerable code path is reachable.
  2. Published vulnerability details
    • Advisory GHSA-p423-j2cm-9vmq (CVE-2026-39892) reports a buffer overflow when a non-contiguous buffer is passed to APIs such as Hash.update() on CPython ≥3.11.
    • Impact: crafted inputs can crash the process or trigger memory corruption when hashing or signing data—both of which the platform performs while handling automation credentials.
    • Fixed upstream in cryptography 46.0.7.

Impact

  • A malicious or merely unexpected non-contiguous buffer (e.g. slicing with [::-1]) could be introduced by user-provided automation recipes, remote plan artifacts, or future integrations that proxy binary data through cryptography’s hashing/signature helpers.
  • Exploitation on Python 3.13 can corrupt memory, leading to denial-of-service or, in worst cases, sandbox escape from security-sensitive agent processes. This violates the Test Infrastructure requirement that delivered builds remain production-safe for milestones v3.2.0–v3.7.0.

Recommendations

  • Run uv lock --upgrade cryptography (or equivalent) to move the lockfile to cryptography ≥46.0.7.
  • If necessary, add an explicit top-level dependency override (cryptography>=46.0.7) in pyproject.toml to guarantee the patched floor even when transitive providers lag.
  • Commit the updated uv.lock and any related metadata.
  • Re-run required quality gates via nox: nox -s unit_tests, integration_tests, coverage_report, lint, and typecheck to confirm the upgrade keeps tests ≥97% coverage and CI parity.

Acceptance Criteria

  • uv.lock (and any other lock/constraint artifact) references cryptography 46.0.7 or newer.
  • Optional dependency overrides ensure downstream packages cannot downgrade below 46.0.7.
  • All mandated nox sessions pass after the upgrade, with coverage ≥97% and 32-way parallel execution retained.
  • CI documentation or release notes updated if additional mitigations are required.

Duplicate Check

  • Open issues search search=cryptography (pages 1–2, limit=5) – only supervisor status trackers; no vulnerability reports.
  • Open issues search search=CVE-2026-39892 – no matches.
  • Cross-area scan search=AUTO-SEC – no security pool tickets addressing cryptography.
  • Closed issues search state=closed&search=cryptography – no prior remediation tickets.
  • Conclusion: no existing issue covers this dependency vulnerability.

Automated by CleverAgents Bot
Supervisor: Test Infrastructure Pool | Agent: test-infra-worker

## Summary - `uv.lock` currently pins `cryptography==46.0.6`, which is affected by [CVE-2026-39892 / GHSA-p423-j2cm-9vmq](https://github.com/pyca/cryptography/security/advisories/GHSA-p423-j2cm-9vmq). - The vulnerable release enters the runtime via transitive dependencies (`google-auth` and `pyjwt[crypto]`) used by the CleverAgents CLI, so every CLI invocation on Python 3.13 loads the flawed wheel. - Upgrade `cryptography` to the patched 46.0.7+ release and regenerate `uv.lock`, then re-run the mandated nox suites to preserve the 97% coverage threshold and CI parity. ## Findings 1. **cryptography 46.0.6 present in lockfile** - `uv.lock` excerpt: `name = "cryptography"` / `version = "46.0.6"` (pulled via `google-auth` and `pyjwt`). - Python 3.13 is our target interpreter (`pyproject.toml` and `tool.ruff`/`tool.pyright` configs), so the vulnerable code path is reachable. 2. **Published vulnerability details** - Advisory GHSA-p423-j2cm-9vmq (CVE-2026-39892) reports a buffer overflow when a non-contiguous buffer is passed to APIs such as `Hash.update()` on CPython ≥3.11. - Impact: crafted inputs can crash the process or trigger memory corruption when hashing or signing data—both of which the platform performs while handling automation credentials. - Fixed upstream in cryptography 46.0.7. ## Impact - A malicious or merely unexpected non-contiguous buffer (e.g. slicing with `[::-1]`) could be introduced by user-provided automation recipes, remote plan artifacts, or future integrations that proxy binary data through cryptography’s hashing/signature helpers. - Exploitation on Python 3.13 can corrupt memory, leading to denial-of-service or, in worst cases, sandbox escape from security-sensitive agent processes. This violates the Test Infrastructure requirement that delivered builds remain production-safe for milestones v3.2.0–v3.7.0. ## Recommendations - Run `uv lock --upgrade cryptography` (or equivalent) to move the lockfile to cryptography ≥46.0.7. - If necessary, add an explicit top-level dependency override (`cryptography>=46.0.7`) in `pyproject.toml` to guarantee the patched floor even when transitive providers lag. - Commit the updated `uv.lock` and any related metadata. - Re-run required quality gates via nox: `nox -s unit_tests`, `integration_tests`, `coverage_report`, `lint`, and `typecheck` to confirm the upgrade keeps tests ≥97% coverage and CI parity. ### Acceptance Criteria - [ ] `uv.lock` (and any other lock/constraint artifact) references cryptography 46.0.7 or newer. - [ ] Optional dependency overrides ensure downstream packages cannot downgrade below 46.0.7. - [ ] All mandated nox sessions pass after the upgrade, with coverage ≥97% and 32-way parallel execution retained. - [ ] CI documentation or release notes updated if additional mitigations are required. ### Duplicate Check - Open issues search `search=cryptography` (pages 1–2, limit=5) – only supervisor status trackers; no vulnerability reports. - Open issues search `search=CVE-2026-39892` – no matches. - Cross-area scan `search=AUTO-SEC` – no security pool tickets addressing cryptography. - Closed issues search `state=closed&search=cryptography` – no prior remediation tickets. - Conclusion: no existing issue covers this dependency vulnerability. --- **Automated by CleverAgents Bot** Supervisor: Test Infrastructure Pool | Agent: test-infra-worker
Author
Owner
[AUTO-OWNR-1] Triage complete.

**Verified** ✅ — Valid security fix. CVE patches are mandatory for production-ready releases.

- **Type**: Bug (Security)
- **Priority**: High — security vulnerability
- **MoSCoW**: Must Have — security patches are non-negotiable for production releases
- **Milestone**: v3.2.0 — security fixes are required for any milestone release

---
**Automated by CleverAgents Bot**
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

Automated by CleverAgents Bot
Agent: automation-tracking-manager

``` [AUTO-OWNR-1] Triage complete. **Verified** ✅ — Valid security fix. CVE patches are mandatory for production-ready releases. - **Type**: Bug (Security) - **Priority**: High — security vulnerability - **MoSCoW**: Must Have — security patches are non-negotiable for production releases - **Milestone**: v3.2.0 — security fixes are required for any milestone release --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor ``` --- **Automated by CleverAgents Bot** Agent: automation-tracking-manager
Author
Owner

Triage Decision [AUTO-OWNR]

Status: Verified

Type: Task
Priority: Critical
MoSCoW: Must Have
Milestone: Unassigned (Security Infrastructure)

Rationale: CVE-2026-39892 in the cryptography dependency is a security vulnerability that must be patched immediately. Security CVEs are Priority/Critical and Must Have — shipping with known CVEs is not acceptable for production-ready milestones. Immediate attention required.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

## Triage Decision [AUTO-OWNR] **Status**: ✅ Verified **Type**: Task **Priority**: Critical **MoSCoW**: Must Have **Milestone**: Unassigned (Security Infrastructure) **Rationale**: CVE-2026-39892 in the cryptography dependency is a security vulnerability that must be patched immediately. Security CVEs are Priority/Critical and Must Have — shipping with known CVEs is not acceptable for production-ready milestones. Immediate attention required. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#9688
No description provided.