Skip to content

Pg vulnerabilities hotfix of #3164 and #3166. - #3168

Merged
somiaj merged 2 commits into
openwebwork:mainfrom
drgrice1:pg-vulnerabilities-hotfix
Aug 27, 2026
Merged

Pg vulnerabilities hotfix of #3164 and #3166.#3168
somiaj merged 2 commits into
openwebwork:mainfrom
drgrice1:pg-vulnerabilities-hotfix

Conversation

@drgrice1

Copy link
Copy Markdown
Member

… with PG.

These are dangerous to share, and expose things to problems that should
not be exposed.
`HTML::Parser` was shared into the safe compartment, and its
`parse_file` method opens and reads whatever path it is given, bypassing
the permitted_read_dir restriction. Thus giving any PG problem arbitrary
file read. It is not actually used by PG, and so that is removed from
the modules that are shared. Note that the `HTML::Entities` package
which is part of the `HTML::Parser` package on CPAN is still shared and
is used.
@drgrice1

Copy link
Copy Markdown
Member Author

It would be good to get this in now that openwebwork/pg#1524 has been merged.

@somiaj
somiaj merged commit 1fccfc7 into openwebwork:main Aug 27, 2026
2 checks passed
@drgrice1
drgrice1 deleted the pg-vulnerabilities-hotfix branch August 27, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants