Skip to content
Critical 9.8

Vulnerability in libphp

CVE-2022-37454 First seen on SecPulse

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.

What is the problem

A vulnerability (CWE-190) exists in libphp.

Affected scope

Check the vendor advisory for the affected versions of libphp.

Severity

Severity: Critical (CVSS 9.8/10). Successful exploitation can lead to full system takeover.

How to fix

Update to 7.4.33, 8.0.25, 8.1.12.

Workaround

Workaround: The problem can be avoided by limiting the size of the partial input data (or partial output digest) below 2^32 - 200 bytes.

Detection

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. 1
    Identify exposureidentify
    grep -r 'libphp' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で libphp を grep し、稼働しているサービス・バージョンを把握する。

  2. 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. 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. 4
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → 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
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
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
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
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
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
PyPIpysha3
≤ 1.0.2→ Not listed
pippysha3
All versions→ Not listed
rubygemssha3
< 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details