Vulnerability in libphp
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2022-37454 has been found in libphp.
Successful exploitation can lead to full system takeover. CVSS score: 9.8/10.
What to do: upgrade libphp to 7.4.33, 8.0.25, 8.1.12 or later.
If unsure, ask your IT team or search "libphp CVE-2022-37454" on the vendor's site.
CVE-2022-37454 (libphp) — CWE-190 / CVSS v3 9.8
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 7.4.33, 8.0.25, 8.1.12 — apply immediately
Workaround: The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-190) exists in libphp.
Check the vendor advisory for the affected versions of libphp.
Severity: Critical (CVSS 9.8/10). Successful exploitation can lead to full system takeover.
Update to 7.4.33, 8.0.25, 8.1.12.
Workaround: The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'libphp' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'libphp' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
libphpを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes.パッチが適用されるまでの応急処置として、The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3
Apply patchpatch
Upgrade libphp to 7.4.33, 8.0.25, 8.1.12ステージング環境で 7.4.33, 8.0.25, 8.1.12 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Bitnamilibphp |
≥ 7.2.0, < 7.4.33→ 7.4.33 ≥ 8.0.0, < 8.0.25→ 8.0.25 ≥ 8.1.0, < 8.1.12→ 8.1.12 |
7.4.33 8.0.25 8.1.12 |
| Bitnamilibpython |
≥ 3.6.0, < 3.7.16→ 3.7.16 ≥ 3.8.0, < 3.8.16→ 3.8.16 ≥ 3.9.0, < 3.9.16→ 3.9.16 ≥ 3.10.0, < 3.10.9→ 3.10.9 |
3.7.16 3.8.16 3.9.16 3.10.9 |
| Bitnamiphp |
≥ 7.2.0, < 7.4.33→ 7.4.33 ≥ 8.0.0, < 8.0.25→ 8.0.25 ≥ 8.1.0, < 8.1.12→ 8.1.12 |
7.4.33 8.0.25 8.1.12 |
| Bitnamiphp-min |
≥ 7.2.0, < 7.4.33→ 7.4.33 ≥ 8.0.0, < 8.0.25→ 8.0.25 ≥ 8.1.0, < 8.1.12→ 8.1.12 |
7.4.33 8.0.25 8.1.12 |
| Bitnamipython |
≥ 3.6.0, < 3.7.16→ 3.7.16 ≥ 3.8.0, < 3.8.16→ 3.8.16 ≥ 3.9.0, < 3.9.16→ 3.9.16 ≥ 3.10.0, < 3.10.9→ 3.10.9 |
3.7.16 3.8.16 3.9.16 3.10.9 |
| Bitnamipython-min |
≥ 3.6.0, < 3.7.16→ 3.7.16 ≥ 3.8.0, < 3.8.16→ 3.8.16 ≥ 3.9.0, < 3.9.16→ 3.9.16 ≥ 3.10.0, < 3.10.9→ 3.10.9 |
3.7.16 3.8.16 3.9.16 3.10.9 |
| PyPIpysha3 |
≤ 1.0.2→ Not listed |
Not listed |
| pippysha3 |
All versions→ Not listed |
Not listed |
| rubygemssha3 |
< 1.0.5→ 1.0.5 |
1.0.5 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2022-37454 python3, php82, php81 +2 more Fix available
- Debian DEBIAN-CVE-2022-37454 python3.9, pysha3, pypy3 +1 more Fix available
- Ubuntu UBUNTU-CVE-2022-37454 python3.10, python3.9, python3.8 +7 more Fix available
Original description The description as published by the source.
Impact
The Keccak sponge function interface accepts partial inputs to be absorbed and partial outputs to be squeezed. A buffer can overflow when partial data with some specific sizes are queued, where at least one of them has a length of 2^32 - 200 bytes or more.
Patches
Yes, see commit fdc6fef0.
Workarounds
The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes. Multiple calls to the queue system can be chained at a higher level to retain the original functionality. Alternatively, one can process the entire input (or produce the entire output) at once, avoiding the queuing functions altogether.
References
See issue #105 for more details.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory nvd.nist.gov
- advisory security.netapp.com
- advisory github.com
- report github.com
- web csrc.nist.gov
- web eprint.iacr.org
- web github.com
- web lists.debian.org
- web lists.debian.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web mouha.be
- web news.ycombinator.com
- web news.ycombinator.com
- web security.gentoo.org
- web debian.org
- web debian.org
- web bugzilla.suse.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web mouha.be
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web github.com
- web pypi.org
- web github.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web security.netapp.com
- web github.com