ALPINE-CVE-2026-4878

Source
https://security.alpinelinux.org/vuln/CVE-2026-4878
Import Source
https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json
JSON Data
https://api.osv.dev/v1/vulns/ALPINE-CVE-2026-4878
Upstream
  • CVE-2026-4878
Published
2026-04-09T16:16:31.987Z
Modified
2026-06-09T21:31:40.039628840Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the cap_set_file() function. This allows an attacker with write access to a parent directory to redirect file capability updates to an attacker-controlled file. By doing so, capabilities can be injected into or stripped from unintended executables, leading to privilege escalation.

References

Affected packages

Alpine:v3.20 / libcap

Package

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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json"

Alpine:v3.21 / libcap

Package

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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json"

Alpine:v3.22 / libcap

Package

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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json"

Alpine:v3.23 / libcap

Package

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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json"

Alpine:v3.24 / libcap

Package

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

Affected ranges

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2026-4878.json"