CVE-2022-1348
A vulnerability was found in logrotate in how the state file is created. The state file is used...
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
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 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.0 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
logrotateAlpine:v3.13 |
3.17.0 up to 3.18.0-r2 | 3.18.0-r2 |
logrotateAlpine:v3.14 |
3.17.0 up to 3.18.1-r2 | 3.18.1-r2 |
logrotateAlpine:v3.15 |
3.17.0 up to 3.18.1-r2 | 3.18.1-r2 |
logrotateAlpine:v3.16 |
3.17.0 up to 3.19.0-r1 | 3.19.0-r1 |
logrotateAlpine:v3.17 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.18 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.19 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.20 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.21 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.22 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
logrotateAlpine:v3.23 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlpine:v3.24 |
3.17.0 up to 3.20.1-r0 | 3.20.1-r0 |
logrotateAlmaLinux:9 |
before 3.18.0-7.el9 | 3.18.0-7.el9 |
logrotateAzure Linux:2 |
before 3.20.1-1 | 3.20.1-1 |
logrotateDebian:12 |
before 3.20.1-1 | 3.20.1-1 |
logrotateDebian:13 |
before 3.20.1-1 | 3.20.1-1 |
logrotateDebian:14 |
before 3.20.1-1 | 3.20.1-1 |
logrotateMageia:8 |
before 3.17.0-3.1.mga8 | 3.17.0-3.1.mga8 |
logrotateopenEuler:22.03-LTS |
before 3.20.1-1.oe2203 | 3.20.1-1.oe2203 |
logrotateRed Hat:enterprise_linux:9::baseos |
before 0:3.18.0-7.el9 | 0:3.18.0-7.el9 |
logrotate-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:3.18.0-7.el9 | 0:3.18.0-7.el9 |
logrotate-debugsourceRed Hat:enterprise_linux:9::baseos |
before 0:3.18.0-7.el9 | 0:3.18.0-7.el9 |
logrotateRocky Linux:9 |
before 0:3.18.0-7.el9 | 0:3.18.0-7.el9 |
logrotateSUSE:Linux Enterprise Module for Basesystem 15 SP4 |
before 3.18.1-150400.3.7.1 | 3.18.1-150400.3.7.1 |
logrotateopenSUSE:Leap 15.4 |
before 3.18.1-150400.3.7.1 | 3.18.1-150400.3.7.1 |
logrotateUbuntu: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 |
logrotateopenSUSE:Tumbleweed |
before 3.20.1-1.1 | 3.20.1-1.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348
openwall.com/lists/oss-security/2022/05/25/3
openwall.com/lists/oss-security/2022/05/25/4
openwall.com/lists/oss-security/2022/05/25/5
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ
Show 31 moreShow less
nvd.nist.gov/vuln/detail/CVE-2022-1348
lists.fedoraproject.org/archives/list/[email protected]/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ
lists.fedoraproject.org/archives/list/[email protected]/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR
github.com/advisories/GHSA-4c4j-w8hm-rjgv
security.alpinelinux.org/vuln/CVE-2022-1348
access.redhat.com/errata/RHSA-2022:8393
access.redhat.com/security/cve/CVE-2022-1348
bugzilla.redhat.com/2075074
errata.almalinux.org/9/ALSA-2022-8393.html
docs.bell-sw.com/security/cves/CVE-2022-1348
github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1348.json
security-tracker.debian.org/tracker/CVE-2022-1348
advisories.mageia.org/MGASA-2022-0217.html
bugs.mageia.org/show_bug.cgi?id=30473
ubuntu.com/security/notices/USN-5447-1
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1724
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/9.1_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2075074
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_8393.json
cve.org/CVERecord?id=CVE-2022-1348
errata.rockylinux.org/RLSA-2022:8393
suse.com/support/update/announcement/2022/suse-su-20222396-1
bugzilla.suse.com/1192449
bugzilla.suse.com/1199652
bugzilla.suse.com/1200278
bugzilla.suse.com/1200802
suse.com/security/cve/CVE-2022-1348
ubuntu.com/security/CVE-2022-1348
github.com/logrotate/logrotate/blame/master/logrotate.c
github.com/logrotate/logrotate/commit/f46d0bdfc9c53515c13880c501f4d2e1e7dd8b25