Time-of-check Time-of-use (TOCTOU) Affecting logrotate package, versions <0:3.7.8-12.el6_0.1


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.05% (20th 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-RHEL6-LOGROTATE-1427169
  • published26 Jul 2021
  • disclosed13 Feb 2011

Introduced: 13 Feb 2011

CVE-2011-1098  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade RHEL:6 logrotate to version 0:3.7.8-12.el6_0.1 or higher.
This issue was patched in RHSA-2011:0407.

NVD Description

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

Race condition in the createOutputFile function in logrotate.c in logrotate 3.7.9 and earlier allows local users to read log data by opening a file before the intended permissions are in place.

References

CVSS Scores

version 3.1