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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.87%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-05T00:00:00.000Z
- Modified: 2026-06-17T05:35:46.040Z
- Also known as: GHSA-vf99-xw26-86g5
- Weaknesses: CWE-209
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pghero (RubyGems): before 3.1.0
- pghero_project pghero: from 0.1.1 before 3.1.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ankane/pghero/issues/439> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22626> (advisory)
- <https://github.com/ankane/pghero> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pghero/CVE-2023-22626.yml> (web)

## Sources

- CVE List: [CVE-2023-22626](https://www.cve.org/CVERecord?id=CVE-2023-22626), CVE Terms of Use, modified 2025-04-07
- GitHub Advisory Database: [GHSA-vf99-xw26-86g5](https://github.com/advisories/GHSA-vf99-xw26-86g5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-22626](https://nvd.nist.gov/vuln/detail/CVE-2023-22626), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22626 · Whole record: https://cve.day/CVE-2023-22626.json · Rebuilt by cve.day 2026-11-25T22:58:21.486Z
