Incorrect Permission Assignment for Critical Resource Affecting logrotate package, versions <0:3.18.0-7.el9


Severity

Recommended
0.0
medium
0
10

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY9-LOGROTATE-3270548
  • published3 Feb 2023
  • disclosed25 May 2022

Introduced: 25 May 2022

CVE-2022-1348  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:9 logrotate to version 0:3.18.0-7.el9 or higher.
This issue was patched in RLSA-2022:8393.

NVD Description

Note: Versions mentioned in the description apply only to the upstream logrotate package and not the logrotate package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:9 relevant fixed versions and status.

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.

CVSS Scores

version 3.1