Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-02-04
11:46
Remove compat/zlib/contrib/untgz. See: [0b9367a240] check-in: a04e281a19 user: jan.nijtmans tags: trunk, main
11:45
Remove compat/zlib/contrib/untgz. See: [0b9367a240] check-in: 2b890e7b0f user: jan.nijtmans tags: core-9-0-branch
11:44 • Ticket [0b9367a240] CVE-2026-22184 in zlib/contrib/untgz status still Closed... artifact: 740561e347 user: jan.nijtmans
11:43
Remove compat/zlib/contrib/untgz. See: [0b9367a240] check-in: 6a3030c65c user: jan.nijtmans tags: core-8-6-branch
2026-01-26
15:24 • Closed ticket [0b9367a240]: CVE-2026-22184 in zlib/contrib/untgz plus 7 othe... artifact: 07ca3c960e user: jan.nijtmans
14:46 • New ticket [0b9367a240]. artifact: d108e14a34 user: anonymous

CVE-2026-22184 in zlib/contrib/untgz

Closed / Fixed0b9367a240b66a84d3b6fb7e492eddc17e9ed556Created 310 days agoUpdated 301 days ago
Descriptionplain2026-01-26 14:46:24
There is https://access.redhat.com/security/cve/cve-2026-22184. It's a flaw in zlib contrib example code. IMHO the flaw should be fixed or the untgz example dropped. The fix is trivial - zeroing the buffer and using the strncpy instead of the strcpy. Fedora downstream ticket:
https://bugzilla.redhat.com/show_bug.cgi?id=2427830
Referenced by3
jan.nijtmanswiki2026-01-26 15:24:32

The fact that there is a CVE registered, doesn't mean it's a bug.

Tcl includes the zlib sourcecode, but the untgz example is not built or used in any way. So this cannot lead to any way this can be mis-used, and lead to an actual security risk. As soon as zlib releases a new version, Tcl will take it over. But in the mean time, there's really nothing to worry about.

jan.nijtmanswiki2026-02-04 11:44:12

It appears that upstream the untgz directory is simply removed completely, so we can do the same. That prevents any possible problem.

See: https://github.com/madler/zlib/commit/1a40058a92d525aa49a6eac698cfde500fc9b92f

So, let's do the same here.

Log in (anonymous is fine) to add a comment.