SAML 2.0 functionality in SAP NetWeaver AS Java, does not sufficiently validate XML documents received from an untrusted source. This is fixed in versions 7.2, 7.30, 7.31, 7.40 and 7.50.
https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=508559699