CVE-2023-28708
Apache Tomcat: JSESSIONID Cookie missing secure attribute in some configurations
Reported by apache · Published March 22, 2023
tomcat-catalina is fixed in 11.0.0-M3, 10.1.6, 9.0.72 and 1 more (Maven Central)
When using the RemoteIpFilter with requests received from a reverse proxy via HTTP that include the X-Forwarded-Proto header set to https, session cookies created by Apache Tomcat 11.0.0-M1 to 11.0.0.-M2, 10.1.0-M1 to 10.1.5, 9.0.0-M1 to 9.0.71 and 8.5.0 to 8.5.85 did not include the secure attribute. This could result in the user agent transmitting the session cookie over an insecure channel. Older, EOL versions may also be affected.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat-catalina | Maven Central | 11.0.0-M3, 10.1.6, 9.0.72, 8.5.86 |
| org.apache.tomcat.embed:tomcat-embed-core | Maven Central | 11.0.0, 10.1.6, 9.0.72, 8.5.86 |
| tomcat9-lib | Amazon Linux | 1:9.0.71-1.amzn2023.0.2 |
| tomcat9-jsp-2.3-api | Amazon Linux | 1:9.0.71-1.amzn2023.0.2 |
| tomcat-javadoc | Amazon Linux | 7.0.76-10.amzn2.0.3 |
| tomcat-webapps | Amazon Linux | 7.0.76-10.amzn2.0.3 |
| tomcat9 | Amazon Linux | 1:9.0.71-1.amzn2023.0.2 |
| tomcat9-el-3.0-api | Amazon Linux | 1:9.0.71-1.amzn2023.0.2 |
| tomcat-lib | Amazon Linux | 7.0.76-10.amzn2.0.3 |
| tomcat-docs-webapp | Amazon Linux | 7.0.76-10.amzn2.0.3 |
| tomcat9-admin-webapps | Amazon Linux | 1:9.0.71-1.amzn2023.0.2 |
| tomcat-jsp-2.2-api | Amazon Linux | 7.0.76-10.amzn2.0.3 |
12 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Tomcat | 11.0.0-M1, 10.1.0-M1, 9.0.0-M1 |
| amazon:2023 | tomcat9-lib | 0 |
| amazon:2023 | tomcat9-jsp-2.3-api | 0 |
| amazon:2 | tomcat-javadoc | 0 |
| amazon:2 | tomcat-webapps | 0 |
| amazon:2023 | tomcat9 | 0 |
| amazon:2023 | tomcat9-el-3.0-api | 0 |
| amazon:2 | tomcat-lib | 0 |
| Maven | org.apache.tomcat:tomcat-catalina | 8.5.0, 11.0.0-M1, 10.1.0-M1 |
| Apache Software Foundation | Apache Tomcat | 8.5.0, 9.0.0-M1, 11.0.0-M1 |
| amazon:2 | tomcat-docs-webapp | 0 |
| amazon:2023 | tomcat9-admin-webapps | 0 |
| amazon:2 | tomcat-jsp-2.2-api | 0 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 11.0.0-M1, 8.5.0, 9.0.0-M1 |
| amazon:2 | tomcat | 0 |
| amazon:2 | tomcat-jsvc | 0 |
| amazon:2023 | tomcat9-servlet-4.0-api | 0 |
| amazon:2 | tomcat-servlet-3.0-api | 0 |
| amazon:2023 | tomcat9-webapps | 0 |
| amazon:2 | tomcat-admin-webapps | 0 |
…and 2 more
Timeline
- Mar 21, 2023 CVE Published
- Mar 22, 2023 PoC Published (3 in total, the first dated here)
- Mar 23, 2023 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (10 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-28708
vulnetix vdb fixes CVE-2023-28708
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28708/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-28708 advisory
- https://github.com/advisories/GHSA-2c9m-w27f-53rm advisory
- https://github.com/apache/tomcat/commit/3b51230764da595bb19e8d0962dd8c69ab40dfab patch
- https://github.com/apache/tomcat/commit/5b72c94e8b2c4ada63a1d91dc527bf4d8fd1f510 patch
- https://github.com/apache/tomcat/commit/c64d496dda1560b5df113be55fbfaefec349b50f patch
- https://github.com/apache/tomcat/commit/f509bbf31fc00abe3d9f25ebfabca5e05173da5b patch
- https://bz.apache.org/bugzilla/show_bug.cgi?id=66471 url
- https://github.com/apache/tomcat url
- https://security.netapp.com/advisory/ntap-20230331-0012 advisory
- https://tomcat.apache.org/security-10.html url
- https://tomcat.apache.org/security-11.html url
- https://tomcat.apache.org/security-8.html url
- https://tomcat.apache.org/security-9.html url
- https://security.netapp.com/advisory/ntap-20230331-0012/ url