Bug 2491337

Summary: 7-zip under the root account cannot extract RAR archives
Product: [Fedora] Fedora Reporter: Artem S. Tashkinov <aros>
Component: 7zipAssignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: davide, michel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 7zip-26.02-1.fc45 7zip-26.02-1.fc44 7zip-26.02-1.el10_3 7zip-26.02-1.el10_2 7zip-26.02-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-01 17:55:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2496816    

Description Artem S. Tashkinov 2026-06-22 13:13:29 UTC
Bug 2373874 was never fixed despite being promptly closed.

Reproducible: Always

Steps to Reproduce:
1. sudo su - or login under the root user
2. try to unpack any rar file
Actual Results:

7z t test.rar

7-Zip 26.01 (x64) : Copyright (c) 1999-2026 Igor Pavlov : 2026-04-27
 64-bit locale=en_US.UTF-8 Threads:16 OPEN_MAX:4096

Scanning the drive for archives:
1 file, 34567890 bytes (33 MiB)

Testing archive: test.rar
ERROR: test.rar
Cannot open the file as archive

    
Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0


Expected Results:
RAR archives being extracted or listed.

Additional Information:
This is a fallout from the patch only Fedora applies.

The PR to fix it https://src.fedoraproject.org/rpms/7zip/pull-request/8 does not fix it and cannot fix it, because it's possible to create symlinks/hardlinks from /usr/bin/7z to other arbitrary locations and 7-zip will fail.

As far as I understand,

 * the .so library path required could be hardcoded
 * the initial .so relocation patch could be dropped
 * or there's something else I haven't thought of

Comment 1 Michel Lind 2026-06-25 20:04:42 UTC
If it's only affecting the root account please don't mark this urgent

Comment 2 Fedora Update System 2026-07-01 16:05:06 UTC
FEDORA-2026-95324626e1 (7zip-26.02-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-95324626e1

Comment 3 Fedora Update System 2026-07-01 17:55:14 UTC
FEDORA-2026-95324626e1 (7zip-26.02-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-07-01 18:18:41 UTC
FEDORA-EPEL-2026-3fe498f2b2 (7zip-26.02-1.el10_2) has been submitted as an update to Fedora EPEL 10.2.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-3fe498f2b2

Comment 5 Fedora Update System 2026-07-01 18:18:42 UTC
FEDORA-2026-7eaa63bea6 (7zip-26.02-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7eaa63bea6

Comment 6 Fedora Update System 2026-07-01 18:18:42 UTC
FEDORA-EPEL-2026-d5aafceb15 (7zip-26.02-1.el10_3) has been submitted as an update to Fedora EPEL 10.3.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-d5aafceb15

Comment 7 Fedora Update System 2026-07-01 18:18:45 UTC
FEDORA-EPEL-2026-f9c4dcd003 (7zip-26.02-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-f9c4dcd003

Comment 8 Fedora Update System 2026-07-01 18:18:45 UTC
FEDORA-2026-948b74882b (7zip-26.02-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-948b74882b

Comment 9 Fedora Update System 2026-07-02 01:21:20 UTC
FEDORA-EPEL-2026-d5aafceb15 has been pushed to the Fedora EPEL 10.3 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-d5aafceb15

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

Comment 10 Fedora Update System 2026-07-02 01:29:59 UTC
FEDORA-EPEL-2026-3fe498f2b2 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-3fe498f2b2

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

Comment 11 Fedora Update System 2026-07-02 01:36:14 UTC
FEDORA-EPEL-2026-f9c4dcd003 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-f9c4dcd003

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

Comment 12 Fedora Update System 2026-07-02 01:41:59 UTC
FEDORA-2026-948b74882b 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-948b74882b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-948b74882b

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

Comment 13 Fedora Update System 2026-07-02 02:07:50 UTC
FEDORA-2026-7eaa63bea6 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-7eaa63bea6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7eaa63bea6

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

Comment 14 Fedora Update System 2026-07-03 00:56:25 UTC
FEDORA-2026-948b74882b (7zip-26.02-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Michel Lind 2026-07-03 12:16:14 UTC
See 2496816 (that I'm linking) for exploring restoring decompression support for RAR. Since the updates just pushed fix the root path situation but RAR support is explicitly disabled right now (and we can probably relax it to just disabling compression)

Comment 16 Fedora Update System 2026-07-04 00:38:42 UTC
FEDORA-EPEL-2026-d5aafceb15 (7zip-26.02-1.el10_3) has been pushed to the Fedora EPEL 10.3 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2026-07-04 00:49:00 UTC
FEDORA-EPEL-2026-3fe498f2b2 (7zip-26.02-1.el10_2) has been pushed to the Fedora EPEL 10.2 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2026-07-04 01:07:14 UTC
FEDORA-2026-7eaa63bea6 (7zip-26.02-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.