Incorrect Default Permissions vulnerability in Apache Tomcat Connectors allows local users to view and modify shared memory containing modjk configuration which may lead to information disclosure and/or denial of service.
This issue affects Apache Tomcat Connectors: from 1.2.9-beta through 1.2.49. Only modjk on Unix like systems is affected. Neither the ISAPI redirector nor modjk on Windows is affected.
Users are recommended to upgrade to version 1.2.50, which fixes the issue.
Severity: moderate
Affected versions: - Apache Tomcat Connectors 1.2.9-beta through 1.2.49
Description:
Users are recommended to upgrade to version 1.2.50, which fixes the issue.
References:
https://lists.apache.org/thread/q1gp7cc38hs1r8gj8gfnopwznd5fpr4d https://tomcat.apache.org/ https://www.cve.org/CVERecord?id=CVE-2024-46544
Incorrect Default Permissions vulnerability in Apache Tomcat Connectors allows local users to view and modify shared memory containing modjk configuration which may lead to information disclosure and/or denial of service.
Severity: important
Affected versions:
- Apache Tomcat Connectors 1.2.0 through 1.2.48
Description:
Important: Authentication Bypass CVE-2023-41081
Users are recommended to upgrade to version 1.2.49, which fixes the issue.
History 2023-09-13 Original advisory
2023-09-28 Updated summary
Credit:
Karl von Randow (finder)
References:
https://lists.apache.org/thread/rd1r26w7271jyqgzr4492tooyt583d8b https://tomcat.apache.org/ https://www.cve.org/CVERecord?id=CVE-2023-41081
Important: Authentication Bypass CVE-2023-41081
The modjk component of Apache Tomcat Connectors in some circumstances, such as when a configuration included "JkOptions +ForwardDirectories" but the configuration did not provide explicit mounts for all possible proxied requests, modjk would use an implicit mapping and map the request to the first defined worker. Such an implicit mapping could result in the unintended exposure of the status worker and/or bypass security constraints configured in httpd. As of JK 1.2.49, the implicit mapping functionality has been removed and all mappings must now be via explicit configuration. Only modjk is affected by this issue. The ISAPI redirector is not affected.
This issue affects Apache Tomcat Connectors (modjk only): from 1.2.0 through 1.2.48.
Users are recommended to upgrade to version 1.2.49, which fixes the issue.
History 2023-09-13 Original advisory
2023-09-28 Updated summary
A flaw was found in Apache Tomcat JK modjk Connector 1.2.0 to 1.2.44. The Apache Web Server (httpd) specific code that normalised the requested path before matching it to the URI-worker map in Apache Tomcat JK (modjk) Connector did not handle some edge cases correctly. If only a sub-set of the URLs supported by Tomcat were exposed via httpd, then it was possible for a specially constructed request to expose application functionality through the reverse proxy that was not intended for clients accessing the application via the reverse proxy. It was also possible in some configurations for a specially constructed request to bypass the access controls configured in httpd. While there is some overlap between this issue and CVE-2018-1323, they are not identical.
References: https://lists.apache.org/thread.html/6d564bb0ab73d6b3efdd1d6b1c075d1a2c84ecd84a4159d6122529ad@%3Cannounce.tomcat.apache.org%3E
The IIS/ISAPI specific code in the Apache Tomcat JK ISAPI Connector 1.2.0 to 1.2.42 that normalised the requested path before matching it to the URI-worker map did not handle some edge cases correctly. If only a sub-set of the URLs supported by Tomcat were exposed via IIS, then it was possible for a specially constructed request to expose application functionality through the reverse proxy that was not intended for clients accessing Tomcat via the reverse proxy.
The IIS/ISAPI specific code implements special handling when a virtual host is present. The virtual host name and the URI are concatenated to create a virtual host mapping rule. It was found that the length checks prior to writing to the target buffer for this rule did not take account of the length of the virtual host name, creating the potential for a buffer overflow.
Upstream patch:
https://svn.apache.org/viewvc?view=revision&revision=1762057
External References:
https://tomcat.apache.org/security-jk.html#FixedinApacheTomcatJKConnector1.2.42
Buffer overflow in Apache Tomcat Connectors (modjk) before 1.2.42.
Apache Tomcat Connectors (modjk) before 1.2.41 ignores JkUnmount rules for subtrees of previous JkMount rules, which allows remote attackers to access otherwise restricted artifacts via unspecified vectors.