Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. irrd
  4. ›
  5. CVE-2022-24798

CVE-2022-24798: Improper Removal of Sensitive Information Before Storage or Transfer in irrd

April 1, 2022 (updated September 24, 2024)

IRRd did not always filter password hashes in query responses relating to mntner objects and database exports. This may have allowed adversaries to retrieve some of these hashes, perform a brute-force search for the clear-text passphrase, and use these to make unauthorised changes to affected IRR objects. This issue only affected instances that process password hashes, which means it is limited to IRRd instances that serve authoritative databases. IRRd instances operating solely as mirrors of other IRR databases are not affected.

The issue occurred:

  • For mntner objects where all password hash names (MD5-PW and CRYPT-PW) were in lower or mixed case in the auth attribute. For these objects, hashes remained in the output of all queries of any method and all database exports made with the export_destination setting. Fortunately, objects in the common public IRR database virtually all use uppercase hash names which means very few of those objects were affected.
  • For any GraphQL queries that queried the auth field on mntner objects.
  • For any GraphQL queries that queried the objectText field on the journal field on mntner objects, if the nrtm_access_list setting permitted journal access.

The two GraphQL cases are visible in logs, allowing users to determine whether any existing objects had their hashes exposed. This has been fixed in IRRd 4.2.3 and the main branch. Versions in the 4.1.x series never were affected. Users of the 4.2.x series are strongly recommended to upgrade. All users running a more recent version from the main branch should update to the latest version. Alternatively, but not recommended, apply the patch manually [for 4.2.x]

References

  • github.com/advisories/GHSA-cqxx-66wh-8pjw
  • github.com/irrdnet/irrd
  • github.com/irrdnet/irrd/commit/0e41bae8d3d27316381a2fc7b466597230e35ec6
  • github.com/irrdnet/irrd/commit/fdffaf8dd71713f06e99dff417e6aa1e6fa84b70
  • github.com/irrdnet/irrd/security/advisories/GHSA-cqxx-66wh-8pjw
  • github.com/pypa/advisory-database/tree/main/vulns/irrd/PYSEC-2022-178.yaml
  • irrd.readthedocs.io/en/stable/releases/4.2.3
  • nvd.nist.gov/vuln/detail/CVE-2022-24798

Code Behaviors & Features

Detect and mitigate CVE-2022-24798 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 4.2.0 before 4.2.3

Fixed versions

  • 4.2.3

Solution

Upgrade to version 4.2.3 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-212: Improper Removal of Sensitive Information Before Storage or Transfer

Source file

pypi/irrd/CVE-2022-24798.yml

Spotted a mistake? Edit the file on GitLab.

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

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