org.apache.struts:struts2-core@6.1.2 vulnerabilities

  • latest version

    7.0.3

  • latest non vulnerable version

  • first published

    18 years ago

  • latest version published

    4 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Remote Code Execution (RCE)

    org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

    Affected versions of this package are vulnerable to Remote Code Execution (RCE) via manipulation of file upload parameters that enable path traversal. When using FileUploadInterceptor, uploading of a malicious file is possible, which may then be executed on the server.

    Notes:

    This is only exploitable if the application uses FileUploadInterceptor;

    Version 6.4.0 deprecates FileUploadInterceptor, but to fix the vulnerability its use must be replaced by an instance of Action File Upload and the corresponding interceptor. FileUploadInterceptor has been removed in 7.0.0.

    How to fix Remote Code Execution (RCE)?

    Upgrade org.apache.struts:struts2-core to version 7.0.0 or higher.

    [,7.0.0)
    • C
    Remote Code Execution (RCE)

    org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

    Affected versions of this package are vulnerable to Remote Code Execution (RCE) via manipulation of file upload parameters that enable path traversal. Under certain conditions, uploading of a malicious file is possible, which may then be executed on the server.

    How to fix Remote Code Execution (RCE)?

    Upgrade org.apache.struts:struts2-core to version 2.5.33, 6.3.0.2 or higher.

    [,2.5.33)[6.0.0,6.3.0.2)
    • M
    Denial of Service

    org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

    Affected versions of this package are vulnerable to Denial of Service when certain fields exceed the maxStringLength limit during multipart requests. An attacker can exploit this to leave uploaded files in the struts.multipart.saveDir even after the request has been denied resulting in excessive disk usage.

    How to fix Denial of Service?

    Upgrade org.apache.struts:struts2-core to version 2.5.32, 6.1.2.2, 6.3.0.1 or higher.

    [,2.5.32)[6.0.0,6.1.2.2)[6.2.0,6.3.0.1)
    • H
    Allocation of Resources Without Limits or Throttling

    org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling when it loads non-file regular form fields from a Multipart request into memory as Strings without verifying their sizes.

    This vulnerability can be exploited if a developer has set struts.multipart.maxSize to a value equal to or greater than the available memory.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.apache.struts:struts2-core to version 2.5.31, 6.1.2.1 or higher.

    [2.5.1,2.5.31)[6.1.2,6.1.2.1)
    • M
    Allocation of Resources Without Limits or Throttling

    org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to improper handling of getProperty() by the XWorkListPropertyAccessor class. Exploiting this vulnerability is possible if the developer has set CreateIfNull to true for the underlying Collection type field.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.apache.struts:struts2-core to version 2.5.31, 6.1.2.1 or higher.

    [2.0.0,2.5.31)[6.1.2,6.1.2.1)