org.apache.struts:struts2-rest-plugin@2.5-BETA1

  • latest version

    7.4.0

  • latest non vulnerable version

  • first published

    18 years ago

  • latest version published

    2 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.apache.struts:struts2-rest-plugin package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Allocation of Resources Without Limits or Throttling

    org.apache.struts:struts2-rest-plugin is a free open-source solution for creating Java web applications.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the intercept method in ContentTypeInterceptor in the Apache Struts REST plugin. An attacker can exhaust the Java heap and deny service to other users by sending a large request body for the plugin to process. No additional setting is required; applications that do not use the REST plugin are not affected.

    Notes

    • At the interceptor’s body-processing gate, request.getContentLength() must be positive; requests with an unknown or absent content length do not enter this read path.
    • At the handler-read step, the selected content-type handler must consume the reader for the body to be allocated in memory; handlers that leave it unread do not trigger the unbounded read.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.apache.struts:struts2-rest-plugin to version 6.12.0, 7.4.0 or higher.

    [2.1.8,6.12.0)[7.0.0,7.4.0)
    • H
    Denial of Service (DoS)

    org.apache.struts:struts2-rest-plugin provides high level support for the implementation of RESTful resource based web applications Convention Plugin.

    Affected versions of this package are vulnerable to Denial of Service (DoS) attacks. An attacker may post a specially crafted XML request in order to perform a DoS attack when using the Struts REST plugin.

    How to fix Denial of Service (DoS)?

    Upgrade org.apache.struts:struts2-rest-plugin to version 2.5.16 or higher.

    [2.1.1,2.5.16)