{"id":"CVE-2022-1348","details":"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.","modified":"2026-08-12T03:51:33.381288262Z","published":"2022-05-25T15:13:39Z","related":["ALSA-2022:8393","SUSE-SU-2022:2396-1","openSUSE-SU-2024:12108-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-732"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1348.json","unresolved_ranges":[{"extracted_events":[{"fixed":"3.20.0"}],"source":"DESCRIPTION"}]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1348.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1348"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/05/25/3"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/05/25/4"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2022/05/25/5"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/logrotate/logrotate","events":[{"introduced":"a7840f55f95382b6a3b56e0bd42028ef4cd4ad5b"},{"fixed":"b8b1750933f876f6e844f2958b77a380e98bc7b4"}],"database_specific":{"cpe":"cpe:2.3:a:logrotate_project:logrotate:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"3.17.0"},{"fixed":"3.20.0"}],"source":"CPE_RANGE"}}],"versions":["3.19.0","3.18.1","3.18.0","3.17.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1348.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}