mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python2: Add upstream security fixes.
This addresses CVE-2018-{1060,1061,14647,1000802}. * gnu/packages/patches/python2-CVE-2018-1000802.patch, gnu/packages/patches/python2-CVE-2018-1060.patch, gnu/packages/patches/python2-CVE-2018-1061.patch, gnu/packages/patches/python2-CVE-2018-14647.patch: New files. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/python.scm (python-2/fixed): New variable. (python-2.7)[replacement]: New field. (python2-minimal): Use PACKAGE/INHERIT.
This commit is contained in:
parent
90aeaee861
commit
a55ebe2e3a
6 changed files with 166 additions and 1 deletions
20
gnu/packages/patches/python2-CVE-2018-1060.patch
Normal file
20
gnu/packages/patches/python2-CVE-2018-1060.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
Fix CVE-2018-1060:
|
||||
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1060
|
||||
|
||||
Taken from upstream commit (sans test and NEWS):
|
||||
https://github.com/python/cpython/commit/e052d40cea15f582b50947f7d906b39744dc62a2
|
||||
|
||||
diff --git a/Lib/poplib.py b/Lib/poplib.py
|
||||
index b91e5f72d2ca..a238510b38fc 100644
|
||||
--- a/Lib/poplib.py
|
||||
+++ b/Lib/poplib.py
|
||||
@@ -274,7 +274,7 @@ def rpop(self, user):
|
||||
return self._shortcmd('RPOP %s' % user)
|
||||
|
||||
|
||||
- timestamp = re.compile(r'\+OK.*(<[^>]+>)')
|
||||
+ timestamp = re.compile(br'\+OK.[^<]*(<.*>)')
|
||||
|
||||
def apop(self, user, secret):
|
||||
"""Authorisation
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue