{"id":"UBUNTU-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-02-04T03:15:38.558553Z","published":"2022-05-25T00:00:00Z","related":["USN-5447-1"],"upstream":["CVE-2022-1348"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-1348"},{"type":"REPORT","url":"https://github.com/logrotate/logrotate/blame/master/logrotate.c#L3015-L3017"},{"type":"REPORT","url":"https://github.com/logrotate/logrotate/commit/f46d0bdfc9c53515c13880c501f4d2e1e7dd8b25"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5447-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-1348"}],"affected":[{"package":{"name":"logrotate","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/logrotate@3.19.0-1ubuntu1.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.19.0-1ubuntu1.1"}]}],"versions":["3.18.0-2ubuntu1","3.18.0-2ubuntu2","3.18.1-2ubuntu1","3.19.0-1ubuntu1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.19.0-1ubuntu1.1","binary_name":"logrotate"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1348.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}