CVE-2022-1348: A vulnerability was found in logrotate in how the state file is created
CVE-2022-1348 is a medium-severity flaw (CVSS 6.5) affecting logrotate, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.7% (top 23%) |
| CISA exploited list | No |
| Weakness | CWE-732 |
| Published | 2022-05-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-1348?
logrotate: upgrade to 3.20.0; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-1348 being exploited?
CVE-2022-1348 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-1348 affect?
CVE-2022-1348 affects logrotate, fedora. Severity is medium (CVSS 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
How urgent is CVE-2022-1348?
Priority 42/100. No elevated risk signals yet.