# CVE-2022-1348: A vulnerability was found in logrotate in how the state file is created.

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.68%, higher than 77% of CVEs (2026-12-02)
- Published: 2022-05-25T15:13:39.000Z
- Modified: 2026-06-17T04:22:15.870Z
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- logrotate: logrotate versions before 3.20.0
- logrotate_project logrotate: from 3.17.0 before 3.20.0
- fedoraproject fedora: 35; 36

## Every score

- CISA-ADP: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348> (issue-tracking, patch, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/05/25/3> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/05/25/4> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/05/25/5> (mailing-list, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-1348](https://www.cve.org/CVERecord?id=CVE-2022-1348), CVE Terms of Use, modified 2025-06-09
- NVD: [CVE-2022-1348](https://nvd.nist.gov/vuln/detail/CVE-2022-1348), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1348 · Whole record: https://cve.day/CVE-2022-1348.json · Rebuilt by cve.day 2026-11-25T22:58:11.932Z
