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.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.7%top 23.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:9logrotate3.18.0-7.el9ALSA-2022:8393
Alpine:v3.20logrotate3.20.1-r0ALPINE-CVE-2022-1348
Alpine:v3.21logrotate3.20.1-r0ALPINE-CVE-2022-1348
Alpine:v3.22logrotate3.20.1-r0ALPINE-CVE-2022-1348
Alpine:v3.23logrotate3.20.1-r0ALPINE-CVE-2022-1348
Alpine:v3.24logrotate3.20.1-r0ALPINE-CVE-2022-1348
Debian:12logrotate3.20.1-1DEBIAN-CVE-2022-1348
Debian:13logrotate3.20.1-1DEBIAN-CVE-2022-1348
Debian:14logrotate3.20.1-1DEBIAN-CVE-2022-1348
Rocky Linux:9logrotate0:3.18.0-7.el9RLSA-2022:8393
Ubuntu:22.04:LTSlogrotate3.19.0-1ubuntu1.1USN-5447-1
Ubuntu:22.04:LTSlogrotate3.19.0-1ubuntu1.1UBUNTU-CVE-2022-1348

Affected products (as reported)

VendorProductVersions
n/a logrotate logrotate versions before 3.20.0

Weakness: CWE-732 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References