CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
SINGLE
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
PARTIAL
AV:N/AC:L/Au:S/C:N/I:N/A:P
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
Percentile
44.4%
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.
Author | Note |
---|---|
alexmurray | Only affects logrotate >= 3.17.0 |
mdeslaur | Ubuntu packages build with: --with-state-file-path=/var/lib/logrotate/status but the /var/lib/logrotate directory itself is 755, so a user can get a lock on the file. See follow-up pull request with additional fix |
github.com/logrotate/logrotate/blame/master/logrotate.c#L3015-L3017
github.com/logrotate/logrotate/commit/f46d0bdfc9c53515c13880c501f4d2e1e7dd8b25
launchpad.net/bugs/cve/CVE-2022-1348
nvd.nist.gov/vuln/detail/CVE-2022-1348
security-tracker.debian.org/tracker/CVE-2022-1348
ubuntu.com/security/notices/USN-5447-1
www.cve.org/CVERecord?id=CVE-2022-1348
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
SINGLE
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
PARTIAL
AV:N/AC:L/Au:S/C:N/I:N/A:P
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
Percentile
44.4%