
CVE catalog
CVE-2022-1348
logrotate: CVE-2022-1348
- Severity
- Medium · CVSS 6.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | logrotate | sid | 3.22.0-1 | fixed |
| Debian | logrotate | forky | 3.22.0-1 | fixed |
| Debian | logrotate | trixie | 3.22.0-1 | fixed |
| Debian | logrotate | bookworm | 3.21.0-1 | fixed |
| Ubuntu | logrotate | 22.04 | 3.18.0-2ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.18.0-2ubuntu2 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.18.1-2ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.19.0-1ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.19.0-1ubuntu1.1 | fixed |
| Ubuntu | logrotate | 22.04 | 3.18.0-2ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.18.0-2ubuntu2 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.18.1-2ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.19.0-1ubuntu1 | vulnerable |
| Ubuntu | logrotate | 22.04 | 3.19.0-1ubuntu1.1 | fixed |
| Suse | logrotate | linux enterprise module for basesystem 15 sp4 | 3.18.1-150400.3.7.1 | fixed |
| Opensuse | logrotate | leap 15.4 | 3.18.1-150400.3.7.1 | fixed |
| Opensuse | logrotate | tumbleweed | 3.20.1-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | logrotate | source | sid | 3.20.1-1 | not yet assigned | Not reported | [1011644] |
| Debian | logrotate | source | forky | 3.20.1-1 | not yet assigned | Not reported | [1011644] |
| Debian | logrotate | source | trixie | 3.20.1-1 | not yet assigned | Not reported | [1011644] |
| Debian | logrotate | source | bookworm | 3.20.1-1 | not yet assigned | Not reported | [1011644] |
| Ubuntu | logrotate | deb | 22.04 | 3.19.0-1ubuntu1.1 | Not reported | USN-5447-1 | Not reported |
| Ubuntu | logrotate | deb | 22.04 | 3.19.0-1ubuntu1.1 | Not reported | UBUNTU-CVE-2022-1348 | Not reported |
| Suse | logrotate | rpm | linux enterprise module for basesystem 15 sp4 | 3.18.1-150400.3.7.1 | Not reported | SUSE-SU-2022:2396-1 | Not reported |
| Opensuse | logrotate | rpm | leap 15.4 | 3.18.1-150400.3.7.1 | Not reported | SUSE-SU-2022:2396-1 | Not reported |
| Opensuse | logrotate | rpm | tumbleweed | 3.20.1-1.1 | Not reported | OPENSUSE-SU-2024:12108-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [logrotate]Fixed
Details (2)
3.21.0-1· amd64 · bookwormFixed · Fixed:
3.20.1-1dsa · logrotate · debian · bookworm
3.21.0-1· arm64 · bookwormFixed · Fixed:
3.20.1-1dsa · logrotate · debian · bookworm
[openSUSE Tumbleweed]
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:8393]
- [https://cert-portal.siemens.com/productcert/csaf/ssa-806742.json]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2022_2396-1.json]
- [https://osv.dev/vulnerability/SUSE-SU-2022:2396-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-1348]
- [https://osv.dev/vulnerability/USN-5447-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12108-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-1348]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0561.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]