You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
postgresql_importer_v2 marks only X.0.0 as affected, so 18.6 is not flagged for a CVE fixed in 18.7 #2559
postgresql_importer_v2 turns the "Affected" column of https://www.postgresql.org/support/security/ into an exact-version list. That column lists major branches (18, 17, 16, 15), so the stored range is
That says only 15.0.0, 16.0.0, 17.0.0 and 18.0.0 are affected. Every real vulnerable release (18.0–18.6, 17.0–17.11, ...) falls outside the range, so a lookup for pkg:generic/postgresql@18.6 does not report the CVE, even though 18.7 is the fix.
Reproduce
Using the live index page and the importer's own parser:
All 118 rows on the page today are parsed this way. The test fixture encodes the same thing (parse-advisory-postgresql-expected.json: vers:generic/9.6.0|10.0.0|11.0.0|12.0.0).
Possible fix
Each fixed version already identifies its branch, so the affected range can be built per branch: for a fixed version 18.7 the branch is 18 (9.6 for pre-10 versions), giving >=18.0|<18.7. For the row above:
A branch listed as affected with no fixed version (unsupported branches) could stay >=X.0 with no upper bound, or be left out. Happy to open a PR if this approach sounds right.
Activity