OESA-2026-1929 (CVE-2026-4878)

Vulnerability from osv_openeuler – Published: 2026-04-17 11:10 – Updated: 2026-08-06 11:10 – Source website
VLAI
Summary
libcap security update
Details

This is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.

Security Fix(es):

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.(CVE-2026-4878)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.61-11.oe2203sp4.aarch64.rpm",
          "libcap-debuginfo-2.61-11.oe2203sp4.aarch64.rpm",
          "libcap-debugsource-2.61-11.oe2203sp4.aarch64.rpm",
          "libcap-devel-2.61-11.oe2203sp4.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.61-11.oe2203sp4.noarch.rpm"
        ],
        "src": [
          "libcap-2.61-11.oe2203sp4.src.rpm"
        ],
        "x86_64": [
          "libcap-2.61-11.oe2203sp4.x86_64.rpm",
          "libcap-debuginfo-2.61-11.oe2203sp4.x86_64.rpm",
          "libcap-debugsource-2.61-11.oe2203sp4.x86_64.rpm",
          "libcap-devel-2.61-11.oe2203sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP4",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-22.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.61-11.oe2203sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.69-7.oe2403.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403.aarch64.rpm",
          "libcap-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp3.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.69-7.oe2403.noarch.rpm",
          "libcap-help-2.69-7.oe2403sp1.noarch.rpm",
          "libcap-help-2.69-7.oe2403sp2.noarch.rpm",
          "libcap-help-2.69-7.oe2403sp3.noarch.rpm"
        ],
        "src": [
          "libcap-2.69-7.oe2403.src.rpm",
          "libcap-2.69-7.oe2403sp1.src.rpm",
          "libcap-2.69-7.oe2403sp2.src.rpm",
          "libcap-2.69-7.oe2403sp3.src.rpm"
        ],
        "x86_64": [
          "libcap-2.69-7.oe2403.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403.x86_64.rpm",
          "libcap-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp3.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-24.03-LTS"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.69-7.oe2403sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp1.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp1.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.69-7.oe2403sp1.noarch.rpm"
        ],
        "src": [
          "libcap-2.69-7.oe2403sp1.src.rpm"
        ],
        "x86_64": [
          "libcap-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp1.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP1",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-24.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.69-7.oe2403sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp2.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp2.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.69-7.oe2403sp2.noarch.rpm"
        ],
        "src": [
          "libcap-2.69-7.oe2403sp2.src.rpm"
        ],
        "x86_64": [
          "libcap-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp2.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp2.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP2",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-24.03-LTS-SP2"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.69-7.oe2403sp2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp3.aarch64.rpm",
          "libcap-devel-2.69-7.oe2403sp3.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.69-7.oe2403sp3.noarch.rpm"
        ],
        "src": [
          "libcap-2.69-7.oe2403sp3.src.rpm"
        ],
        "x86_64": [
          "libcap-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-debuginfo-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-debugsource-2.69-7.oe2403sp3.x86_64.rpm",
          "libcap-devel-2.69-7.oe2403sp3.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP3",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-24.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.69-7.oe2403sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "libcap-2.32-10.oe2003sp4.aarch64.rpm",
          "libcap-debuginfo-2.32-10.oe2003sp4.aarch64.rpm",
          "libcap-debugsource-2.32-10.oe2003sp4.aarch64.rpm",
          "libcap-devel-2.32-10.oe2003sp4.aarch64.rpm"
        ],
        "noarch": [
          "libcap-help-2.32-10.oe2003sp4.noarch.rpm"
        ],
        "src": [
          "libcap-2.32-10.oe2003sp4.src.rpm"
        ],
        "x86_64": [
          "libcap-2.32-10.oe2003sp4.x86_64.rpm",
          "libcap-debuginfo-2.32-10.oe2003sp4.x86_64.rpm",
          "libcap-debugsource-2.32-10.oe2003sp4.x86_64.rpm",
          "libcap-devel-2.32-10.oe2003sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP4",
        "name": "libcap",
        "purl": "pkg:rpm/openEuler/libcap\u0026distro=openEuler-20.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.32-10.oe2003sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "Medium"
  },
  "details": "This is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.\r\n\r\nSecurity Fix(es):\n\nA 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.(CVE-2026-4878)",
  "id": "OESA-2026-1929",
  "modified": "2026-08-06T11:10:56Z",
  "published": "2026-04-17T11:10:56Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-1929"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-4878"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "libcap security update",
  "upstream": [
    "CVE-2026-4878"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…