CVE-2022-37705
Description
A privilege escalation flaw in Amanda 3.5.1 allows the backup user to gain root access via crafted arguments to the runtar SUID binary.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A privilege escalation flaw in Amanda 3.5.1 allows the backup user to gain root access via crafted arguments to the runtar SUID binary.
Vulnerability
A privilege escalation vulnerability exists in Amanda 3.5.1 within the runtar SUID binary, which is a wrapper for /usr/bin/tar. The program fails to properly validate arguments passed to tar; it expects arguments in the form --ARG VALUE but also accepts --ARG=VALUE as a single argument. This discrepancy allows an attacker to inject malicious options that bypass the intended argument filtering [2]. The affected component is the runtar binary, and the flawed logic is in runtar.c starting at line 162 [2].
Exploitation
An attacker must have local access as the backup user (or any user in the backup group). The exploit involves executing runtar with crafted arguments such as --checkpoint-action=exec=/bin/sh to spawn a root shell. The PoC provided in [2] demonstrates the exact command: ./runtar NOCONFIG tar --create --file=/dev/null --checkpoint=1 --directory=. --checkpoint-action=exec=/bin/sh /dev/null. This causes tar to execute the specified command with root privileges due to the SUID bit on runtar.
Impact
Successful exploitation grants the attacker full root privileges on the system. This leads to complete compromise, including arbitrary code execution, information disclosure (e.g., reading /etc/shadow), denial of service, and privilege escalation from the backup user to root [2]. The attacker can perform any action as the superuser.
Mitigation
The vulnerability is fixed in Amanda version 3.5.3, released on March 15, 2023 [1]. The fix is described in pull requests [3] and [4], which adjust the argument counting logic in runtar.c to correctly handle --ARG=VALUE syntax. Users should upgrade to Amanda 3.5.3 or later. No workaround is available for version 3.5.1; upgrading is the only mitigation.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
5- osv-coords3 versionspkg:rpm/opensuse/amanda&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/amanda&distro=openSUSE%20Tumbleweedpkg:rpm/suse/amanda&distro=SUSE%20Package%20Hub%2015%20SP4
< 3.5.1-bp154.3.3.1+ 2 more
- (no CPE)range: < 3.5.1-bp154.3.3.1
- (no CPE)range: < 3.5.2-3.1
- (no CPE)range: < 3.5.1-bp154.3.3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
11- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5DCLSX5YYTWMKSMDL67M5STZ5ZDSOXK/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ATMGMVS3QDN6OMKMHGUTUTU7NS7HR3BZ/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYREA6LFXF5M7K4WLNJV5VNQPS4MTBW2/mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2023/12/msg00003.htmlmitremailing-list
- www.amanda.orgmitre
- github.com/zmanda/amanda/issues/192mitre
- github.com/zmanda/amanda/pull/194mitre
- github.com/zmanda/amanda/pull/196mitre
- github.com/zmanda/amanda/pull/204mitre
- github.com/zmanda/amanda/releases/tag/tag-community-3.5.3mitre
- marc.infomitre
News mentions
0No linked articles in our index yet.