CVE-2004-1452
Description
In Gentoo Linux, Tomcat init scripts are owned by tomcat:tomcat but run as root, allowing local tomcat group members to escalate to root.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In Gentoo Linux, Tomcat init scripts are owned by tomcat:tomcat but run as root, allowing local tomcat group members to escalate to root.
Vulnerability
In Gentoo Linux, the Tomcat ebuild sets the ownership of the init scripts (/etc/init.d/tomcat* and /etc/conf.d/tomcat*) to tomcat:tomcat. However, these scripts are executed with root privileges when the system starts or when the Tomcat service is managed. This misconfiguration affects Tomcat versions before 5.0.27-r3 on Gentoo [1].
Exploitation
A local user who is a member of the tomcat group can modify the init scripts (e.g., /etc/init.d/tomcat*) to include arbitrary commands. When the system boots or the Tomcat init script is run (e.g., via service tomcat start), the injected commands execute with root privileges. No additional authentication or user interaction beyond being in the tomcat group is required [1].
Impact
Successful exploitation allows a local attacker in the tomcat group to execute arbitrary commands as root, leading to full root compromise of the system. This is a local privilege escalation vulnerability [1].
Mitigation
Users should upgrade to Tomcat >=5.0.27-r3 (the fixed version) via emerge ">=www-servers/tomcat-5.0.27-r3". As a workaround, change ownership of the init and configuration files to root:root using:
chown -R root:root /etc/init.d/tomcat*
chown -R root:root /etc/conf.d/tomcat*
This vulnerability is documented in Gentoo GLSA 200408-15 [1].
AI Insight generated on May 24, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
9cpe:2.3:o:gentoo:linux:0.5:*:*:*:*:*:*:*+ 7 more
- cpe:2.3:o:gentoo:linux:0.5:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:0.7:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.1a:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.2:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.4:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.4:rc1:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.4:rc2:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:1.4:rc3:*:*:*:*:*:*
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
0No linked articles in our index yet.