https://github.com/apache/tomcat/pull/297
Fixed in: - master for 10.0.0-M7 onwards - 9.0.x for 9.0.37 onwards 8.5.x and 7.0.x are not affected. Thanks for the PR.