Bug 2271114 (CVE-2024-22029) - CVE-2024-22029 tomcat: Escalation to root from tomcat user via %post script
Summary: CVE-2024-22029 tomcat: Escalation to root from tomcat user via %post script
Keywords:
Status: NEW
Alias: CVE-2024-22029
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2271115
Blocks: 2271111
TreeView+ depends on / blocked
 
Reported: 2024-03-22 19:58 UTC by Robb Gatica
Modified: 2024-04-10 20:46 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Tomcat package of OpenSUSE and derived distributions. This issue occurs due to incorrect permissions and a race condition in the %post section of the Tomcat RPM package, resulting in local privilege escalation when the Tomcat package is re-installed.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-03-22 19:58:12 UTC
A flaw demonstrating local privilege escalation from the default tomcat user/group to root was reported to SUSE. /usr/share/tomcat/tomcat-webapps is owned by root but writable for the tomcat group, which can potentially be exploited with specially crafted inputs/payload. PoC and explanation can be found in the below referenced bug. 

Affected versions:
< 9.0.85

References:
https://bugzilla.suse.com/show_bug.cgi?id=1219208
https://bz.apache.org/bugzilla/show_bug.cgi?id=68663

Comment 1 Robb Gatica 2024-03-22 20:02:23 UTC
Created tomcat tracking bugs for this issue:

Affects: fedora-all [bug 2271115]


Note You need to log in before you can comment on or make changes to this bug.