Skip to content

Commit be8c54e

Browse files
authored
python-3.12, python-3.13: Apply CVE-2025-4516 patch (#54620)
## Summary Fix use-after-free vulnerability in the unicode-escape decoder with non-strict error handlers. ## Details - **CVE**: CVE-2025-4516 - **Severity**: Medium - **Issue**: Use-after-free crash when using `bytes.decode("unicode_escape", error="ignore|replace")` ## Changes - Add CVE-2025-4516.patch from upstream merged PRs - Python 3.12: [PR #134337](python/cpython#134337) - Python 3.13: [PR #133944](python/cpython#133944) - Increment epoch to 2 for both packages ## Status - ✅ Python 3.12: Upstream patch merged and applied - ✅ Python 3.13: Upstream patch merged and applied - ⏳ Python 3.9, 3.10, 3.11: Waiting for upstream PRs to be merged ## Testing CI will validate that: - Patches apply cleanly - Packages build successfully - Tests pass ## References - [CVE-2025-4516 Details](https://www.cve.org/CVERecord?id=CVE-2025-4516) - [Security Advisory](https://mail.python.org/archives/list/security-announce@python.org/thread/L75IPBBTSCYEF56I2M4KIW353BB3AY74/) - Related to: chainguard-dev/internal-dev#12589
1 parent c7424e8 commit be8c54e

File tree

4 files changed

+1045
-4
lines changed

4 files changed

+1045
-4
lines changed

python-3.12.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: python-3.12
33
version: "3.12.10"
4-
epoch: 1
4+
epoch: 2
55
description: "the Python programming language"
66
copyright:
77
- license: PSF-2.0
@@ -64,7 +64,7 @@ pipeline:
6464
6565
- uses: patch
6666
with:
67-
patches: gh-118224.patch gh-127301.patch
67+
patches: gh-118224.patch gh-127301.patch CVE-2025-4516.patch
6868

6969
- name: Configure
7070
runs: |

0 commit comments

Comments
 (0)