HIGH 7.3

CVE-2017-5661

Improper Restriction of XML External Entity Reference in Apache FOP

Description

In Apache FOP before 2.2, files lying on the filesystem of the server which uses FOP can be revealed to arbitrary users who send maliciously formed SVG files. The file types that can be shown depend on the user context in which the exploitable application is running. If the user is root a full compromise of the server - including confidential or sensitive files - would be possible. XXE can also be used to attack the availability of the server via denial of service as the references within a xml document can trivially trigger an amplification attack.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.xmlgraphics » fop
< 2.2
2.2

Blast radius

1affected artifacts
14affected versions
2,678dependent artifacts (est.)
79,200dependent versions

48% of the dependent artifacts (1,308) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,785
2 hops
19,627
3 hops
26,174
4 hops
16,624
5 hops
8,666
6 hops
5,324

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Webtenable.com
Webxmlgraphics.apache.org
Webdebian.org
Websecurityfocus.com