Every CVE Search/ Get API key

CVE-2022-1348

A vulnerability was found in logrotate in how the state file is created. The state file is used...

6.5 MediumFix available

CVE-2022-1348 is a medium vulnerability (CVSS 6.5) in Logrotate Project Logrotate, published May 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.68%, the 76th percentile. Fixed in logrotate 3.18.0-r2.

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.68%Up 0.1 points since May 26, 2022
90%50%10%1%

What each source reports

NVD Score used 6.5

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.

Record
CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:N/I:N/A:P
Weakness
CWE-732
Updated
2026-11-02
CVE List 6.5

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.

Record
CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-732, CWE-732
Updated
2026-11-02
EUVDEUVD-2022-24670 6.5

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.

Record
EUVD-2022-24670
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-4c4j-w8hm-rjgv 6.5

A vulnerability was found in logrotate in how the state file is created. The state file is used...

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.

Record
GHSA-4c4j-w8hm-rjgv
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-732
Updated
2026-11-02
OSVALPINE-CVE-2022-1348 6.5

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.

Record
ALPINE-CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVAZL-9845 6.5

CVE-2022-1348 affecting package logrotate for versions less than 3.20.1-1

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.

Record
AZL-9845
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 12 moreShow less
OSVBELL-CVE-2022-1348 6.5

CVE-2022-1348 does not affect BellSoft software

Record
BELL-CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 6.5

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.

Record
CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-732
Updated
2026-11-02
OSVDEBIAN-CVE-2022-1348 6.5

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.

Record
DEBIAN-CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVOESA-2022-1724 6.5

logrotate security update

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files.logrotate Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size.

Security Fix(es):

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.(CVE-2022-1348)

Record
OESA-2022-1724
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2022:8393 6.2

Red Hat Security Advisory: logrotate security update

Record
RHSA-2022:8393
CVSS 3.1
6.2 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRLSA-2022:8393 6.2

Moderate: logrotate security update

The logrotate utility simplifies the administration of multiple log files by allowing their automatic rotation, compression, removal, and mailing.

Security Fix(es):

  • logrotate: potential DoS from unprivileged users via the state file (CVE-2022-1348)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 9.1 Release Notes linked from the References section.

Record
RLSA-2022:8393
CVSS 3.1
6.2 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2022-1348 6.5

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.

Record
UBUNTU-CVE-2022-1348
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVALSA-2022:8393 No score

Moderate: logrotate security update

The logrotate utility simplifies the administration of multiple log files by allowing their automatic rotation, compression, removal, and mailing.

Security Fix(es):

  • logrotate: potential DoS from unprivileged users via the state file (CVE-2022-1348)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2022:8393
Updated
2026-11-02
OSVMGASA-2022-0217 No score

Updated logrotate packages fix security vulnerability

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. (CVE-2022-1348) Note the change in permission does not apply until the first time logrotate runs after installing the update.

Record
MGASA-2022-0217
Updated
2026-11-02
OSVopenSUSE-SU-2024:12108-1 No score

logrotate-3.20.1-1.1 on GA media

These are all security issues fixed in the logrotate-3.20.1-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:12108-1
Updated
2026-11-02
OSVSUSE-SU-2022:2396-1 No score

Security update for logrotate

This update for logrotate fixes the following issues:

Security issues fixed:

  • CVE-2022-1348: Fixed insecure permissions for state file creation (bsc#1199652).
  • Improved coredump handing for SUID binaries (bsc#1192449).

Non-security issues fixed:

  • Fixed 'logrotate emits unintended warning: keyword size not properly separated, found 0x3d' (bsc#1200278, bsc#1200802).
Record
SUSE-SU-2022:2396-1
Updated
2026-11-02
OSVUSN-5447-1 No score

logrotate vulnerability

It was discovered that logrotate incorrectly handled the state file. A local attacker could possibly use this issue to keep a lock on the state file and cause logrotate to stop working, leading to a denial of service.

Record
USN-5447-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
logrotate
Alpine:v3.13
3.17.0 up to 3.18.0-r2
3.18.0-r2
logrotate
Alpine:v3.14
3.17.0 up to 3.18.1-r2
3.18.1-r2
logrotate
Alpine:v3.15
3.17.0 up to 3.18.1-r2
3.18.1-r2
logrotate
Alpine:v3.16
3.17.0 up to 3.19.0-r1
3.19.0-r1
logrotate
Alpine:v3.17
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.18
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.19
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.20
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.21
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.22
3.17.0 up to 3.20.1-r0
3.20.1-r0
Show 17 moreShow less
Affected packages
PackageAffectedFixed
logrotate
Alpine:v3.23
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
Alpine:v3.24
3.17.0 up to 3.20.1-r0
3.20.1-r0
logrotate
AlmaLinux:9
before 3.18.0-7.el9
3.18.0-7.el9
logrotate
Azure Linux:2
before 3.20.1-1
3.20.1-1
logrotate
Debian:12
before 3.20.1-1
3.20.1-1
logrotate
Debian:13
before 3.20.1-1
3.20.1-1
logrotate
Debian:14
before 3.20.1-1
3.20.1-1
logrotate
Mageia:8
before 3.17.0-3.1.mga8
3.17.0-3.1.mga8
logrotate
openEuler:22.03-LTS
before 3.20.1-1.oe2203
3.20.1-1.oe2203
logrotate
Red Hat:enterprise_linux:9::baseos
before 0:3.18.0-7.el9
0:3.18.0-7.el9
logrotate-debuginfo
Red Hat:enterprise_linux:9::baseos
before 0:3.18.0-7.el9
0:3.18.0-7.el9
logrotate-debugsource
Red Hat:enterprise_linux:9::baseos
before 0:3.18.0-7.el9
0:3.18.0-7.el9
logrotate
Rocky Linux:9
before 0:3.18.0-7.el9
0:3.18.0-7.el9
logrotate
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 3.18.1-150400.3.7.1
3.18.1-150400.3.7.1
logrotate
openSUSE:Leap 15.4
before 3.18.1-150400.3.7.1
3.18.1-150400.3.7.1
logrotate
Ubuntu:22.04:LTS
before 3.19.0-1ubuntu1.1, plus listed versions
3.18.0-2ubuntu13.18.0-2ubuntu23.18.1-2ubuntu13.19.0-1ubuntu1
3.19.0-1ubuntu1.1
logrotate
openSUSE:Tumbleweed
before 3.20.1-1.1
3.20.1-1.1

History

History
WhenChangedSources
2026-11-02createdCVE List, EUVD, GitHub Advisories, NVD, OSV

References

Show 31 moreShow less
MoveEnter Open