False positives: --add-cpes-if-none maps tomcat-embed-el to apache:tomcat CPE
Vulnerability ID:
CPE-based false positives for org.apache.tomcat.embed:[email protected], including:
- CVE-2026-34486
- CVE-2016-5425
- CVE-2026-41293
- CVE-2026-43512
- CVE-2026-43515
- CVE-2026-55956
- CVE-2026-65905
- CVE-2026-65637
- CVE-2026-41284
- CVE-2026-68763
- CVE-2026-65927
- CVE-2026-68525
- CVE-2026-65182
- CVE-2016-6325
- CVE-2026-55276
- CVE-2026-42498
- CVE-2026-59084
- CVE-2026-66422
- CVE-2026-68569
- CVE-2026-43513
- CVE-2026-65183
- CVE-2026-34483
- CVE-2026-34487
- CVE-2026-59083
- CVE-2026-73180
- CVE-2026-66299
- CVE-2026-34500
- CVE-2026-55955
- CVE-2026-43514
Package URL or steps to reproduce:
Create a minimal CycloneDX SBOM:
cat > tomcat-embed-el.cdx.json <<'EOF'
{
"bomFormat": "CycloneDX",
"specVersion": "1.4",
"version": 1,
"components": [
{
"type": "library",
"group": "org.apache.tomcat.embed",
"name": "tomcat-embed-el",
"version": "11.0.20",
"purl": "pkg:maven/org.apache.tomcat.embed/[email protected]?type=jar"
}
]
}
EOFRun Grype with CPE generation:
GRYPE_MATCH_JAVA_USING_CPES=true \
grype sbom:tomcat-embed-el.cdx.json --add-cpes-if-none -o jsonObserved: Grype generates/uses the broad Apache Tomcat CPE:
cpe:2.3:a:apache:tomcat:11.0.20:*:*:*:*:*:*:*and reports full Apache Tomcat server/runtime CVEs against the EL-only artifact.
Without synthetic CPE generation, these findings disappear:
grype sbom:tomcat-embed-el.cdx.json -o jsonAnything else we need to know?:
tomcat-embed-el is the EL-only Maven artifact:
pkg:maven/org.apache.tomcat.embed/[email protected]?type=jarThe reported CVEs appear to be Tomcat server/runtime/auth/security-constraint/rewrite-valve/AJP/WebSocket/cluster/logging issues, not vulnerabilities in the EL-only jar.
Expected behavior: Grype should not generate/use the broad:
cpe:2.3:a:apache:tomcat:*for:
org.apache.tomcat.embed:tomcat-embed-elor should avoid matching full Tomcat server CVEs against this EL-only artifact.
Environment:
- Output of grype version:
Application: grype
Version: 0.119.0
Platform: windows/amd64
Syft Version: v1.51.0
Supported DB Schema: 6- OS: Windows
Source: anchore/grype