Investigate native zlib runtime linkage and CVE reachability

Open
#2,497 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, rust

Research direction

Start by reproducing the native libz.so.1 linkage on the release tracker binary (for example with ldd or readelf -d) and checking how the production image build copies it in. Then identify which affected zlib symbols the binary imports and whether attacker-controlled input can reach them. Done means the linkage source, symbol reachability and verdict are recorded, and CVE records and Code Scanning alerts 24 and 59 match that verdict.

Written by the indexing model from the issue text.

Description

Needs Research Security task

Goal

Establish why the production tracker binary links native libz.so.1, determine whether the functions affected by CVE-2026-27171 or CVE-2026-85091 are reachable, and either remove unnecessary linkage or record reproducible evidence supporting the final security verdict.

Background

GitHub Code Scanning alerts 24 and 59 report two zlib CVEs in the production image. The previous CVE-2026-27171 analysis treated system zlib as an unused runtime package, but the production build discovers the release binary's linked libz.so.1 and copies it into the final image. No call to either affected API sequence has been established, so this is a p2 reachability investigation rather than a confirmed vulnerability.

Scope

  • Reproduce and explain native zlib linkage.
  • Identify imported and reachable affected symbols.
  • Determine whether attacker-controlled runtime input reaches either CVE path.
  • Remove unnecessary linkage or document the unreachable boundary with maintained evidence.
  • Refresh both CVE records and reconcile Code Scanning alerts 24 and 59.

Acceptance criteria

  • The exact linkage source and affected-symbol reachability are reproducibly established.
  • Unnecessary linkage is removed, or required linkage has a maintained evidence-based verdict.
  • Both CVE records and scanner alerts agree with the final result.

Related to #2493.

Dominant language
Rust
Stars
532
Forks
56
Avg merge
11h 20m
Merged PRs (30d)
282

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from torrust/torrust-tracker

All issues in torrust/torrust-tracker

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.