Vulnerability · Published Apr 16, 2023 · Assigned by mitre
CVE-2022-37705
Medium 6.7
In plain English
A medium-severity security flaw in the amanda package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37705 |
| Debian:13 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37705 |
| Debian:14 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37705 |
| Ubuntu:22.04:LTS | amanda | 1:3.5.1-8ubuntu1.1 | USN-5966-1 |
| Ubuntu:22.04:LTS | amanda | 1:3.5.1-8ubuntu1.3 | USN-5966-3 |
| Ubuntu:22.04:LTS | amanda | 1:3.5.1-8ubuntu1.3 | UBUNTU-CVE-2022-37705 |
Affected products (as reported)
References
- http://www.amanda.org/
- https://github.com/MaherAzzouzi/CVE-2022-37705
- https://github.com/zmanda/amanda/issues/192
- https://marc.info/?l=amanda-hackers
- FEDORA-2023-3d0619d767 vendor-advisory
- FEDORA-2023-1293196f34 vendor-advisory
- FEDORA-2023-e295804b3d vendor-advisory
- https://github.com/zmanda/amanda/pull/194
- https://github.com/zmanda/amanda/pull/196
- https://github.com/zmanda/amanda/pull/204
- https://github.com/zmanda/amanda/releases/tag/tag-community-3.5.3
- [debian-lts-announce] 20231203 [SECURITY] [DLA 3681-1] amanda security update mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00023.html