CVE catalog

CVE-2022-1348

logrotate: CVE-2022-1348

[CVE catalog]

Severity
Medium · CVSS 6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H/E:P/RL:O/RC:C
Published
Source
[NVD] · [CVE record]
EPSS
1.68% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlogrotatesid3.22.0-1fixed
Debianlogrotateforky3.22.0-1fixed
Debianlogrotatetrixie3.22.0-1fixed
Debianlogrotatebookworm3.21.0-1fixed
Ubuntulogrotate22.043.18.0-2ubuntu1vulnerable
Ubuntulogrotate22.043.18.0-2ubuntu2vulnerable
Ubuntulogrotate22.043.18.1-2ubuntu1vulnerable
Ubuntulogrotate22.043.19.0-1ubuntu1vulnerable
Ubuntulogrotate22.043.19.0-1ubuntu1.1fixed
Ubuntulogrotate22.043.18.0-2ubuntu1vulnerable
Ubuntulogrotate22.043.18.0-2ubuntu2vulnerable
Ubuntulogrotate22.043.18.1-2ubuntu1vulnerable
Ubuntulogrotate22.043.19.0-1ubuntu1vulnerable
Ubuntulogrotate22.043.19.0-1ubuntu1.1fixed
Suselogrotatelinux enterprise module for basesystem 15 sp43.18.1-150400.3.7.1fixed
Opensuselogrotateleap 15.43.18.1-150400.3.7.1fixed
Opensuselogrotatetumbleweed3.20.1-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlogrotatesourcesid3.20.1-1not yet assignedNot reported[1011644]
Debianlogrotatesourceforky3.20.1-1not yet assignedNot reported[1011644]
Debianlogrotatesourcetrixie3.20.1-1not yet assignedNot reported[1011644]
Debianlogrotatesourcebookworm3.20.1-1not yet assignedNot reported[1011644]
Ubuntulogrotatedeb22.043.19.0-1ubuntu1.1Not reportedUSN-5447-1Not reported
Ubuntulogrotatedeb22.043.19.0-1ubuntu1.1Not reportedUBUNTU-CVE-2022-1348Not reported
Suselogrotaterpmlinux enterprise module for basesystem 15 sp43.18.1-150400.3.7.1Not reportedSUSE-SU-2022:2396-1Not reported
Opensuselogrotaterpmleap 15.43.18.1-150400.3.7.1Not reportedSUSE-SU-2022:2396-1Not reported
Opensuselogrotaterpmtumbleweed3.20.1-1.1Not reportedOPENSUSE-SU-2024:12108-1Not reported

[Debian bug #1011644]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [logrotate]Fixed
    Details (2)
    • 3.21.0-1 · amd64 · bookworm

      Fixed · Fixed: 3.20.1-1

      dsa · logrotate · debian · bookworm

    • 3.21.0-1 · arm64 · bookworm

      Fixed · Fixed: 3.20.1-1

      dsa · logrotate · debian · bookworm

[openSUSE Tumbleweed]

  • [logrotate]Fixed

    Source package: [logrotate]

    Details (1)
    • 3.22.0-2.6 · x86_64 · tumbleweed

      Fixed · Fixed: 3.20.1-1.1

      dsa · logrotate · opensuse · tumbleweed

Observed:

References