amanda: runtar: crafted arguments can lead to local privilege escalation
Published Apr 16, 2023
6.7
MEDIUMCVSS 3.1
EPSS 1.26%
Description
A privilege escalation flaw was found in Amanda 3.5.1 in which the backup user can acquire root privileges. The vulnerable component is the runtar SUID program, which is a wrapper to run /usr/bin/tar with specific arguments that are controllable by the attacker. This program mishandles the arguments passed to tar binary (it expects that the argument name and value are separated with a space; however, separating them with an equals sign is also supported),
Affected products
No data.
No data.
Red Hat Enterprise Linux 6
amanda
Out of support scope
Red Hat Enterprise Linux 7
amanda
Out of support scope
Red Hat Enterprise Linux 8
amanda
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | amanda | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | amanda | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | amanda | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This flaw has been rated Low on Red Hat Enterprise Linux since unprivileged users can't pass arbitrary arguments to the `runtar` SUID binary. By default, only users in the "disk" group can execute the `runtar` binary on RHEL.
References (18)
- http://www.amanda.org/ Product
- https://access.redhat.com/security/cve/CVE-2022-37705 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2167744 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-40319 Advisory
- https://github.com/MaherAzzouzi/CVE-2022-37705 ExploitThird Party Advisory
- https://github.com/zmanda/amanda/issues/192
- https://github.com/zmanda/amanda/pull/194 Patch
- https://github.com/zmanda/amanda/pull/196 Patch
- https://github.com/zmanda/amanda/pull/204 Patch
- https://github.com/zmanda/amanda/releases/tag/tag-community-3.5.3
- https://lists.debian.org/debian-lts-announce/2023/12/msg00003.html mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00023.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5DCLSX5YYTWMKSMDL67M5STZ5ZDSOXK/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ATMGMVS3QDN6OMKMHGUTUTU7NS7HR3BZ/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYREA6LFXF5M7K4WLNJV5VNQPS4MTBW2/ vendor-advisory
- https://marc.info/?l=amanda-hackers
- https://nvd.nist.gov/vuln/detail/CVE-2022-37705
- https://www.cve.org/CVERecord?id=CVE-2022-37705
Change history (0)
No recorded changes yet.