azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Update version of python packaged with Azure CLI

Open AdamG9923 opened this issue 1 month ago • 14 comments

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

AdamG9923 avatar Oct 13 '26 14:10 AdamG9923

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

yonzhan avatar Oct 13 '26 14:10 yonzhan

Hi @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)

x-engineering-agent avatar Oct 13 '26 15:10 x-engineering-agent

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

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

Image

AdamG9923 avatar Oct 13 '26 15:10 AdamG9923

Image

AdamG9923 avatar Oct 13 '26 15:10 AdamG9923

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

x-engineering-agent avatar Oct 13 '26 16:10 x-engineering-agent

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

msarfraz avatar Oct 27 '26 11:10 msarfraz

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?

AdamG9923 avatar Oct 27 '26 16:10 AdamG9923

Official Release: 11/03/2026

yonzhan avatar Oct 27 '26 20:10 yonzhan

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?

jgrz-unik avatar Oct 27 '26 22:10 jgrz-unik

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.

brent4D6363 avatar Oct 28 '26 21:10 brent4D6363

17. Official Release: 11/03/2026

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

peredwardsson avatar Nov 03 '26 06:11 peredwardsson

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

naga-nandyala avatar Nov 03 '26 23:11 naga-nandyala

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.

naga-nandyala avatar Nov 09 '26 00:11 naga-nandyala