RubySec

Providing security resources for the Ruby community

CVE-2023-22626 (pghero): Information Disclosure Through EXPLAIN Feature

ADVISORIES

GEM

pghero

SEVERITY

CVSS v3.x: 7.5 (High)

PATCHED VERSIONS

  • >= 3.1.0

DESCRIPTION

A malicious PgHero user can use the EXPLAIN functionality to extract data from the database. With certain inputs, a user can get the results of a query to appear in an error message. If the PgHero database user has superuser privileges (not recommended), the user can use file access functions to read files on the database server.