Red Hat
Resteasy-core: resteasy sourceprovider remote unauthenticated file read
A flaw was found in RESTEasy's SourceProvider. This vulnerability allows an unauthenticated attacker to perform an unauthenticated remote file read. By sending a specially crafted XML body with a DOCTYPE declaration referencing external entities to an endpoint that accepts application/xml and returns Source or StreamSource, the server can be tricked into resolving the entity and including sensitive file contents in the HTTP response. This is due to the SourceProvider.writeTo() method creating a SAXParser without disabling external entity resolution, leading to an XML External Entity (XXE) vulnerability.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 6.2.16.Final-redhat-00003
Fixed in 26.6.7-3
Fixed in 26.6-20
Fixed in 26.6-20
Fixed in 6.2.12.Final-redhat-00003
Fixed in 6.2.16.Final-redhat-00003
Fixed in 0:3.0.26-20.el9_8
Fixed in 0:3.0.26-16.el9_2
Fixed in 0:3.0.26-20.el9_4
Fixed in 0:3.0.26-20.el9_6
Mitigation
Upgrade Red Hat Build of Apache Camel 3.33.3.SP1 to 6.2.16.Final-redhat-00003 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6.7-3 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-20 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-20 or later.
Upgrade Red Hat build of Quarkus 3.27.5.SP1 to 6.2.12.Final-redhat-00003 or later.
Upgrade Red Hat build of Quarkus 3.33.3.SP1 to 6.2.16.Final-redhat-00003 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:3.0.26-20.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:3.0.26-16.el9_2 or later.
Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:3.0.26-20.el9_4 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:3.0.26-20.el9_6 or later.
Workaround
To mitigate this issue, avoid exposing RESTEasy endpoints that return Source or StreamSource types. Alternatively, implement a custom MessageBodyWriter for Source types that explicitly applies XML security features to the SAXParserFactory before parsing. Changes to application configuration or code typically require an application redeployment or restart to take effect.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:62515
- Vendor advisory access.redhat.com/errata/RHSA-2026:62555
- Vendor advisory access.redhat.com/errata/RHSA-2026:63302
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:68277
- Vendor advisory access.redhat.com/errata/RHSA-2026:68278
- Vendor advisory access.redhat.com/errata/RHSA-2026:72424
- Vendor advisory access.redhat.com/errata/RHSA-2026:77297
- Vendor advisory access.redhat.com/errata/RHSA-2026:80505
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.