Python Forum
Python versions with libexpat fixes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python versions with libexpat fixes
#1
Hi Friends,

Anyone having information about the python versions in which the libexpat security issues are getting fixed

below is the bug id for the same

https://bugs.python.org/issue46794

we are using python 3.9.5 which carries libexpat 2.2.8, as this expat version is having critical vulnerabilites ( > 5) we need to upgrade this libexpat.

To do so we need to get the right python version which fixes this libexpat issue.

is there a way where only libexpat can be upgraded in the existing python version (3.9.5) just a doubt?

Thanks in advance
Reply
#2
(Feb-24-2022, 12:36 PM)raghupcr Wrote: To do so we need to get the right python version which fixes this libexpat issue.

The code has been pushed already, but there is currently no version bump of Python 3.7 - 3.11
You've to wait or compile it yourself. To compile it yourself, you require all build-dependencies.


You can grab a specific branch (Major.Minor) to get the newest changes.
Shortcut if all build-dependencies are fulfilled:

mkdir Python3.9

git clone --depth 1 -b 3.9 https://github.com/python/cpython.git
cd cpython
# show the version bump of expat
less -N +1042 Modules/expat/expat.h

# configure
./configure --prefix=ABSOLUTE_PATH_TO_PYTHON3.9_BUT_NOT_FOR_SYSTEM
make -j 8
make install
Then it's installed locally not as root in Python3.9.
To test the new compiled interpreter just run:

ABSOLUTE_PATH_TO_PYTHON3.9/bin/python3
Getting current used expat version:
from xml.parsers import expat


print(expat.version_info)
The last version was Python 3.9.9, so the new changes are for the future 3.9.10 and of course for all other branches.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#3
Thanks a lot for the reply

so we need to wait for the newer version of 3.9

i think already 3.9.10 got released in jan
Python 3.9.10 final
Release date: 2022-01-13

so may be next version is 3.9.11?

Thanks
Reply
#4
You may get an answer here, if anybody knows the answer, however we are not part of python.org,
the authors of main python releases. You should contact them.

This forum is not part of python.org.
Reply
#5
Yes, you're right. The latest Python bugfix release of 3.9 is currently 3.9.10.
The compiled version shows 3.9.10+. The + means 3.9.10 + all pending fixes for next release. I think Distributors like Debian release a fixed version. Maybe before even Python releases an official bugfix release. It depends on how bad the security risk is.

From PEP596 you can look up, when new bugfix releases are planned:

Quote:Expected:

3.9.11: Monday, 2022-03-14

I guess they do the bugfix release earlier.

For the record, the CVE's:
If you look for older releases, they all had security fixes: https://libexpat.github.io/
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#6
Thumbs Up 
Thanks a lot for the detailed info Bishop :) :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 333 Feb-17-2024, 12:43 PM
Last Post: deanhystad
Question log.exception() without arguments in old Python versions? cthart 5 1,176 Nov-19-2022, 07:09 PM
Last Post: Gribouillis
  Building python (3.9.5) with different libexpat version (2.4.6) raghupcr 0 1,321 Feb-25-2022, 11:29 AM
Last Post: raghupcr
  Installed versions of Python SamHobbs 5 2,541 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  Different versions of Python3 and Python Led_Zeppelin 2 2,330 Jun-16-2021, 05:31 AM
Last Post: snippsat
  Python Versions ThatTamyBot 2 2,695 Mar-11-2021, 11:27 AM
Last Post: ThatTamyBot
  I seem to have two versions of python 3.7.9 installed miner_tom 7 4,482 Nov-22-2020, 06:42 PM
Last Post: miner_tom
  How many Python versions do I need? kenatsun 3 2,634 Jan-05-2020, 03:54 AM
Last Post: ichabod801
  python and py report different versions lordvold 3 2,664 Nov-27-2019, 11:01 PM
Last Post: lordvold
  Changing Python Versions in Ubuntu 16.04 ErnestTBass 2 3,144 Jan-10-2019, 05:45 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020