Vulnerability · Published Apr 16, 2023 · Assigned by mitre
CVE-2022-37704
Medium 6.7
In plain English
A medium-severity command injection 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 0.5% (higher than 45% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Amanda 3.5.1 allows privilege escalation from the regular user backup to root. The SUID binary located at /lib/amanda/rundump will execute /usr/sbin/dump as root with controlled arguments from the attacker which may lead to escalation of privileges, denial of service, and information disclosure.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37704 |
| Debian:13 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37704 |
| Debian:14 | amanda | 1:3.5.1-10 | DEBIAN-CVE-2022-37704 |
| 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-37704 |
Affected products (as reported)
Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- http://www.amanda.org/
- https://github.com/MaherAzzouzi/CVE-2022-37704
- https://github.com/zmanda/amanda/issues/192
- https://marc.info/?l=amanda-hackers
- [debian-lts-announce] 20230221 [SECURITY] [DLA 3330-1] amanda security update mailing-list
- FEDORA-2023-3d0619d767 vendor-advisory
- FEDORA-2023-1293196f34 vendor-advisory
- FEDORA-2023-e295804b3d vendor-advisory
- https://github.com/zmanda/amanda/pull/197
- https://github.com/zmanda/amanda/pull/205
- https://github.com/zmanda/amanda/releases/tag/tag-community-3.5.3
- https://lists.debian.org/debian-lts-announce/2024/09/msg00023.html