Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ COPY etc/configs/nginx/default.conf /etc/nginx/sites-available/default
COPY etc/configs/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/fastcgi-php"${PHP_VERSION}".conf
COPY etc/configs/php/php-fpm.conf /etc/php/"${PHP_VERSION}"/fpm/php-fpm.conf
COPY etc/configs/php/www.conf /etc/php/"${PHP_VERSION}"/fpm/pool.d/www.conf
COPY etc/configs/php/conf.d/99-php2shell-mitigation.ini /etc/php/"${PHP_VERSION}"/fpm/conf.d/99-php2shell-mitigation.ini
COPY etc/configs/php/conf.d/99-php2shell-mitigation.ini /etc/php/"${PHP_VERSION}"/cli/conf.d/99-php2shell-mitigation.ini

# Update default.conf with PHP socket and configure PHP-FPM with custom settings
RUN sed -i "s|\${PHP_VERSION}|${PHP_VERSION}|g" /etc/nginx/snippets/fastcgi-php"${PHP_VERSION}".conf && \
Expand Down
5 changes: 5 additions & 0 deletions etc/configs/php/conf.d/99-php2shell-mitigation.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Interim mitigations for CVE-2026-109618 / CVE-2026-109619; remove once PHP is patched
; GHSA-w8hw-w9fx-j79w: memory_limit=-1 removes the predictable per-request limit the confirmed exploit needs
memory_limit = -1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟨 Unbounded requests can exhaust pod memory

When a PHP request allocates excessively, memory_limit = -1 lets it consume the pod's remaining memory. The pod can be killed, taking other requests offline.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

; GHSA-6wmf-4rv5-p3rp: closes the session upload progress producer path
session.upload_progress.enabled = 0
Loading