CVE-2022-1348

Source
https://nvd.nist.gov/vuln/detail/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
Related
Published
2022-05-25T16:15:08Z
Modified
2024-12-05T15:31:47.183902Z
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.

References

Affected packages

Alpine:v3.13 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.18.0-r2

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.0-r1

Alpine:v3.14 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.18.1-r2

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1

Alpine:v3.15 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.18.1-r2

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1

Alpine:v3.16 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.19.0-r1

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Alpine:v3.17 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-r0

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Alpine:v3.18 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-r0

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Alpine:v3.19 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-r0

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Alpine:v3.20 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-r0

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Alpine:v3.21 / logrotate

Package

Name
logrotate
Purl
pkg:apk/alpine/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-r0

Affected versions

3.*

3.7.8-r0
3.7.8-r1
3.7.8-r2
3.7.8-r3
3.7.9-r0
3.7.9-r1
3.7.9-r2
3.8.0-r0
3.8.1-r0
3.8.2-r0
3.8.2-r1
3.8.3-r1
3.8.4-r1
3.8.5-r0
3.8.6-r0
3.8.7-r0
3.8.8-r0
3.8.9-r0
3.9.1-r0
3.9.1-r1
3.9.1-r2
3.9.1-r3
3.9.2-r0
3.10.0-r0
3.11.0-r0
3.12.2-r0
3.12.3-r0
3.13.0-r0
3.14.0-r0
3.15.0-r0
3.15.1-r0
3.16.0-r0
3.17.0-r0
3.18.0-r0
3.18.1-r0
3.18.1-r1
3.19.0-r0

Debian:11 / logrotate

Package

Name
logrotate
Purl
pkg:deb/debian/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.18.0-2+deb11u1

Affected versions

3.*

3.18.0-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / logrotate

Package

Name
logrotate
Purl
pkg:deb/debian/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / logrotate

Package

Name
logrotate
Purl
pkg:deb/debian/logrotate?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.20.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/logrotate/logrotate

Affected ranges

Type
GIT
Repo
https://github.com/logrotate/logrotate
Events

Affected versions

3.*

3.17.0
3.18.0
3.18.1
3.19.0