mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly uses the install path during repair (GH-31727)
This commit is contained in:
parent
0ff033b859
commit
136842c91b
11 changed files with 26 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
Prevent CVE-2022-26488 by ensuring the Add to PATH option in the Windows
|
||||
installer uses the correct path when being repaired.
|
|
@ -95,8 +95,8 @@
|
|||
<Chain ParallelCache="yes">
|
||||
<PackageGroupRef Id="crt" />
|
||||
<PackageGroupRef Id="core" />
|
||||
<PackageGroupRef Id="dev" />
|
||||
<PackageGroupRef Id="exe" />
|
||||
<PackageGroupRef Id="dev" />
|
||||
<PackageGroupRef Id="lib" />
|
||||
<PackageGroupRef Id="test" />
|
||||
<PackageGroupRef Id="doc" />
|
||||
|
|
|
@ -53,11 +53,23 @@
|
|||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<?ifdef InstallDirectoryGuidSeed ?>
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<?ifdef InstallDirectoryGuidSeed ?>
|
||||
<Directory Id="InstallDirectory" ComponentGuidGenerationSeed="$(var.InstallDirectoryGuidSeed)" />
|
||||
<?endif ?>
|
||||
</Directory>
|
||||
<?endif ?>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<!-- Locate TARGETDIR automatically assuming we have executables installed -->
|
||||
<Property Id="TARGETDIR">
|
||||
<ComponentSearch Id="PythonExe_Directory" Guid="$(var.PythonExeComponentGuid)">
|
||||
<DirectorySearch Id="PythonExe_Directory" AssignToProperty="yes" Path=".">
|
||||
<FileSearch Id="PythonExe_DirectoryFile" Name="python.exe" />
|
||||
</DirectorySearch>
|
||||
</ComponentSearch>
|
||||
</Property>
|
||||
<Property Id="DetectTargetDir" Value="1" />
|
||||
</Fragment>
|
||||
|
||||
<!-- Top-level directories -->
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
|
||||
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
|
||||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
|
||||
<Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" />
|
||||
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
||||
|
||||
<PropertyRef Id="DetectTargetDir" />
|
||||
<PropertyRef Id="UpgradeTable" />
|
||||
<PropertyRef Id="REGISTRYKEY" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue