php-vuln-check 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: php-vuln-check
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: PHP vulnerability checker for PHP2Shell (CVE-2026-109618, CVE-2026-109619): audits servers, Docker images and CI. Backport-aware, zero dependencies.
5
5
  Home-page: https://github.com/ethoic-inc/php-vuln-check
6
6
  Author: Ethoic Inc
@@ -31,31 +31,22 @@ Dynamic: license-file
31
31
 
32
32
  [![CI](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml/badge.svg)](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml)
33
33
  [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/ethoic-inc/php-vuln-check/badge)](https://scorecard.dev/viewer/?uri=github.com/ethoic-inc/php-vuln-check)
34
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
34
+ [![PyPI](https://img.shields.io/pypi/v/php-vuln-check)](https://pypi.org/project/php-vuln-check/)
35
+ [![GitHub Marketplace](https://img.shields.io/badge/marketplace-php--vuln--check-blue?logo=github)](https://github.com/marketplace/actions/php-vuln-check)
36
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE)
35
37
  ![Python 3.6+](https://img.shields.io/badge/python-3.6%2B-blue)
36
38
  ![Dependencies: none](https://img.shields.io/badge/dependencies-none-brightgreen)
37
39
 
38
40
  *An open-source project from [Ethoic Inc](https://ethoic.com).*
39
41
 
40
- **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
41
-
42
42
  ## Check your PHP in 10 seconds
43
43
 
44
44
  ```bash
45
- pipx install git+https://github.com/ethoic-inc/php-vuln-check
46
- php-vuln-check # audit PHP on this server
47
- php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
45
+ pipx install php-vuln-check # or: pip install php-vuln-check
46
+ php-vuln-check # audit PHP on this server
47
+ php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
48
48
  ```
49
49
 
50
- No install needed either. It is a single file with no dependencies, so you can drop it on a server:
51
-
52
- ```bash
53
- curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
54
- python3 php_vuln_check.py
55
- ```
56
-
57
- Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
58
-
59
50
  ```text
60
51
  VULNERABLE php:7.4-apache
61
52
  PHP 7.4
@@ -82,6 +73,17 @@ Summary: 2 vulnerable | 1 need review | 1 patched
82
73
 
83
74
  Try it yourself: `php-vuln-check images examples/demo`.
84
75
 
76
+ Run it once without installing anything permanent: `uvx php-vuln-check`. Or skip Python packaging entirely: it is a single file with no dependencies, so you can drop it on a server:
77
+
78
+ ```bash
79
+ curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
80
+ python3 php_vuln_check.py
81
+ ```
82
+
83
+ Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
84
+
85
+ **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
86
+
85
87
  ## What PHP2Shell is, and who is affected
86
88
 
87
89
  PHP2Shell is a pair of critical remote code execution bugs in the PHP engine itself: **CVE-2026-109618** and **CVE-2026-109619**, both rated CVSS 9.2. PHP's own advisories ([GHSA-w8hw-w9fx-j79w](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) and [GHSA-6wmf-4rv5-p3rp](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)) list every release below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected, and no login is needed. [Sansec](https://sansec.io/research/php2shell) reports the bugs reach back to PHP 5.4; Apache `mod_php` and PHP-FPM are the main cases. A fatal error such as running out of memory during a `multipart/form-data` request leaves freed memory in use.
@@ -157,6 +159,8 @@ The script is streamed over SSH (`python3 -` on the host), so nothing is install
157
159
 
158
160
  ## Gate your pipeline
159
161
 
162
+ The [GitHub Action](https://github.com/marketplace/actions/php-vuln-check) fails the build on vulnerable PHP images and reports each one in code scanning:
163
+
160
164
  ```yaml
161
165
  # .github/workflows/php-check.yml
162
166
  on: [push, pull_request]
@@ -166,7 +170,7 @@ jobs:
166
170
  permissions: { contents: read, security-events: write }
167
171
  steps:
168
172
  - uses: actions/checkout@v4
169
- - uses: ethoic-inc/php-vuln-check@v0.2.0
173
+ - uses: ethoic-inc/php-vuln-check@v0.2.1
170
174
  with:
171
175
  fail-on: vulnerable # or "review" to also fail on floating tags
172
176
  sarif-file: php-vuln.sarif
@@ -181,7 +185,7 @@ Findings show up in your repository's Security tab with the Dockerfile line. To
181
185
  # .pre-commit-config.yaml
182
186
  repos:
183
187
  - repo: https://github.com/ethoic-inc/php-vuln-check
184
- rev: v0.2.0
188
+ rev: v0.2.1
185
189
  hooks:
186
190
  - id: php-vuln-check-images
187
191
  ```
@@ -227,11 +231,11 @@ It sends no exploit traffic. `scan` reads files and runs `php -n -v` and `php -i
227
231
  Update PHP and restart PHP-FPM or Apache. Until then, the partial, temporary mitigations in PHP's advisory are, in its order: enforce `memory_limit=-1` in admin config and cap request body size at the web server; set `session.upload_progress.enabled=0` (and `fatal_error_backtraces=0` on PHP 8.5) and restart every worker; and, only if the application takes no uploads, block `multipart/form-data` at the web server. See the [Sansec write-up](https://sansec.io/research/php2shell) for exact snippets.
228
232
 
229
233
  **Does it find other PHP CVEs?**
230
- Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](CONTRIBUTING.md).
234
+ Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md).
231
235
 
232
236
  ## Contributing
233
237
 
234
- Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](SECURITY.md). Taking part means following the [Code of Conduct](CODE_OF_CONDUCT.md).
238
+ Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/SECURITY.md). Taking part means following the [Code of Conduct](https://github.com/ethoic-inc/php-vuln-check/blob/main/CODE_OF_CONDUCT.md).
235
239
 
236
240
  Questions, press or anything else: **hello@ethoic.com**.
237
241
 
@@ -241,4 +245,4 @@ Questions, press or anything else: **hello@ethoic.com**.
241
245
 
242
246
  ## Disclaimer
243
247
 
244
- php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
248
+ php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
@@ -4,31 +4,22 @@
4
4
 
5
5
  [![CI](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml/badge.svg)](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml)
6
6
  [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/ethoic-inc/php-vuln-check/badge)](https://scorecard.dev/viewer/?uri=github.com/ethoic-inc/php-vuln-check)
7
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
+ [![PyPI](https://img.shields.io/pypi/v/php-vuln-check)](https://pypi.org/project/php-vuln-check/)
8
+ [![GitHub Marketplace](https://img.shields.io/badge/marketplace-php--vuln--check-blue?logo=github)](https://github.com/marketplace/actions/php-vuln-check)
9
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE)
8
10
  ![Python 3.6+](https://img.shields.io/badge/python-3.6%2B-blue)
9
11
  ![Dependencies: none](https://img.shields.io/badge/dependencies-none-brightgreen)
10
12
 
11
13
  *An open-source project from [Ethoic Inc](https://ethoic.com).*
12
14
 
13
- **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
14
-
15
15
  ## Check your PHP in 10 seconds
16
16
 
17
17
  ```bash
18
- pipx install git+https://github.com/ethoic-inc/php-vuln-check
19
- php-vuln-check # audit PHP on this server
20
- php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
18
+ pipx install php-vuln-check # or: pip install php-vuln-check
19
+ php-vuln-check # audit PHP on this server
20
+ php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
21
21
  ```
22
22
 
23
- No install needed either. It is a single file with no dependencies, so you can drop it on a server:
24
-
25
- ```bash
26
- curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
27
- python3 php_vuln_check.py
28
- ```
29
-
30
- Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
31
-
32
23
  ```text
33
24
  VULNERABLE php:7.4-apache
34
25
  PHP 7.4
@@ -55,6 +46,17 @@ Summary: 2 vulnerable | 1 need review | 1 patched
55
46
 
56
47
  Try it yourself: `php-vuln-check images examples/demo`.
57
48
 
49
+ Run it once without installing anything permanent: `uvx php-vuln-check`. Or skip Python packaging entirely: it is a single file with no dependencies, so you can drop it on a server:
50
+
51
+ ```bash
52
+ curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
53
+ python3 php_vuln_check.py
54
+ ```
55
+
56
+ Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
57
+
58
+ **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
59
+
58
60
  ## What PHP2Shell is, and who is affected
59
61
 
60
62
  PHP2Shell is a pair of critical remote code execution bugs in the PHP engine itself: **CVE-2026-109618** and **CVE-2026-109619**, both rated CVSS 9.2. PHP's own advisories ([GHSA-w8hw-w9fx-j79w](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) and [GHSA-6wmf-4rv5-p3rp](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)) list every release below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected, and no login is needed. [Sansec](https://sansec.io/research/php2shell) reports the bugs reach back to PHP 5.4; Apache `mod_php` and PHP-FPM are the main cases. A fatal error such as running out of memory during a `multipart/form-data` request leaves freed memory in use.
@@ -130,6 +132,8 @@ The script is streamed over SSH (`python3 -` on the host), so nothing is install
130
132
 
131
133
  ## Gate your pipeline
132
134
 
135
+ The [GitHub Action](https://github.com/marketplace/actions/php-vuln-check) fails the build on vulnerable PHP images and reports each one in code scanning:
136
+
133
137
  ```yaml
134
138
  # .github/workflows/php-check.yml
135
139
  on: [push, pull_request]
@@ -139,7 +143,7 @@ jobs:
139
143
  permissions: { contents: read, security-events: write }
140
144
  steps:
141
145
  - uses: actions/checkout@v4
142
- - uses: ethoic-inc/php-vuln-check@v0.2.0
146
+ - uses: ethoic-inc/php-vuln-check@v0.2.1
143
147
  with:
144
148
  fail-on: vulnerable # or "review" to also fail on floating tags
145
149
  sarif-file: php-vuln.sarif
@@ -154,7 +158,7 @@ Findings show up in your repository's Security tab with the Dockerfile line. To
154
158
  # .pre-commit-config.yaml
155
159
  repos:
156
160
  - repo: https://github.com/ethoic-inc/php-vuln-check
157
- rev: v0.2.0
161
+ rev: v0.2.1
158
162
  hooks:
159
163
  - id: php-vuln-check-images
160
164
  ```
@@ -200,11 +204,11 @@ It sends no exploit traffic. `scan` reads files and runs `php -n -v` and `php -i
200
204
  Update PHP and restart PHP-FPM or Apache. Until then, the partial, temporary mitigations in PHP's advisory are, in its order: enforce `memory_limit=-1` in admin config and cap request body size at the web server; set `session.upload_progress.enabled=0` (and `fatal_error_backtraces=0` on PHP 8.5) and restart every worker; and, only if the application takes no uploads, block `multipart/form-data` at the web server. See the [Sansec write-up](https://sansec.io/research/php2shell) for exact snippets.
201
205
 
202
206
  **Does it find other PHP CVEs?**
203
- Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](CONTRIBUTING.md).
207
+ Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md).
204
208
 
205
209
  ## Contributing
206
210
 
207
- Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](SECURITY.md). Taking part means following the [Code of Conduct](CODE_OF_CONDUCT.md).
211
+ Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/SECURITY.md). Taking part means following the [Code of Conduct](https://github.com/ethoic-inc/php-vuln-check/blob/main/CODE_OF_CONDUCT.md).
208
212
 
209
213
  Questions, press or anything else: **hello@ethoic.com**.
210
214
 
@@ -214,4 +218,4 @@ Questions, press or anything else: **hello@ethoic.com**.
214
218
 
215
219
  ## Disclaimer
216
220
 
217
- php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
221
+ php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: php-vuln-check
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: PHP vulnerability checker for PHP2Shell (CVE-2026-109618, CVE-2026-109619): audits servers, Docker images and CI. Backport-aware, zero dependencies.
5
5
  Home-page: https://github.com/ethoic-inc/php-vuln-check
6
6
  Author: Ethoic Inc
@@ -31,31 +31,22 @@ Dynamic: license-file
31
31
 
32
32
  [![CI](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml/badge.svg)](https://github.com/ethoic-inc/php-vuln-check/actions/workflows/ci.yml)
33
33
  [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/ethoic-inc/php-vuln-check/badge)](https://scorecard.dev/viewer/?uri=github.com/ethoic-inc/php-vuln-check)
34
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
34
+ [![PyPI](https://img.shields.io/pypi/v/php-vuln-check)](https://pypi.org/project/php-vuln-check/)
35
+ [![GitHub Marketplace](https://img.shields.io/badge/marketplace-php--vuln--check-blue?logo=github)](https://github.com/marketplace/actions/php-vuln-check)
36
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE)
35
37
  ![Python 3.6+](https://img.shields.io/badge/python-3.6%2B-blue)
36
38
  ![Dependencies: none](https://img.shields.io/badge/dependencies-none-brightgreen)
37
39
 
38
40
  *An open-source project from [Ethoic Inc](https://ethoic.com).*
39
41
 
40
- **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
41
-
42
42
  ## Check your PHP in 10 seconds
43
43
 
44
44
  ```bash
45
- pipx install git+https://github.com/ethoic-inc/php-vuln-check
46
- php-vuln-check # audit PHP on this server
47
- php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
45
+ pipx install php-vuln-check # or: pip install php-vuln-check
46
+ php-vuln-check # audit PHP on this server
47
+ php-vuln-check images . # audit Dockerfiles, compose files and Kubernetes manifests
48
48
  ```
49
49
 
50
- No install needed either. It is a single file with no dependencies, so you can drop it on a server:
51
-
52
- ```bash
53
- curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
54
- python3 php_vuln_check.py
55
- ```
56
-
57
- Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
58
-
59
50
  ```text
60
51
  VULNERABLE php:7.4-apache
61
52
  PHP 7.4
@@ -82,6 +73,17 @@ Summary: 2 vulnerable | 1 need review | 1 patched
82
73
 
83
74
  Try it yourself: `php-vuln-check images examples/demo`.
84
75
 
76
+ Run it once without installing anything permanent: `uvx php-vuln-check`. Or skip Python packaging entirely: it is a single file with no dependencies, so you can drop it on a server:
77
+
78
+ ```bash
79
+ curl -fsSLO https://github.com/ethoic-inc/php-vuln-check/releases/latest/download/php_vuln_check.py
80
+ python3 php_vuln_check.py
81
+ ```
82
+
83
+ Each release also publishes `SHA256SUMS` and signed build provenance, so you can verify the file first (`gh attestation verify php_vuln_check.py --repo ethoic-inc/php-vuln-check`). On Python 3.6 hosts this single file is the way to go; `pipx` needs a newer Python.
84
+
85
+ **Tested on real systems, not only fixtures.** CI installs PHP packages in Debian 12 and 13, Ubuntu 20.04 to 24.04, AlmaLinux 8 and 9, Rocky 9, Fedora, Amazon Linux, Alpine and the official `php` images, runs the tool there, and runs the unit tests on Python 3.6 to 3.13. It was security-reviewed independently before release.
86
+
85
87
  ## What PHP2Shell is, and who is affected
86
88
 
87
89
  PHP2Shell is a pair of critical remote code execution bugs in the PHP engine itself: **CVE-2026-109618** and **CVE-2026-109619**, both rated CVSS 9.2. PHP's own advisories ([GHSA-w8hw-w9fx-j79w](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) and [GHSA-6wmf-4rv5-p3rp](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)) list every release below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 as affected, and no login is needed. [Sansec](https://sansec.io/research/php2shell) reports the bugs reach back to PHP 5.4; Apache `mod_php` and PHP-FPM are the main cases. A fatal error such as running out of memory during a `multipart/form-data` request leaves freed memory in use.
@@ -157,6 +159,8 @@ The script is streamed over SSH (`python3 -` on the host), so nothing is install
157
159
 
158
160
  ## Gate your pipeline
159
161
 
162
+ The [GitHub Action](https://github.com/marketplace/actions/php-vuln-check) fails the build on vulnerable PHP images and reports each one in code scanning:
163
+
160
164
  ```yaml
161
165
  # .github/workflows/php-check.yml
162
166
  on: [push, pull_request]
@@ -166,7 +170,7 @@ jobs:
166
170
  permissions: { contents: read, security-events: write }
167
171
  steps:
168
172
  - uses: actions/checkout@v4
169
- - uses: ethoic-inc/php-vuln-check@v0.2.0
173
+ - uses: ethoic-inc/php-vuln-check@v0.2.1
170
174
  with:
171
175
  fail-on: vulnerable # or "review" to also fail on floating tags
172
176
  sarif-file: php-vuln.sarif
@@ -181,7 +185,7 @@ Findings show up in your repository's Security tab with the Dockerfile line. To
181
185
  # .pre-commit-config.yaml
182
186
  repos:
183
187
  - repo: https://github.com/ethoic-inc/php-vuln-check
184
- rev: v0.2.0
188
+ rev: v0.2.1
185
189
  hooks:
186
190
  - id: php-vuln-check-images
187
191
  ```
@@ -227,11 +231,11 @@ It sends no exploit traffic. `scan` reads files and runs `php -n -v` and `php -i
227
231
  Update PHP and restart PHP-FPM or Apache. Until then, the partial, temporary mitigations in PHP's advisory are, in its order: enforce `memory_limit=-1` in admin config and cap request body size at the web server; set `session.upload_progress.enabled=0` (and `fatal_error_backtraces=0` on PHP 8.5) and restart every worker; and, only if the application takes no uploads, block `multipart/form-data` at the web server. See the [Sansec write-up](https://sansec.io/research/php2shell) for exact snippets.
228
232
 
229
233
  **Does it find other PHP CVEs?**
230
- Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](CONTRIBUTING.md).
234
+ Not yet. Advisories are one entry in the `ADVISORIES` list at the top of `php_vuln_check.py`, so adding the next one is a small pull request. See [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md).
231
235
 
232
236
  ## Contributing
233
237
 
234
- Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](SECURITY.md). Taking part means following the [Code of Conduct](CODE_OF_CONDUCT.md).
238
+ Wrong result on your distro, a package manager we should read, or the next PHP advisory: open an issue or a pull request. Start with [CONTRIBUTING.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/CONTRIBUTING.md). To report a security problem in this tool, see [SECURITY.md](https://github.com/ethoic-inc/php-vuln-check/blob/main/SECURITY.md). Taking part means following the [Code of Conduct](https://github.com/ethoic-inc/php-vuln-check/blob/main/CODE_OF_CONDUCT.md).
235
239
 
236
240
  Questions, press or anything else: **hello@ethoic.com**.
237
241
 
@@ -241,4 +245,4 @@ Questions, press or anything else: **hello@ethoic.com**.
241
245
 
242
246
  ## Disclaimer
243
247
 
244
- php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
248
+ php-vuln-check is an open-source project from Ethoic Inc. It is not affiliated with the PHP Group, Sansec, Assetnote, watchTowr or anyone else named here. It is provided as is under the [MIT license](https://github.com/ethoic-inc/php-vuln-check/blob/main/LICENSE). A PATCHED result is evidence about versions and changelogs, not a guarantee. Only check systems you own or are authorized to check.
@@ -30,7 +30,7 @@ import urllib.parse
30
30
  import urllib.request
31
31
  from concurrent.futures import ThreadPoolExecutor
32
32
 
33
- __version__ = "0.2.0"
33
+ __version__ = "0.2.1"
34
34
  REPO_URL = "https://github.com/ethoic-inc/php-vuln-check"
35
35
 
36
36
  VULNERABLE, REVIEW, PATCHED, ERROR, NONE = "VULNERABLE", "REVIEW", "PATCHED", "ERROR", "NONE"
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = php-vuln-check
3
- version = 0.2.0
3
+ version = 0.2.1
4
4
  description = PHP vulnerability checker for PHP2Shell (CVE-2026-109618, CVE-2026-109619): audits servers, Docker images and CI. Backport-aware, zero dependencies.
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
File without changes