CVE-2022-1348

Source
https://cve.org/CVERecord?id=CVE-2022-1348
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1348.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-1348
Downstream
Related
Published
2022-05-25T15:13:39Z
Modified
2026-07-08T06:02:07.919054654Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1348.json",
    "cna_assigner": "redhat",
    "cwe_ids": [
        "CWE-732"
    ],
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "fixed": "3.20.0"
                }
            ],
            "source": "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/logrotate/logrotate

Affected ranges

Type
GIT
Repo
https://github.com/logrotate/logrotate
Events
Database specific
{
    "cpe": "cpe:2.3:a:logrotate_project:logrotate:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "3.17.0"
        },
        {
            "fixed": "3.20.0"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

3.*
3.17.0
3.18.0
3.18.1
3.19.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1348.json"