Skip to content

fix(cve): CVE-2026-7246 - Document and fix command string sanitizing with - #3

Merged
Zeno-sole merged 2 commits into
masterfrom
fix-cve/CVE-2026-7246
Jul 27, 2026
Merged

fix(cve): CVE-2026-7246 - Document and fix command string sanitizing with#3
Zeno-sole merged 2 commits into
masterfrom
fix-cve/CVE-2026-7246

Conversation

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

CVE: CVE-2026-7246 (high) - Pallets Click, versions 8.3.2 and below, contain a command injection vulnerability in the click.edit() function, allowing attackers to pass arbitrary OS commands from an unprivileged account.
Upstream: pallets/click@b96c260

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: qwen3.6-35b

…with

CVE: CVE-2026-7246 (high) - Pallets Click, versions 8.3.2 and below, contain a command injection vulnerability in the click.edit() function, allowing attackers to pass arbitrary OS commands from an unprivileged account.
Upstream: pallets/click@b96c260

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: qwen3.6-35b
@github-actions

Copy link
Copy Markdown

TAG Bot

TAG: 8.1.6-1deepin1
EXISTED: no
DISTRIBUTION: unstable

The CVE-2026-7246 patch moved shlex, shutil, and subprocess imports to
module level in _termui_impl.py but omitted tempfile. The _tempfilepager
function uses tempfile.mkstemp() with its local import removed, causing
a NameError when called directly (e.g. in test_pager_uses_list_args).
Add `import tempfile` to the module-level imports to fix the build failure.

Log: Fix NameError by adding missing tempfile module-level import

Influence:
1. Run test_pager_uses_list_args to verify _tempfilepager works
2. Run full test_termui.py suite to check for regressions
3. Verify package builds successfully with dpkg-buildpackage
4. Confirm CVE-2026-7246 shell injection fix remains intact

fix: 修复 _tempfilepager 中缺少 tempfile 导入导致的 NameError

CVE-2026-7246 补丁将 shlex、shutil、subprocess 导入移至模块级别,
但遗漏了 tempfile。_tempfilepager 函数使用 tempfile.mkstemp() 且其
局部导入已被移除,导致直接调用时抛出 NameError(如 test_pager_uses_list_args)。
在模块级导入中添加 `import tempfile` 以修复编译失败。

Log: 添加缺失的 tempfile 模块级导入以修复 NameError

Influence:
1. 运行 test_pager_uses_list_args 验证 _tempfilepager 正常工作
2. 运行完整 test_termui.py 测试套件检查回归
3. 验证 dpkg-buildpackage 构建成功
4. 确认 CVE-2026-7246 shell 注入修复仍然有效

repo: python-click #fix-cve/CVE-2026-7246
@Zeno-sole

Copy link
Copy Markdown
Contributor

/integrate

@github-actions

Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#4402
PrNumber: 4402
PrBranch: auto-integration-30246400451

@hudeng-go

Copy link
Copy Markdown
Contributor

/approve

@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hudeng-go

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Zeno-sole
Zeno-sole merged commit 2845829 into master Jul 27, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants