GitHub Advisoryadvisory · Packagist

GHSA-xwv6-v7qx-f5jc Code injection in ezsystems/ezpublish-kernel

CRITICAL Published 2022-02-19 Modified 2022-03-04 Official page ↗
Aliases
CVE-2022-25337
Ecosystem
Packagist
Packages
ezsystems/ezpublish-kernel
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-74
Reviewed
2022-03-04

Affected packages

• Packagist ezsystems/ezpublish-kernel: >= 7.5.0, < 7.5.26 → fixed in 7.5.26

Description

When image files are uploaded, they are made accessible under a name similar to the original file name. There are two issues with this. Both require access to uploading images in order to exploit them, this limits the impact. The first issue is that certain injection attacks can be possible, since not all possible attack vectors are removed from the original file name. The second issue is that direct access to the images is not access controlled. This is by design, for performance reasons, and documented as such. But it does mean that images not meant to be publicly accessible can be accessed, provided that the image path and filename is correctly deduced and/or guessed, through dictionary attacks and similar.

Related

Alias · CVE (1)

  • CVE-2022-25337 Ibexa DXP ezsystems/ezpublish-kernel 7.5.x before 7.5.26 and 1.3.x before 1.3.12 allows injection attacks via image filenames. vulnerability

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References