Skip to content

Commit ddd495e

Browse files
zoobagpsheadned-deily
authored
[3.8] gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727) (GH-101752)
Fixes CVE-2023-0286 (High) and a couple of Medium security issues. https://www.openssl.org/news/secadv/20230207.txt Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Ned Deily <nad@python.org>
1 parent 4812813 commit ddd495e

File tree

9 files changed

+37
-26
lines changed

9 files changed

+37
-26
lines changed

.azure-pipelines/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(build.sourceBranchName)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1n
60+
openssl_version: 1.1.1t
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1n
86+
openssl_version: 1.1.1t
8787

8888
steps:
8989
- template: ./posix-steps.yml

.azure-pipelines/pr.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
variables:
5858
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
5959
testRunPlatform: linux
60-
openssl_version: 1.1.1n
60+
openssl_version: 1.1.1t
6161

6262
steps:
6363
- template: ./posix-steps.yml
@@ -83,7 +83,7 @@ jobs:
8383
variables:
8484
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8585
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1n
86+
openssl_version: 1.1.1t
8787

8888
steps:
8989
- template: ./posix-steps.yml

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
needs: check_source
144144
if: needs.check_source.outputs.run_tests == 'true'
145145
env:
146-
OPENSSL_VER: 1.1.1n
146+
OPENSSL_VER: 1.1.1t
147147
steps:
148148
- uses: actions/checkout@v2
149149
- name: Install Dependencies
@@ -184,7 +184,7 @@ jobs:
184184
strategy:
185185
fail-fast: false
186186
matrix:
187-
openssl_ver: [1.0.2u, 1.1.0l, 1.1.1l]
187+
openssl_ver: [1.0.2u, 1.1.0l, 1.1.1t, 3.0.8, 3.1.0-beta1]
188188
env:
189189
OPENSSL_VER: ${{ matrix.openssl_ver }}
190190
MULTISSL_DIR: ${{ github.workspace }}/multissl

Mac/BuildScript/build-installer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def library_recipes():
242242

