Skip to content

fix(python-ldap): CVE-2025-61911, CVE-2025-61912#2

Open
deepin-ci-robot wants to merge 2 commits intomasterfrom
fix/CVE-2025-61911-multi
Open

fix(python-ldap): CVE-2025-61911, CVE-2025-61912#2
deepin-ci-robot wants to merge 2 commits intomasterfrom
fix/CVE-2025-61911-multi

Conversation

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

CVE 修复

本 PR 修复以下两个安全漏洞:

CVE-2025-61911

漏洞描述: python-ldap 的 ldap.filter.escape_filter_chars 方法存在过滤绕过漏洞。当 escape_mode=1 时,攻击者可以通过构造的 listdict 对象绕过字符过滤,可能导致 LDAP 注入攻击。

修复方案: 在方法开头添加类型检查,确保 assertion_value 参数必须为 str 类型。

上游修复: python-ldap/python-ldap@3957526

CVE-2025-61912

漏洞描述: python-ldap 的 ldap.dn.escape_dn_chars() 函数错误地转义 null 字节(\x00),导致客户端拒绝服务。

修复方案: 按照 RFC 4514 规范,将 null 字节正确转义为

上游修复: python-ldap/python-ldap@6ea8032


修复策略: backport upstream patch

Generated-By: glm-5.1

Co-Authored-By: hudeng hudeng@deepin.org


Generated by CVE-Fixer Agent

deepin-ci-robot and others added 2 commits May 7, 2026 19:58
Enforce str type for escape_filter_chars to prevent LDAP injection
attacks via crafted list/dict objects.

Upstream: python-ldap/python-ldap@3957526
Generated-By: glm-5.1
Co-Authored-By: hudeng <hudeng@deepin.org>
Correctly escape null bytes in escape_dn_chars according to RFC 4514
to prevent client-side denial of service.

Upstream: python-ldap/python-ldap@6ea8032
Generated-By: glm-5.1
Co-Authored-By: hudeng <hudeng@deepin.org>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

TAG Bot

TAG: 3.4.4-1deepin2
EXISTED: no
DISTRIBUTION: unstable

@hudeng-go
Copy link
Copy Markdown

/integrate

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

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

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.

2 participants