CVEfocus › CVE database › CVE-2022-1348

CVE-2022-1348

CVSS 6.5 MediumEPSS 1.7% (higher than 77% of CVEs)Published 2022-05-25Updated 2025-06-09Assigner: redhat

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.

CWE-732

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

19Fixed
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04logrotateFixed3.19.0-1ubuntu1.1UBUNTU-CVE-2022-1348
Ubuntu 20.04logrotateNot affected
vulnerable_code_not_present
Ubuntu 18.04logrotateNot affected
vulnerable_code_not_present
Debian 14logrotateFixed3.20.1-1DEBIAN-CVE-2022-1348
Debian 13logrotateFixed3.20.1-1DEBIAN-CVE-2022-1348
Debian 12logrotateFixed3.20.1-1DEBIAN-CVE-2022-1348
Red Hat Enterprise Linux 9logrotateFixed0:3.18.0-7.el9RHSA-2022:8393
Red Hat Enterprise Linux 8logrotateNot affected
Red Hat Enterprise Linux 7logrotateNot affected
Red Hat Enterprise Linux 6logrotateNot affected
AlmaLinux 9logrotateFixed3.18.0-7.el9ALSA-2022:8393
Rocky Linux 9logrotateFixed0:3.18.0-7.el9RLSA-2022:8393
Alpine Linux 3.24logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.23logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.22logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.21logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.20logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.19logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.18logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.17logrotateFixed3.20.1-r0ALPINE-CVE-2022-1348
Alpine Linux 3.16logrotateFixed3.19.0-r1ALPINE-CVE-2022-1348
Alpine Linux 3.15logrotateFixed3.18.1-r2ALPINE-CVE-2022-1348
Alpine Linux 3.14logrotateFixed3.18.1-r2ALPINE-CVE-2022-1348
Alpine Linux 3.13logrotateFixed3.18.0-r2ALPINE-CVE-2022-1348

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.