CVE-2020-7040
High · 8.1CVSS
8.1
EPSS
2.9%
Published
Jan 21, 2020
CISA due date
—
Cloudanix analysis
A backup program trusts a shared temporary file that any local user can tamper with, allowing interference that can expose or block protected data.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The application relies on a predictable pathname /tmp/storeBackup.lock for locking, enabling local symlink attacks that can redirect operations to attacker-controlled targets and result in privilege escalation or denial of service by blocking legitimate execution.
Why it matters to the business
Local attackers could obtain elevated privileges on backup systems or disrupt scheduled backups, increasing risk of unauthorized data access or loss of recoverability across affected Linux environments.
How an attack unfolds
A local attacker identifies a system running the vulnerable storeBackup script, creates a symbolic link or plain file at the fixed lock path, and waits for or triggers the script execution under elevated privileges to cause the script to follow the link or honor the blocking file.
How to fix it
Replace or patch storeBackup.pl to use secure temporary file creation with randomized names or proper locking primitives; restrict write access to /tmp via mount options or private tmp namespaces; migrate to maintained backup solutions on affected distributions including Debian, openSUSE, and Ubuntu.
How to confirm the fix worked
Inspect the storeBackup.pl source for removal of the hardcoded /tmp lock path; test execution under a non-root account to confirm the script no longer follows symlinks or blocks on attacker-created files.
Typical attack path
- Locate systems running storeBackup through 3.5
- Create symlink or blocking file at /tmp/storeBackup.lock targeting sensitive resources
- Trigger storeBackup execution via scheduled job or manual invocation
- Obtain privilege escalation or sustained denial of service
How to detect it
Search system logs and process listings for storeBackup invocations; examine /tmp for symlinks or regular files named storeBackup.lock created by non-root users around backup execution times.
- /tmp/storeBackup.lock
- storeBackup.pl
What your security team should do
- Inventory all instances of storeBackup across Linux fleets and prioritize removal or isolation
- Apply OS-level hardening such as noexec and nosymfollow on /tmp where feasible
- Replace storeBackup with supported alternatives and verify backup integrity post-migration
- Enable monitoring for unexpected files or symlinks in /tmp named storeBackup.lock
The record
storeBackup.pl in storeBackup through 3.5 relies on the /tmp/storeBackup.lock pathname, which allows symlink attacks that possibly lead to privilege escalation. (Local users can also create a plain file named /tmp/storeBackup.lock to block use of storeBackup until an admin manually deletes that file.)
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | storebackup | 0 | 3.2.1-2 |
| Debian:12 | storebackup | 0 | 3.2.1-2 |
| Debian:13 | storebackup | 0 | 3.2.1-2 |
| Debian:8 | storebackup | 0 | 3.2.1-1+deb8u1 |
| SUSE:Package Hub 15 | storeBackup | 0 | 3.5-bp151.4.3.1 |
| SUSE:Package Hub 15 SP1 | storeBackup | 0 | 3.5-bp151.4.3.1 |
| Ubuntu:16.04:LTS | storebackup | 0 | 3.2.1-1+deb8u1build0.16.04.1 |
| Ubuntu:18.04:LTS | storebackup | 0 | 3.2.1-1+deb8u1build0.18.04.1 |
| Ubuntu:20.04:LTS | storebackup | 0 | 3.2.1-1+deb8u1build0.20.04.1 |
| openSUSE:Leap 15.1 | storeBackup | 0 | 3.5-bp151.4.3.1 |
| openSUSE:Tumbleweed | storeBackup | 0 | 3.5-13.2 |
Related vulnerabilities
- CVE-2026-113724 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-113716 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-55480 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-59
- CVE-2026-90954 A flaw was found in BusyBox's dpkg-deb archive extraction. CWE-59
- CVE-2026-109274 ImageMagick before 7.1.2-32 contains a time-of-check time-of-use symlink race… CWE-59
- CVE-2026-105081 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 does not properly account for… CWE-59
- CVE-2026-108119 A flaw was found in busybox. CWE-59
- CVE-2026-12345 The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. CWE-59