Vulnerability · Published May 25, 2022 · Assigned by redhat
CVE-2022-1348
Medium 6.5
In plain English
A medium-severity incorrect permission assignment in logrotate. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in logrotate in how the state file is created. The state file is used to prevent parallel executions of multiple instances of logrotate by acquiring and releasing a file lock. When the state file does not exist, it is created with world-readable permission, allowing an unprivileged user to lock the state file, stopping any rotation. This flaw affects logrotate versions before 3.20.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | logrotate | 3.18.0-7.el9 | ALSA-2022:8393 |
| Alpine:v3.20 | logrotate | 3.20.1-r0 | ALPINE-CVE-2022-1348 |
| Alpine:v3.21 | logrotate | 3.20.1-r0 | ALPINE-CVE-2022-1348 |
| Alpine:v3.22 | logrotate | 3.20.1-r0 | ALPINE-CVE-2022-1348 |
| Alpine:v3.23 | logrotate | 3.20.1-r0 | ALPINE-CVE-2022-1348 |
| Alpine:v3.24 | logrotate | 3.20.1-r0 | ALPINE-CVE-2022-1348 |
| Debian:12 | logrotate | 3.20.1-1 | DEBIAN-CVE-2022-1348 |
| Debian:13 | logrotate | 3.20.1-1 | DEBIAN-CVE-2022-1348 |
| Debian:14 | logrotate | 3.20.1-1 | DEBIAN-CVE-2022-1348 |
| Rocky Linux:9 | logrotate | 0:3.18.0-7.el9 | RLSA-2022:8393 |
| Ubuntu:22.04:LTS | logrotate | 3.19.0-1ubuntu1.1 | USN-5447-1 |
| Ubuntu:22.04:LTS | logrotate | 3.19.0-1ubuntu1.1 | UBUNTU-CVE-2022-1348 |
Affected products (as reported)
Weakness: CWE-732 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348 x_refsource_MISC
- [oss-security] 20220525 Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list, x_refsource_MLIST
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list, x_refsource_MLIST
- [oss-security] 20220525 Re: Re: CVE-2022-1348 logrotate: potential DoS from unprivileged users via the state file mailing-list, x_refsource_MLIST
- FEDORA-2022-87c0f05204 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-ff0188b37c vendor-advisory, x_refsource_FEDORA