Portage: Multiple Vulnerabilities — GLSA 202608-12

Multiple vulnerabilities have been found in Portage.

Affected packages

sys-apps/portage on all architectures
Affected versions < 3.0.81.2
Unaffected versions >= 3.0.81.2

Background

Portage is the default Gentoo package management system.

Description

Multiple vulnerabilities have been discovered in Portage. Please review the bugs referenced below for details. The first bug (bug 978478) allows a malicious ebuild (including a build system it uses indirectly) to write outside of the work directory. While malicious artifacts could be installed by a package itself, this is still unexpected if one only ran the configure phrase during development. The second bug (bug 979026) is regarding insufficient sandboxing in global scope. Untrusted ebuilds, even if not emerged, may have the opportunity to run code in global scope depending on whether the repository has metadata available. Additional sandboxing has been added.

Impact

Please review the referenced bugs for details.

Workaround

Avoid using untrusted repositories or ebuilds, even without installing them.

Resolution

All Portage users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-apps/portage-3.0.81.2"
 

In general, we recommend users add external repositories with caution. If using external repositories, it is good practice to mask all packages by default from that repository, and unmask only needed packages.

References

Release date
August 15, 2026

Latest revision
August 15, 2026: 1

Severity
high

Exploitable
local and remote

Bugzilla entries