243243
result.extend([
244244
dict(
245-
name="OpenSSL 1.1.1n",
246-
url="https://www.openssl.org/source/openssl-1.1.1n.tar.gz",
247-
checksum='2aad5635f9bb338bc2c6b7d19cbc9676',
245+
name="OpenSSL 1.1.1t",
246+
url="https://www.openssl.org/source/openssl-1.1.1t.tar.gz",
247+
checksum='1cfee919e0eac6be62c88c5ae8bcd91e',
248248
buildrecipe=build_universal_openssl,
249249
configure=None,
250250
install=None,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Updated the OpenSSL version used in Windows and macOS binary release builds
2+
to 1.1.1t to address CVE-2023-0286, CVE-2022-4303, and CVE-2022-4303 per
3+
`the OpenSSL 2023-02-07 security advisory
4+
<https://www.openssl.org/news/secadv/20230207.txt>`_.

PCbuild/get_externals.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ echo.Fetching external libraries...
5353
set libraries=
5454
set libraries=%libraries% bzip2-1.0.8
5555
if NOT "%IncludeLibffiSrc%"=="false" set libraries=%libraries% libffi-3.3.0
56-
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1s
56+
if NOT "%IncludeSSLSrc%"=="false" set libraries=%libraries% openssl-1.1.1t
5757
set libraries=%libraries% sqlite-3.35.5.0
5858
if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tcl-core-8.6.9.0
5959
if NOT "%IncludeTkinterSrc%"=="false" set libraries=%libraries% tk-8.6.9.0
@@ -77,7 +77,7 @@ echo.Fetching external binaries...
7777

7878
set binaries=
7979
if NOT "%IncludeLibffi%"=="false" set binaries=%binaries% libffi-3.3.0
80-
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1s
80+
if NOT "%IncludeSSL%"=="false" set binaries=%binaries% openssl-bin-1.1.1t
8181
if NOT "%IncludeTkinter%"=="false" set binaries=%binaries% tcltk-8.6.9.0
8282
if NOT "%IncludeSSLSrc%"=="false" set binaries=%binaries% nasm-2.11.06
8383

PCbuild/python.props

+19-12
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,25 @@
5656
<ExternalsDir>$(EXTERNALS_DIR)</ExternalsDir>
5757
<ExternalsDir Condition="$(ExternalsDir) == ''">$([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`))</ExternalsDir>
5858
<ExternalsDir Condition="!HasTrailingSlash($(ExternalsDir))">$(ExternalsDir)\</ExternalsDir>
59-
<sqlite3Dir>$(ExternalsDir)sqlite-3.35.5.0\</sqlite3Dir>
60-
<bz2Dir>$(ExternalsDir)bzip2-1.0.8\</bz2Dir>
61-
<lzmaDir>$(ExternalsDir)xz-5.2.2\</lzmaDir>
62-
<libffiDir>$(ExternalsDir)libffi-3.3.0\</libffiDir>
63-
<libffiOutDir>$(ExternalsDir)libffi-3.3.0\$(ArchName)\</libffiOutDir>
64-
<libffiIncludeDir>$(libffiOutDir)include</libffiIncludeDir>
65-
<opensslDir>$(ExternalsDir)openssl-1.1.1s\</opensslDir>
66-
<opensslOutDir>$(ExternalsDir)openssl-bin-1.1.1s\$(ArchName)\</opensslOutDir>
67-
<opensslIncludeDir>$(opensslOutDir)include</opensslIncludeDir>
68-
<nasmDir>$(ExternalsDir)\nasm-2.11.06\</nasmDir>
69-
<zlibDir>$(ExternalsDir)\zlib-1.2.12\</zlibDir>
70-
59+
</PropertyGroup>
60+
61+
<Import Project="$(ExternalProps)" Condition="$(ExternalProps) != '' and Exists('$(ExternalProps)')" />
62+
63+
<PropertyGroup>
64+
<sqlite3Dir Condition="$(sqlite3Dir) == ''">$(ExternalsDir)sqlite-3.35.5.0\</sqlite3Dir>
65+
<bz2Dir Condition="$(bz2Dir) == ''">$(ExternalsDir)bzip2-1.0.8\</bz2Dir>
66+
<lzmaDir Condition="$(lzmaDir) == ''">$(ExternalsDir)xz-5.2.2\</lzmaDir>
67+
<libffiDir Condition="$(libffiDir) == ''">$(ExternalsDir)libffi-3.3.0\</libffiDir>
68+
<libffiOutDir Condition="$(libffiOutDir) == ''">$(libffiDir)$(ArchName)\</libffiOutDir>
69+
<libffiIncludeDir Condition="$(libffiIncludeDir) == ''">$(libffiOutDir)include</libffiIncludeDir>
70+
<opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-1.1.1t\</opensslDir>
71+
<opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-1.1.1t\$(ArchName)\</opensslOutDir>
72+
<opensslIncludeDir Condition="$(opensslIncludeDir) == ''">$(opensslOutDir)include</opensslIncludeDir>
73+
<nasmDir Condition="$(nasmDir) == ''">$(ExternalsDir)\nasm-2.11.06\</nasmDir>
74+
<zlibDir Condition="$(zlibDir) == ''">$(ExternalsDir)\zlib-1.2.12\</zlibDir>
75+
</PropertyGroup>
76+
77+
<PropertyGroup>
7178
<!-- Suffix for all binaries when building for debug -->
7279
<PyDebugExt Condition="'$(PyDebugExt)' == '' and $(Configuration) == 'Debug'">_d</PyDebugExt>
7380

PCbuild/readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ _lzma
165165
Homepage:
166166
http://tukaani.org/xz/
167167
_ssl
168-
Python wrapper for version 1.1.1k of the OpenSSL secure sockets
168+
Python wrapper for version 1.1.1t of the OpenSSL secure sockets
169169
library, which is downloaded from our binaries repository at
170170
https://github.com/python/cpython-bin-deps.
171171

Tools/ssl/multissltests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
]
5050

5151
OPENSSL_RECENT_VERSIONS = [
52-
"1.1.1n",
53-
"3.0.1"
52+
"1.1.1t",
53+
"3.0.8"
5454
]
5555

5656
LIBRESSL_OLD_VERSIONS = [

0 commit comments

Comments
 (0)