##// END OF EJS Templates
Fix CVE-2023-24816 by removing legacy code....
Konstantin Weddige -
Show More
@@ -63,7 +63,7 b' __version__ = release.version'
63 version_info = release.version_info
63 version_info = release.version_info
64 # list of CVEs that should have been patched in this release.
64 # list of CVEs that should have been patched in this release.
65 # this is informational and should not be relied upon.
65 # this is informational and should not be relied upon.
66 __patched_cves__ = {"CVE-2022-21699"}
66 __patched_cves__ = {"CVE-2022-21699", "CVE-2023-24816"}
67
67
68
68
69 def embed_kernel(module=None, local_ns=None, **kwargs):
69 def embed_kernel(module=None, local_ns=None, **kwargs):
@@ -91,30 +91,14 b" if os.name == 'posix':"
91 _set_term_title = _set_term_title_xterm
91 _set_term_title = _set_term_title_xterm
92 _restore_term_title = _restore_term_title_xterm
92 _restore_term_title = _restore_term_title_xterm
93 elif sys.platform == 'win32':
93 elif sys.platform == 'win32':
94 try:
94 import ctypes
95 import ctypes
95
96
96 SetConsoleTitleW = ctypes.windll.kernel32.SetConsoleTitleW
97 SetConsoleTitleW = ctypes.windll.kernel32.SetConsoleTitleW
97 SetConsoleTitleW.argtypes = [ctypes.c_wchar_p]
98 SetConsoleTitleW.argtypes = [ctypes.c_wchar_p]
98
99
99 def _set_term_title(title):
100 def _set_term_title(title):
100 """Set terminal title using ctypes to access the Win32 APIs."""
101 """Set terminal title using ctypes to access the Win32 APIs."""
101 SetConsoleTitleW(title)
102 SetConsoleTitleW(title)
103 except ImportError:
104 def _set_term_title(title):
105 """Set terminal title using the 'title' command."""
106 global ignore_termtitle
107
108 try:
109 # Cannot be on network share when issuing system commands
110 curr = os.getcwd()
111 os.chdir("C:")
112 ret = os.system("title " + title)
113 finally:
114 os.chdir(curr)
115 if ret:
116 # non-zero return code signals error, don't try again
117 ignore_termtitle = True
118
102
119
103
120 def set_term_title(title):
104 def set_term_title(title):
@@ -2,6 +2,18 b''
2 8.x Series
2 8.x Series
3 ============
3 ============
4
4
5
6 IPython 8.9.1
7 -------------
8
9 Out of schedule release of IPython with minor fixes to patch a potential CVE-2023-24816.
10 This is a really low severity CVE that you most likely are not affected by unless:
11
12 - You are on windows.
13 - You have a custom build of Python without ``_ctypes``
14 - You cd or start IPython or Jupyter in untrusted directory which names may be valid shell commands.
15
16
5 .. _version 8.9.0:
17 .. _version 8.9.0:
6
18
7 IPython 8.9.0
19 IPython 8.9.0
General Comments 0
You need to be logged in to leave comments. Login now