Xalan-Java: Arbitrary code execution — GLSA 201604-02

Insufficient constraints in Apache's Xalan-Java might allow remote attackers to execute arbitrary code and load arbitrary classes.

Affected packages

dev-java/xalan on all architectures
Affected versions < 2.7.2
Unaffected versions >= 2.7.2

Background

Xalan-Java is an XSLT processor for transforming XML documents into HTML, text, or other XML document types.

Description

The TransformerFactory in Apache Xalan-Java does not properly restrict access to certain properties when FEATURE_SECURE_PROCESSING is enabled. This can also be exploited via a Java property that is bound to the XSLT 1.0 system-property function.

Impact

A remote attacker could inject specially crafted XSLT properties resulting in the execution of arbitrary code with the privileges of the process.

Workaround

There is no known work around at this time.

Resolution

All Xalan-Java users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-java/xalan-2.7.2"
 

References

Release date
April 02, 2016

Latest revision
April 02, 2016: 1

Severity
normal

Exploitable
remote

Bugzilla entries