Skip to content

Fix PKG path traversal and oversized entry allocation - #19385

Open
acts-1631 wants to merge 3 commits into
RPCS3:masterfrom
acts-1631:security/pkg-audit-fixes
Open

Fix PKG path traversal and oversized entry allocation#19385
acts-1631 wants to merge 3 commits into
RPCS3:masterfrom
acts-1631:security/pkg-audit-fixes

Conversation

@acts-1631

Copy link
Copy Markdown
Contributor

Fix two issues in PKG package handling.

PKG entry paths could escape the installation directory through traversal
components. Validate entry paths and require resolved destinations to remain
within the installation root.

PKG file_count could trigger a large allocation before the entry table was
validated. Limit the count and require the table to fit within package data.

PKG entry names could contain traversal components and escape the
installation directory. Reject absolute and special components, then
require the resolved target to remain below the installation root
before creating or writing files.
PKG file_count was used for vector allocation before validating
that the encrypted package data contained the entry table. Limit the
count and require the entry table to fit in the declared data region
before allocating.
@AniLeo
AniLeo requested a review from Megamouse September 2, 2026 18:21
@elad335

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants