Incorrect permission assignment in logrotate
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | logrotate | logrotate versions before 3.20.0 | — | No fix listed | CNA |
- logrotate Vendor— Affected logrotate versions before 3.20.0 Fixed in — No fix listed CNA
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:logrotate_project:logrotate:*:*:*:*:*:*:*:* | 3.17.0 to before 3.20.0 | Vulnerable | Logrotate Project |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
- cpe:2.3:a:logrotate_project:logrotate:*:*:*:*:*:*:*:* Versions 3.17.0 to before 3.20.0 Vulnerable ·Logrotate Project
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
Remediation
Red Hat 1 advisory
- RHSA-2022:8393 Released 2022-11-15 · Red Hat rating Moderatelogrotate security update
- Red Hat Enterprise Linux BaseOS (v. 9) logrotate-3.18.0-7.el9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2022:8393 |
Not affected: 4 products
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-1348
- 2026-10-03 Alias added: GHSA-4c4j-w8hm-rjgv
References
Patch 2
Sources
- CVE-2022-1348 · CVE Program
- CVE-2022-1348 · NVD
- FIRST EPSS
- GHSA-4c4j-w8hm-rjgv · GitHub Advisory Database · CC BY 4.0
- CVE-2022-1348 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences