summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2021-02-19 18:09:57 -0500
committerLeo Famulari <leo@famulari.name>2021-02-23 14:12:33 -0500
commit84e082e31706411e7f9c3189a83f8ed0b4016fe7 (patch)
tree3c1d8a587c0467d1067386458b7832fe75e88a5b /gnu/packages/python.scm
parentc60ab406308fd3c00922dddc4fbf6e49a78fd8e6 (diff)
gnu: Python: Fix CVE-2021-3177.
* gnu/packages/patches/python-3.8-CVE-2021-3177.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-3.8)[replacement]: New field. (python-3.8/fixed): New variable.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 730c371fdac..5c5be0d78ca 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -364,6 +364,7 @@ data types.")
364(define-public python-3.8 364(define-public python-3.8
365 (package (inherit python-2) 365 (package (inherit python-2)
366 (name "python") 366 (name "python")
367 (replacement python-3.8/fixed)
367 (version "3.8.2") 368 (version "3.8.2")
368 (source (origin 369 (source (origin
369 (method url-fetch) 370 (method url-fetch)
@@ -521,6 +522,14 @@ data types.")
521 (version-major+minor version) 522 (version-major+minor version)
522 "/site-packages")))))))) 523 "/site-packages"))))))))
523 524
525(define python-3.8/fixed
526 (package
527 (inherit python-3.8)
528 (source (origin
529 (inherit (package-source python-3.8))
530 (patches (append (search-patches "python-3.8-CVE-2021-3177.patch")
531 (origin-patches (package-source python-3.8))))))))
532
524(define-public python-3.9 533(define-public python-3.9
525 (package (inherit python-3.8) 534 (package (inherit python-3.8)
526 (name "python-next") 535 (name "python-next")