{"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-04-16T04:38:48.633372361Z","published":"2022-05-25T16:15:08.150Z","related":["ALSA-2022:8393","SUSE-SU-2022:2396-1","openSUSE-SU-2024:12108-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/05/25/3"},{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2022/05/25/4"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2022/05/25/5"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/logrotate/logrotate","events":[{"introduced":"a7840f55f95382b6a3b56e0bd42028ef4cd4ad5b"},{"fixed":"b8b1750933f876f6e844f2958b77a380e98bc7b4"}],"database_specific":{"versions":[{"introduced":"3.17.0"},{"fixed":"3.20.0"}]}}],"versions":["3.17.0","3.18.0","3.18.1","3.19.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1348.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"35"}]},{"events":[{"introduced":"0"},{"last_affected":"36"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}