← Back
UBUNTU-CVE-2021-30640
Vulnerability in tomcat6 (UBUNTU-CVE-2021-30640)
Summary
vulnerability in tomcat6 (UBUNTU-CVE-2021-30640). Data can be tampered with by attackers. Mitigation: upgrade to `9.0.16-3ubuntu0.18.04.2` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **UBUNTU-CVE-2021-30640** has been found in tomcat6.
Data can be tampered with by attackers. CVSS score: ?/10.
What to do: upgrade tomcat6 to **9.0.16-3ubuntu0.18.04.2** or later.
If unsure, ask your IT team or search "tomcat6 UBUNTU-CVE-2021-30640" on the vendor's site.
UBUNTU-CVE-2021-30640 (tomcat6) —
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: `9.0.16-3ubuntu0.18.04.2` — 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 tomcat6.
📍 Affected scope
tomcat6 — .
🔥 Severity
Severity: ?. Data can be tampered with by attackers
🔧 How to fix
Update to **9.0.16-3ubuntu0.18.04.2**.
🛡️ 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 'tomcat6' .` 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 'tomcat6' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `tomcat6` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade tomcat6 to 9.0.16-3ubuntu0.18.04.2ステージング環境で 9.0.16-3ubuntu0.18.04.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
Ubuntu:Pro:14.04:LTS
tomcat6
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:Pro:14.04:LTS
tomcat7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:Pro:16.04:LTS
tomcat8
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:Pro:16.04:LTS
tomcat7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:18.04:LTS
tomcat9
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.16-3ubuntu0.18.04.2"}]}]
Ubuntu:Pro:18.04:LTS
tomcat8
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
Ubuntu:20.04:LTS
tomcat9
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.0.31-1ubuntu0.2"}]}]
References
- advisory https://ubuntu.com/security/notices/USN-5360-1
- report https://ubuntu.com/security/CVE-2021-30640
- report https://bz.apache.org/bugzilla/show_bug.cgi?id=65224
- report https://github.com/apache/tomcat/commit/c4df8d44a959a937d507d15e5b1ca35c3dbc41eb
- report https://github.com/apache/tomcat/commit/749f3cc192c68c34f2375509aea087be45fc4434
- report https://github.com/apache/tomcat/commit/c6b6e1015ae44c936971b6bf8bce70987935b92e
- report https://github.com/apache/tomcat/commit/91ecdc61ce3420054c04114baaaf1c1e0cbd5d56
- report https://github.com/apache/tomcat/commit/e50067486cf86564175ca0cfdcbf7d209c6df862
- report https://github.com/apache/tomcat/commit/b5585a9e5d4fec020cc5ebadb82f899fae22bc43
- report https://github.com/apache/tomcat/commit/329932012d3a9b95fde0b18618416e659ecffdc0
- report https://github.com/apache/tomcat/commit/3ce84512ed8783577d9945df28da5a033465b945
- report https://github.com/apache/tomcat/commit/24dfb30076997b640e5123e92c4b8d7f206f609c
- report https://github.com/apache/tomcat/commit/0a272b00aed57526dbfc8b881ab253c23c61f100
- report https://github.com/apache/tomcat/commit/c9f21a2a7908c7c4ecd4f9bb495d3ee36a2bd822
- report https://github.com/apache/tomcat/commit/4e86b4ea0d1a9b00fa93971c31b93ad1bd49c7fe
- report https://github.com/apache/tomcat/commit/79580e7f70a07c083be07307376511bb864d5a7b
- report https://github.com/apache/tomcat/commit/d3407672774e372fae8b5898d55f85d16f22b972
- report https://github.com/apache/tomcat/commit/6a9129ac9bd06555ce04bb564a76fc3987311f38
- report https://github.com/apache/tomcat/commit/ad22db641dcd61c2e8078f658fa709897b5da375
- report https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E
- report https://www.cve.org/CVERecord?id=CVE-2021-30640