Amanda Backup System - Privilege Escalation and Information Leak

amanda Updated 02 Oct 2025

Summary

03/12/2023
N/A
Yes i
Unrated
Not published

DLA-3681-1: amanda - security update. Affects amanda versions < 1:3.5.1-2+deb10u2. Fixed in 1:3.5.1-2+deb10u2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Amanda is a backup system designed to archive multiple computers on a network to a single tape drive. It provides a centralized solution for data backup and recovery. However, certain vulnerabilities have been discovered in Amanda that could potentially lead to privilege escalation and information leakage.

Vulnerability Detail

The first vulnerability, identified as CVE-2022-37703, involves an information leak in the calcsize SUID binary. Attackers can exploit this vulnerability to determine the existence of directories in the filesystem. The binary does not properly validate the path provided by the attacker, allowing them to specify an arbitrary path and execute opendir() as root.

The second vulnerability, CVE-2022-37705, is a privilege escalation flaw in the runtar SUID program. This program acts as a wrapper for the tar binary and allows the backup user to run tar with specific arguments. However, the program mishandles the arguments passed to the tar binary, enabling the attacker to acquire root privileges.

The third vulnerability, CVE-2023-30577, affects the runtar SUID binary as well. It can accept potentially malicious GNU tar options if fed with a non-argument option starting with "--exclude". This flaw could lead to the execution of scripts or binaries with root permissions.

How To Fix

Minimum fixed version

1:3.5.1-2+deb10u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade amanda

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The Amanda backup system is susceptible to privilege escalation and information leakage vulnerabilities. To mitigate these risks, it is crucial to update the amanda packages to version 1:3.5.1-2+deb10u2 or later. For further assistance or support in addressing these vulnerabilities, please contact DevNack.com.

See every vulnerability recorded for amanda →

Share this vulnerability

FAQ

CVE-2022-37703 allows an attacker to determine the existence of directories in the filesystem. This information leakage can potentially aid in further attacks or reconnaissance.

CVE-2022-37705 enables the backup user to escalate their privileges to root. By manipulating the arguments passed to the runtar SUID program, an attacker can execute arbitrary commands with elevated permissions.

CVE-2023-30577 poses a risk of executing scripts or binaries with root permissions. If an attacker can provide a non-argument option starting with "--exclude" to the runtar SUID binary, they can pass malicious options to the underlying tar binary.

To check the version of amanda installed on your system, you can use the following command:

$ amcheck -V

No specific workarounds have been mentioned for these vulnerabilities. It is recommended to apply the provided fix by upgrading to the latest version of the amanda packages.

Related vulnerabilities

Recent vulnerabilities recorded for amanda.

How To Fix

Minimum fixed version

1:3.5.1-2+deb10u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade amanda

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback