CVE-2022-1348 json
A vulnerability was found in logrotate in how the state file is created.
published 2022-05-25 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-24670
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- logrotate_project logrotate 3.20.0
- logrotate Debian 14, Debian 13, Debian 12 3.20.1-1
debian advisories DEBIAN-CVE-2022-1348
- logrotate Ubuntu 22.04 LTS 3.19.0-1ubuntu1.1
ubuntu advisories UBUNTU-CVE-2022-1348
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- logrotate RHEL 9 3.18.0-7.el9
red hat advisories RHSA-2022:8393
- logrotate SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 3.18.1-150400.3.7.1
suse advisories SUSE-SU-2022:2396-1
- logrotate openSUSE Tumbleweed 3.20.1-1.1
opensuse advisories openSUSE-SU-2024:12108-1
- logrotate AlmaLinux 9 3.18.0-7.el9
almalinux advisories ALSA-2022:8393
- logrotate Rocky Linux 9 3.18.0-7.el9
rocky linux advisories RLSA-2022:8393
- logrotate Alpine 3.13 3.18.0-r2
- logrotate Alpine 3.15, Alpine 3.14 3.18.1-r2
- logrotate Alpine 3.16 3.19.0-r1
- logrotate Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 3.20.1-r0
alpine advisories ALPINE-CVE-2022-1348
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-1348 updated cvss 6.2
logrotate: potential DoS from unprivileged users via the state file
-
Red Hat Enterprise Linux BaseOS (v. 9) logrotate 3.18.0-7.el9fixed: vendor fix RHSA-2022:8393
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/volsync-mover-rclone-rhel8 Red Hat Enterprise Linux 6 logrotate Red Hat Enterprise Linux 7 logrotate Red Hat Enterprise Linux 8 logrotatenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-046-11 updated cvss 6.5
Siemens SCALANCE XCM-/XRM-300
-
Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4affected: fixed in V2.4 support.industry.siemens.com
+5 more productsfewer
Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
1.68% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected products
- n/a logrotate
Classification
- Weakness
-
- CWE-732 Incorrect Permission Assignment for Critical Resource
References
-
bugzilla.redhat.com
/show_bug.cgi?id=CVE-2022-1348
issue-tracking, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2022/05/25/5
mailing-list, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/
vendor-advisory
-
openwall.com
/lists/oss-security/2022/05/25/3
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2022/05/25/4
mailing-list, third-party-advisory
Sources
- CVE List CVE-2022-1348
- NVD CVE-2022-1348
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.