Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. pghero
  4. ›
  5. CVE-2023-22626

CVE-2023-22626: PgHero Allows Information Disclosure Through EXPLAIN Feature

January 5, 2023 (updated January 11, 2023)

PgHero before 3.1.0 allows Information Disclosure via EXPLAIN because query results may be present in an error message. (Depending on database user privileges, this may only be information from the database, or may be information from file contents on the database server.)

References

  • github.com/advisories/GHSA-vf99-xw26-86g5
  • github.com/ankane/pghero/issues/439
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/pghero/CVE-2023-22626.yml
  • nvd.nist.gov/vuln/detail/CVE-2023-22626

Code Behaviors & Features

Detect and mitigate CVE-2023-22626 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.1.1 before 3.1.0

Fixed versions

  • 3.1.0

Solution

Upgrade to version 3.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-209: Generation of Error Message Containing Sensitive Information

Source file

gem/pghero/CVE-2023-22626.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.