Bug 2523430 - CVE-2026-79655 sos: sos: path traversal in sos clean tar extraction via unvalidated symlink/hardlink targets leads to arbitrary file write [fedora-all]
Summary: CVE-2026-79655 sos: sos: path traversal in sos clean tar extraction via unval...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sos
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Sandro Bonazzola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["b9f9b52e-87d6-4f32-a91d-9...
Depends On:
Blocks: CVE-2026-79655
TreeView+ depends on / blocked
 
Reported: 2026-08-25 13:30 UTC by Vladimir Vasilev
Modified: 2026-10-08 01:40 UTC (History)
2 users (show)

Fixed In Version: sos-4.12.0-2.fc46 sos-4.12.0-2.fc45 sos-4.12.0-2.fc44 sos-4.12.0-2.fc43
Clone Of:
Environment:
Last Closed: 2026-09-29 07:25:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-08-25 13:30:40 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Upstream issue: https://github.com/sosreport/sos/issues/4460 
Proposed Fix: https://github.com/sosreport/sos/pull/4461
Component: sos (sos/cleaner/archives/_init_.py — extract_archive())
CWE: CWE-22 and CWE-59
Suggested CVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8)

Summary:
sos clean extracts a caller-supplied tarball with tarfile.fully_trusted_filter. A dest-containment check exists but only inspects member.name. It does not inspect symlink or hardlink targets. extractall() can therefore write files outside the extract directory as the process UID.

Description: 
A path traversal vulnerability was found in sos clean in the sos package. The extract_archive() function uses Python's tarfile module with fully_trusted_filter and validates only archive member names against the extraction directory. Symlink and hardlink targets are not validated. A crafted tar archive can therefore contain an out-of-tree symlink followed by a regular file whose apparent path remains within the extraction directory. During extraction, tarfile.extractall() follows the symlink and writes the file to an attacker-controlled location outside the extraction directory. This can result in arbitrary file creation or overwrite with the privileges of the sos clean process, which is commonly run as root.

Reporter / Credit: Sandipan Roy (Red Hat)

Comment 1 Sandro Bonazzola 2026-08-25 14:55:05 UTC
Monitoring the upstream fix for this CVE, will include the fix once accepted upstream.
According to https://github.com/sosreport/sos/issues/4460#issuecomment-5411585864 doesn't seem to be a critical vulnerability, can wait for the proper fix.

Comment 2 Fedora Update System 2026-09-29 07:22:40 UTC
FEDORA-2026-55bfd55650 (sos-4.12.0-2.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-55bfd55650

Comment 3 Fedora Update System 2026-09-29 07:25:39 UTC
FEDORA-2026-55bfd55650 (sos-4.12.0-2.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-09-29 07:52:37 UTC
FEDORA-2026-cf80902877 (sos-4.12.0-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-cf80902877

Comment 5 Fedora Update System 2026-09-29 07:52:38 UTC
FEDORA-2026-51eb024b20 (sos-4.12.0-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-51eb024b20

Comment 6 Fedora Update System 2026-09-29 07:52:38 UTC
FEDORA-2026-594e78463a (sos-4.12.0-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-594e78463a

Comment 7 Fedora Update System 2026-09-30 01:52:56 UTC
FEDORA-2026-cf80902877 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-cf80902877`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-cf80902877

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-09-30 02:13:13 UTC
FEDORA-2026-51eb024b20 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-51eb024b20`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-51eb024b20

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-09-30 02:25:56 UTC
FEDORA-2026-594e78463a has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-594e78463a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-594e78463a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-10-01 00:16:48 UTC
FEDORA-2026-cf80902877 (sos-4.12.0-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2026-10-02 01:27:27 UTC
FEDORA-2026-594e78463a (sos-4.12.0-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2026-10-08 01:40:41 UTC
FEDORA-2026-51eb024b20 (sos-4.12.0-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.