Opened 3 weeks ago

Last modified 3 weeks ago

#5972 reopened enhancement

Python security fixes: CVE-2026-4360 and 15308

Reported by: Joe Locash Owned by: lfs-book
Priority: high Milestone: 13.1
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

2 CVE's have been fixed in Python recently, the one reported today has a high severity.

From: Petr Viktorin via Security-announce <security-announce@python.org>
Date: Tue, 30 Jun 2026 13:45:44 +0200
Subject: [Security-announce][CVE-2026-4360] Tarfile.extract doesn't fully respect filter parameter
There is a LOW severity vulnerability affecting CPython.

In the Tarfile.extract function, the filter parameter is not passed
properly called when extracting hardlinks. An affected system that
extracts content from untrusted tar files could end up writing files
with an unexpected uid/gid despite the user passing filter='data' to the
extract function.

Please see the linked CVE ID for the latest information on affected
versions:

* https://www.cve.org/CVERecord?id=CVE-2026-4360
* https://github.com/python/cpython/pull/151988

Upstream PR for the 3.14 branch: https://github.com/python/cpython/pull/152609

From: Seth Larson <seth@python.org>
Date: Thu, 9 Jul 2026 17:08:21 +0000
Subject: [Security-announce][CVE-2026-15308] Incremental HTMLParser allows CPU-exhaustion DoS via repeated unterminated markup declarations

There is a HIGH severity vulnerability affecting CPython.

The incremental HTML parser (html.parser.HTMLParser) allows for CPU
denial-of-service through repeated unterminated markup declarations when
processing uncontrolled data.

Please see the linked CVE ID for the latest information on affected
versions:

* https://www.cve.org/CVERecord?id=CVE-2026-15308
* https://github.com/python/cpython/pull/153031

Upstream PR for the 3.14 branch: https://github.com/python/cpython/pull/153039

Patches attached for both.

Attachments (2)

python3-3.14-cve-2026-4360.patch (6.6 KB ) - added by Joe Locash 3 weeks ago.
python3-3.14-cve-2026-15308.patch (4.7 KB ) - added by Joe Locash 3 weeks ago.

Download all attachments as: .zip

Change History (7)

by Joe Locash, 3 weeks ago

by Joe Locash, 3 weeks ago

comment:1 by Bruce Dubbs, 3 weeks ago

I grabbed the attachments above and they both applied with some offsets. However I'm not sure we should bother to add them to the book for the following reasons:

  1. The problems they fix appear to be somewhat esoteric. The description of the 15308 cve (the 'HIGH' problem) says "The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontrolled data."
  1. Checking upstream, both patches have been incorporated into the mainline repository. According to https://peps.python.org/pep-0745/ the next point release of Python will be August 6th or about three weeks from now. At that time the patches will be incorporated and not needed in LFS/BLFS.

comment:2 by Joe Locash, 3 weeks ago

Resolution: invalid
Status: newclosed

My bad. I thought security issues should be fixed.

Closing.

comment:3 by Bruce Dubbs, 3 weeks ago

Resolution: invalid
Status: closedreopened

Lets keep this open for now. We still need to add the patches if they do not appear in the August point release.

in reply to:  3 comment:4 by Joe Locash, 3 weeks ago

Replying to Bruce Dubbs:

Lets keep this open for now. We still need to add the patches if they do not appear in the August point release.

These CVE's apply to 13.0 also. Why wait on on a release?

comment:5 by Bruce Dubbs, 3 weeks ago

Because I do not like adding something to a development version that will need to be removed two weeks later. To me, the most common solution to a security issue is to update to the latest release.

Note: See TracTickets for help on using tickets.