Skip to content

[AutoPR- Security] Patch python-pip for CVE-2026-13346 [MEDIUM] - #18290

Draft
azurelinux-security wants to merge 2 commits into
microsoft:3.0-devfrom
azurelinux-security:azure-autosec/python-pip/3.0/1174137
Draft

[AutoPR- Security] Patch python-pip for CVE-2026-13346 [MEDIUM]#18290
azurelinux-security wants to merge 2 commits into
microsoft:3.0-devfrom
azurelinux-security:azure-autosec/python-pip/3.0/1174137

Conversation

@azurelinux-security

@azurelinux-security azurelinux-security commented Aug 3, 2026

Copy link
Copy Markdown

Auto Patch python-pip for CVE-2026-13346.

Autosec pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1174137&view=results

CVE-2026-13346 : Single Patch Backporter Pipeline Run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1174140&view=results

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?

Change Log
Does this affect the toolchain?

YES/NO

Associated issues
  • N/A
Links to CVEs
Test Methodology

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@v-swapsahu

v-swapsahu commented Aug 4, 2026

Copy link
Copy Markdown

Patch analysis:

CVE-2026-13346:
Backported: Yes

The python-pip patch matches the upstream security fix with a minor adaptation for pip 24.2.

  • Removes the second URL decoding in Link.filename.
  • Prevents doubly encoded separators from enabling path traversal.
  • Validates filenames as safe, single path components.
  • Uses join_within_directory() for all affected download and preparation paths.

Minor backport modification:
pip 24.2 has separate Downloader and BatchDownloader implementations, so both paths were updated. This functionally matches the upstream fix.

The patch applies cleanly, and the modified Python modules compile successfully. No security-relevant upstream changes were omitted.

image (8)

Buddy Build - Pipelines - Run PR-18290+python-pip+unknown has been triggered and it has passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants