Skip to content

Update version of python packaged with Azure CLI #34221

Closed

Description

@AdamG9923

Describe the bug

The current version of Python that's packaged with Azure CLI (3.14.7.x) is flagged as a vulnerability. Running az upgrade go only up to the exact version 3.14.7150.1013. Please update this.

Related command

az upgrade

Errors

Causing vulnerability scanners to pick it up constantly.

Issue script & Debug output

The current version of Python that's packaged with Azure CLI (3.14.7.x) is flagged as a vulnerability. Running az upgrade go only up to the exact version 3.14.7150.1013. Please update this.

Expected behavior

Should be using a newer version of python.

Environment Summary

azure-cli 2.91.0

core 2.91.0
telemetry 1.1.0

Extensions:
stack-hci-vm 1.16.0

Dependencies:
msal 1.39.0
azure-mgmt-resource 24.0.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\adam.gindt.azure'
Extensions directory 'C:\Users\adam.gindt.azure\cliextensions'

Python (Windows) 3.14.7 (tags/v3.14.7:823f032, Aug 5 2026, 10:51:32) [MSC v.1944 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Activity

  1. added
    bug
    on Oct 13, 2026
  2. added
    customer-reported
    Auto-Assign
    Upgrade
    Azure CLI Team
    question
    on Oct 13, 2026
  3. yonzhan commented on Oct 13, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  4. x-engineering-agent commented on Oct 13, 2026

    @x-engineering-agent
    Contributor

    Hi Adam G (@AdamG9923), the report identifies Azure CLI 2.91.0 on Windows and its bundled Python 3.14.7, with az upgrade reporting that the CLI is up to date.

    Could you share the scanner finding's CVE/advisory ID and its affected/fixed version range? That is needed to distinguish a bundled-runtime vulnerability from a package-version detection issue and identify the required update. Please omit credentials and other sensitive scan details.

    The issue will be picked up automatically once you reply.

    Posted by x-engineering-agent (Fixer)

  5. added
    X Engineering Agent Needs Info
    on Oct 13, 2026
  6. microsoft-github-policy-service commented on Oct 13, 2026

    @microsoft-github-policy-service
    Contributor

    🔔 Routing this issue to @Azure/act-platform-engineering-squad.

  7. AdamG9923 commented on Oct 13, 2026

    @AdamG9923
    Author

    This is being flagged by Microsoft Defender
    CVE-2026-19445

    Image
  8. AdamG9923 commented on Oct 13, 2026

    @AdamG9923
    Author
    Image
  9. x-engineering-agent commented on Oct 13, 2026

    @x-engineering-agent
    Contributor

    X Engineering Agent Bug analysis: Root cause analysis

    The reported CLI 2.91.0 installation bundles Python 3.14.7. The PSF advisory lists Python 3.14.0 through versions below 3.14.8 as affected. It describes a server-side SSLContext lifetime defect when an SNI callback switches contexts and explicitly says TLS clients are not affected. An affected bundled version is not, by itself, evidence of an exploitable Azure CLI code path.

    The source fix already exists in commit abd03e8. The Windows build script pins Python 3.14.8 for MSI and ZIP packaging; the 2.91.0 source pins 3.14.7. A separate Python installation does not replace the bundled interpreter. az upgrade checks the available CLI version, so “up-to-date” does not establish that every bundled dependency is current.

    Packaging-maintainer follow-up: confirm which published Windows MSI/ZIP artifacts contain Python 3.14.8 or a newer fixed version, decide whether a backport/refreshed release is needed, and provide the supported upgrade path. Confirm the interpreter version in the distributed artifacts and installed CLI, then reassess the Defender finding. Source changes alone do not establish that published installers or existing installations are fixed; no release date or artifact remediation is confirmed here.

    The CVE and environment details are sufficient for this handoff. No additional reporter question or duplicate version-bump job is needed. Recommended priority: P2, pending release/artifact confirmation and evidence of an affected server-side usage path.

    X Engineering Agent · Fixer · react 👍 / 👎 to train the agent

  10. removed
    X Engineering Agent Needs Info
    on Oct 13, 2026
  11. removed
    question
    on Oct 13, 2026
  12. added this to the Backlog milestone on Oct 13, 2026
  13. msarfraz commented on Oct 27, 2026

    @msarfraz
    Contributor

    Azure CLI is upgraded to Python version 3.14.9 which will be available in the upcoming release 2.92.0

  14. AdamG9923 commented on Oct 27, 2026

    @AdamG9923
    Author

    15. Azure CLI is upgraded to Python version 3.14.9 which will be available in the upcoming release 2.92.0

    Hi Mansoor,

    Thanks for the update. Appreciate you all getting this updated. Please keep in mind to have your team monitor the python version going forward since I believe this will be a component that will need updates fairly often so it doesn't repeatedly get flagged as a vulnerability.

    When will the latest release be available so I can test updating and verify its no longer flagged by defender?

  15. yonzhan commented on Oct 27, 2026

    @yonzhan
    Collaborator

    Official Release: 11/03/2026

  16. jgrz-unik commented on Oct 27, 2026

    @jgrz-unik

    BTW there was 3.14.10 released yesterday
    It was release related to compromised eMudhra intermediate CA keys - maybe only the minor version should be pinned and there should be option to upgrade the python packaged cover such scenarios?

  17. brent4D6363 commented on Oct 28, 2026

    @brent4D6363

    One of the CVE's that the 3.14.10 fixes is CVE-2026-115557 which defender is flagging the az cli with as well due to the old python version.

  18. peredwardsson commented on Nov 3, 2026

    @peredwardsson

    17. Official Release: 11/03/2026

    Can you confirm the fix is in todays release? Unable to locate a release note on the subject.

  19. naga-nandyala commented on Nov 3, 2026

    @naga-nandyala
    Contributor

    3.14.9 got released on 3rd-Nov
    3.14.10 - This will be part of Ignite release which is on 16-Nov.

  20. naga-nandyala commented on Nov 9, 2026

    @naga-nandyala
    Contributor

    The Python 3.14.10 packaging update was merged in #34326 on 3 November for Windows MSI/ZIP and Debian packages. It is planned for the 16 November Ignite release.

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

Metadata

Metadata

Labels

Auto-AssignAzure CLI TeamUpgradeact-platform-engineering-squadbugcustomer-reported

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions