r/Python • • Oct 26 '26

News Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 are out

234 Upvotes

33 comments sorted by

44

u/sylfy Oct 27 '26

I don’t seem to see similar updates being pushed out in other languages. Do they not have similar vulnerabilities, or is this something additional being implemented in Python?

3

u/jayroger 29d ago

This is something additional: Python now actively rejects the affected keys, even if the local cert store was not updated.

81

u/zurtex Oct 27 '26

FYI, this release isn't fixing a bug, it's adding an extra layer of defense.

This release distrusts the compromised certificates at the SSL module level, so even if you have a certificate store that hasn't been updated, this Python release will still not trust the compromised certificates.

21

u/Cycloctane 29d ago

This actually fixed the issue that newly created venvs are still using old pip by default. If you use stdlib venv, you should probably consider upgrading to those releases (or remember pasting that pip upgrade command every time after creating a new venv).

4

u/zurtex 29d ago

Ah thanks, I missed that that was an issue

4

u/agoose77 29d ago

Only if your venv is linked rather than a copy unfortunately

9

u/Cycloctane Oct 27 '26 edited 27d ago

cpython verions prior to 3.13 bundle the old pip with vendored certifi that includes the compromised certificates.

Therefore simply upgrading pip in all your existing venvs is NOT enough, since newly created venvs will still install the compromised version of pip and certifi from ensurepip. Upgrading cpython to latest patch versions that reject tls fingerprints of the compromised certificates is the only secure solution.

1

u/__hyphen 28d ago

Is this issue limited to pip? I have been using uv and my envs don’t contain pip, but I wonder if I am now exposed

1

u/Cycloctane 27d ago

This is an issue in cpython stdlib venv. You're probably fine if you upgraded your uv.

6

u/ihatebeinganonymous Oct 27 '26

Naive question, sorry. Does the apt repository of Ubuntu receive such updates? 

1

u/Defiant_Respect9500 28d ago

I'm a little upset, because we are using Python on a windows server. Latest exe Installer is 3.13.17, and for 3.13.18 the site says "here's the source code, go fuck yourself".

From the 5-year-window, 1.5 years of possible use remain. Subtract the waiting time after a new release until all packages are updated to the new version and you are forced to update every 12 months.

"disappointing" is an euphemism :(

1

u/Muchy_Tangerine 6d ago

That’s whole bunch of packages

0

u/[deleted] Oct 27 '26

[deleted] — view deleted comment

2

u/Wurstinator 29d ago

That was 3.15.0. This is something different.

2

u/HommeMusical 29d ago

We need to use 'Lazy' before import.

No! Old code will still work!!

39

u/[deleted] Oct 26 '26

[removed] — view removed comment

31

u/UsernameTaken1701 Oct 27 '26

  guess i'm spending my evening updating all my venvs

You can probably write a shell script for that. 

6

u/Lanky-Safety555 29d ago

All hail the uv package manager...

1

u/Jackomatrus 29d ago

Am I missing something? I can't install 3.12.16 via uv

1

u/Lanky-Safety555 29d ago

Old version; today's 0.13.6 supports them.

-1

u/hughperman 29d ago

Claude can definitely write a shell script for that

28

u/duskhat Oct 27 '26

Does it really take a whole evening to do that

-11

u/WasterDave Oct 27 '26

No. You say "recreate my venv using the requirements.txt file" to your favourite LLM.

10

u/duskhat Oct 27 '26

Surely by now they'll have had an LLM migrate any projects they care about to uv. Won't even need an LLM to upgrade the Python version

7

u/xsdf 29d ago

try using poetry or uv for managing your dependencies, it helps a lot and makes it quite simple to update

-4

u/hippocrat 29d ago

uv is usually several versions behind in their managed python. As of right now, 3.13.14 is the newest 3.13 available

1

u/Wurstinator 29d ago

How are you inferring that? Afaik, uv just checks the available versions online.

1

u/hippocrat 29d ago

No, the versions are baked into uv. I had not updated uv in a while, which is why I was behind.

https://github.com/astral-sh/uv/pull/22938

1

u/MrSlaw 29d ago

uv python upgrade 3.13

Installed Python 3.13.18 in 673ms
 + cpython-3.13.18-linux-x86_64-gnu (python3.13)

?

1

u/hippocrat 29d ago

I had not updated uv in a while, which is why I was behind.

https://github.com/astral-sh/uv/pull/22938

3

u/takeabiteopeach 29d ago

You should change your project workflow to something like UV, it would take you no time to do this.