Skip to content

[High] patch python-cryptography for CVE-2026-69249. - #18365

Open
AkarshHCL wants to merge 2 commits into
microsoft:fasttrack/3.0from
Kanishk-Bansal:topic_akarsh_python-cryptography_cve-2026-69249
Open

[High] patch python-cryptography for CVE-2026-69249.#18365
AkarshHCL wants to merge 2 commits into
microsoft:fasttrack/3.0from
Kanishk-Bansal:topic_akarsh_python-cryptography_cve-2026-69249

Conversation

@AkarshHCL

@AkarshHCL AkarshHCL commented Aug 10, 2026

Copy link
Copy Markdown
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

Vulnerability Summary

This PR fixes CVE-2026-69249, Duplicate self-signed intermediates can cause exponential path-building.

Backport adaptations for cryptography 42.0.5

1.Validation error API adaptation for cryptography 42.0.5

This adaptation is necessary because cryptography 42.0.5 uses the older error
model:

  • ValidationError is an enum with a FatalError variant.
  • It does not use the newer generic ValidationResult<'chain, T, B> type.
  • Errors are constructed directly rather than through
    ValidationError::new(ValidationErrorKind::...).

2.Omission of the newer-API regression test.- Upstream patch had test too which was omitted as it was using newer apis not feasible to our version.

Change Log
  • SPECS/python-cryptography/python-cryptography.spec
  • SPECS/python-cryptography/CVE-2026-69249.patch
Does this affect the toolchain?

NO

Links to CVEs
Test Methodology

Screenshot of successful local build-
image

patch is getting applied cleanly-
image

Done the advisory Poc to check vulnerability is fixed or not poc reference link-GHSA-jwv3-5hgf-82ww
Before fix output-
image
After fix-
image

@AkarshHCL
AkarshHCL requested a review from a team as a code owner August 10, 2026 09:11
@azure-pipelines

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

@AkarshHCL
AkarshHCL marked this pull request as draft August 10, 2026 09:11
@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging fasttrack/3.0 PRs Destined for Azure Linux 3.0 labels Aug 10, 2026
@AkarshHCL
AkarshHCL marked this pull request as ready for review August 11, 2026 06:21
@azure-pipelines

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

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

Labels

fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants