Research

RESTEasy

Unauthenticated file read through RESTEasy SourceProvider

High (7.5)Published

CVE-2026-17615 is an unauthenticated XML external entity vulnerability in RESTEasy SourceProvider.

Affected
RESTEasy Affected Red Hat packages
Attack requirements
Network access to an endpoint that accepts XML and returns Source or StreamSource

Impact

An unauthenticated attacker can make the application resolve an external entity and include local file contents in the response. The published CVSS 3.1 score is 7.5, with high confidentiality impact and no required privileges or user interaction.

Technical detail

  • A crafted XML request supplies a DOCTYPE declaration that references an external entity.
  • SourceProvider.writeTo creates a SAXParser without disabling external entity resolution.
  • When the affected endpoint returns Source or StreamSource, resolved entity content can be written into the HTTP response.

Remediation

  • Apply the security update supplied for the affected Red Hat product.
  • If an update cannot be applied immediately, avoid exposing endpoints that return Source or StreamSource.
  • A custom MessageBodyWriter can also create its parser with external entity resolution disabled.

News