GHSA-5vv7-j593-mgjc: Neos/flow Neos Flow Arbitrary File Upload Vulnerability

MODERATE
Published
Advisory Summary

GHSA-5vv7-j593-mgjc is a MODERATE neos flow arbitrary file upload vulnerability (General Security Weakness) affecting Neos/flow libraries in the Packagist ecosystem. The issue involves neos flow arbitrary file upload and xml external entity processing. Remediation is available by upgrading affected packages to version 2.3.7, 3.0.1.

GHSA-5vv7-j593-mgjc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-5vv7-j593-mgjc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Neos/flow
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-5vv7-j593-mgjc

To remediate this vulnerability, upgrade all affected Neos/flow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

neos/flow fixed: 2.3.7
Upgrade neos/flow to 2.3.7
neos/flow fixed: 3.0.1
Upgrade neos/flow to 3.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for neos/flow

How to Check if You Are Affected

To determine whether your application is affected by GHSA-5vv7-j593-mgjc, inspect your project dependencies for Neos/flow:

inspect dependencies for neos/flow

Analyze the terminal output to locate any version of Neos/flow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Neos/flow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

It has been discovered that Flow 3.0.0 allows arbitrary file uploads, inlcuding server-side scripts, posing the risk of attacks. If those scripts are executed by the server when accessed through their public URL, anything not blocked through other means is possible (information disclosure, placement of backdoors, data removal, …). Note: The upload of files is only possible if the application built on Flow provides means to do so, and whether or not the upload of files poses a risk is dependent on the system setup. If uploaded script files are not executed by the server, there is no risk. In versions prior to 3.0.0 the upload of files with the extension php was blocked. In Flow 2.3.0 to 2.3.6 a potential XML External Entity processing vulnerability has been discovered in the MediaTypeConverter.

GHSA-5vv7-j593-mgjc Affected Neos/flow Versions

2 component(s)
Fixed Versions:
2.3.73.0.1
Product / Package Ecosystem Affected Versions Fixed Version
neos/flow
Packagist
≥ 2.3.0
< 2.3.7
2.3.7
neos/flow
Packagist
≥ 3.0.0
< 3.0.1
3.0.1

References

Frequently Asked Questions

What is GHSA-5vv7-j593-mgjc?
GHSA-5vv7-j593-mgjc is a security vulnerability in Neos/flow involving Neos Flow Arbitrary file upload and XML External Entity processing under General Security Weakness.
Which Neos/flow versions are affected?
Affected versions include releases prior to 2.3.7, 3.0.1 across affected packages: neos/flow.
What version fixes GHSA-5vv7-j593-mgjc?
Upgrading to 2.3.7, 3.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is neos/flow affected?
Yes, neos/flow is affected in releases prior to 2.3.7, 3.0.1. Upgrade your dependency to 2.3.7, 3.0.1 or later.
What CWE is associated with GHSA-5vv7-j593-mgjc?
GHSA-5vv7-j593-mgjc is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-5vv7-j593-mgjc?
Run the dependency tree command: 'inspect dependencies for neos/flow'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5vv7-j593-mgjc",
  "modified" : "2024-05-17T22:54:43Z",
  "published" : "2024-05-17T22:54:42Z",
  "aliases" : [ ],
  "summary" : "Neos Flow Arbitrary file upload and XML External Entity processing",
  "details" : "It has been discovered that Flow 3.0.0 allows arbitrary file uploads, inlcuding server-side scripts, posing the risk of attacks. If those scripts are executed by the server when accessed through their public URL, anything not blocked through other means is possible (information disclosure, placement of backdoors, data removal, …).\n\nNote: The upload of files is only possible if the application built on Flow provides means to do so, and whether or not the upload of files poses a risk is dependent on the system setup. If uploaded script files are not executed by the server, there is no risk. In versions prior to 3.0.0 the upload of files with the extension php was blocked.\n\nIn Flow 2.3.0 to 2.3.6 a potential XML External Entity processing vulnerability has been discovered in the MediaTypeConverter.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/flow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "neos/flow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/neos/flow/2015-11-23.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/neos/flow"
  }, {
    "type" : "WEB",
    "url" : "https://www.neos.io/blog/flow-sa-2015-001.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-17T22:54:42Z",
    "nvd_published_at" : null
  }
}