CVE-2022-1348

medium

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.

References

https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2022-1348

http://www.openwall.com/lists/oss-security/2022/05/25/3

http://www.openwall.com/lists/oss-security/2022/05/25/4

http://www.openwall.com/lists/oss-security/2022/05/25/5

https://lists.fedoraproject.org/archives/list/[email protected]/message/ZYEB4F37BY6GLEJKP2EPVAVQ6TA3HQKR/

https://lists.fedoraproject.org/archives/list/[email protected]/message/Y7EHGYRE6DSFSBXQIWYDGTSXKO6IFSJQ/

Details

Source: MITRE

Published: 2022-05-25

Updated: 2022-10-19

Type: CWE-732

Risk Information

CVSS v2

Base Score: 4

Vector: AV:N/AC:L/Au:S/C:N/I:N/A:P

Impact Score: 2.9

Exploitability Score: 8

Severity: MEDIUM

CVSS v3

Base Score: 6.5

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Impact Score: 3.6

Exploitability Score: 2.8

Severity: MEDIUM