← Back
UBUNTU-CVE-2018-25047
Vulnerability in smarty3 (UBUNTU-CVE-2018-25047)
Summary
vulnerability in smarty3 (UBUNTU-CVE-2018-25047). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **UBUNTU-CVE-2018-25047** has been found in smarty3.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade smarty3 to **3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1** or later.
If unsure, ask your IT team or search "smarty3 UBUNTU-CVE-2018-25047" on the vendor's site.
UBUNTU-CVE-2018-25047 (smarty3) —
Attack vector: remote (network-reachable)
Patched: `3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1` — apply immediately
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** (unclassified) exists in smarty3.
📍 Affected scope
smarty3 — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'smarty3' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'smarty3' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `smarty3` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade smarty3 to 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1ステージング環境で 3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
Ubuntu:Pro:16.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:Pro:18.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1+esm1"}]}]
Ubuntu:20.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1"}]}]
Ubuntu:22.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.39-2ubuntu1.22.04.2"}]}]
Ubuntu:24.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.48-1ubuntu0.24.04.1"}]}]
Ubuntu:25.10
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:26.04:LTS
smarty3
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
References
- advisory https://ubuntu.com/security/notices/USN-7158-1
- report https://ubuntu.com/security/CVE-2018-25047
- report https://github.com/smarty-php/smarty/issues/454
- report https://github.com/smarty-php/smarty/commit/f1f7ee6e34c14a8a9dfa5c6ef894d39277a93938
- report https://github.com/smarty-php/smarty/commit/55ea25d1f50f0406fb1ccedd212c527977793fc9
- report https://github.com/smarty-php/smarty/releases/tag/v4.2.1
- report https://github.com/smarty-php/smarty/releases/tag/v3.1.47
- report https://bugs.gentoo.org/870100
- report https://www.cve.org/CVERecord?id=CVE-2018-25047