cve.bz

CVE-2022-1348

6.5 mediumEPSS 1.7%Fix available

Medium (6.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1348 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1348?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1348?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-1348 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
logrotate_project:logrotatefrom 3.17.0 before 3.20.0
fedoraproject:fedora35
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14logrotate3.20.1-1DEBIAN-CVE-2022-1348
Ubuntu22.04:LTSlogrotate3.19.0-1ubuntu1.1UBUNTU-CVE-2022-1348 USN-5447-1
Red Hatenterprise_linux:9::baseoslogrotate, logrotate-debuginfo, logrotate-debugsource0:3.18.0-7.el9RHSA-2022:8393
SUSELinux Enterprise Module for Basesystem 15 SP4logrotate3.18.1-150400.3.7.1SUSE-SU-2022:2396-1
openSUSELeap 15.4logrotate3.18.1-150400.3.7.1SUSE-SU-2022:2396-1
openSUSETumbleweedlogrotate3.20.1-1.1openSUSE-SU-2024:12108-1
AlmaLinux9logrotate3.18.0-7.el9ALSA-2022:8393
Rocky Linux9logrotate0:3.18.0-7.el9RLSA-2022:8393
Alpinev3.13logrotate3.18.0-r2ALPINE-CVE-2022-1348
Alpinev3.14, v3.15logrotate3.18.1-r2ALPINE-CVE-2022-1348
Alpinev3.16logrotate3.19.0-r1ALPINE-CVE-2022-1348
Alpinev3.17, v3.18, v3.19 and 5 morelogrotate3.20.1-r0ALPINE-CVE-2022-1348
Azure Linux2logrotate3.20.1-1AZL-9845

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9logrotate-0:3.18.0-7.el9Fixed 2022-11-15RHSA-2022:8393
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-mover-rclone-rhel8Not affected
Red Hat Enterprise Linux 6logrotateNot affected
Red Hat Enterprise Linux 7logrotateNot affected
Red Hat Enterprise Linux 8logrotateNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-1348.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON