{"items":[{"id":"NVI-00015187","kind":"vulnerability","title":"Lemur: Missing authorization check on POST /certificates//export for plugins with requires_key = False","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-4h97-p9wq-chqj","CVE-2026-71322"],"plain_summary":"GitHub lists this reviewed advisory for lemur. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-392b730c76b3ebe6867d1faa33c3d03d"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-08-18T20:51:43.000Z","value":"4.3 medium","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-392b730c76b3ebe6867d1faa33c3d03d"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-392b730c76b3ebe6867d1faa33c3d03d","url":"https://github.com/advisories/GHSA-4h97-p9wq-chqj","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-4h97-p9wq-chqj","publisher":"GitHub Advisory Database","observed_at":"2026-11-02T20:14:33.912Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-392b730c76b3ebe6867d1faa33c3d03d"],"technology":"lemur","known_exclusions":[],"conditions_summary":"## Summary\n \nThe `CertificateExport` handler in `lemur/certificates/views.py` nests its entire ownership / `CertificatePermission` check inside an `if plugin.requires_key:` branch. When the selected export plugin advertises `requires_key = False`, the authorization check is skipped entirely and any authenticated user can invoke `plugin.export(cert.body, cert.chain, cert.private_key, options)` against a certificate they do not own. The handler additionally writes a `\"key_view\"` audit-log event for every call, regardless of whether the plugin actually accessed the private key, polluting the audit trail with false positives.\n \n## Root Cause\n \n`lemur/certificates/views.py:1573`:\n \n```python\nif plugin.requires_key:\n    if not cert.private_key:\n        return (..., 400)\n    else:\n        if g.current_user != cert.user:\n            owner_role = role_service.get_by_name(cert.owner)\n            permission = CertificatePermission(owner_role, [x.name for x in cert.roles])\n            if not permission.can():\n                return (..., 403)\n \nlog_service.create(g.current_user, \"key_view\", certificate=cert)   # always logged\nextension, passphrase, data = plugin.export(\n    cert.body, cert.cha","public_affected_ranges":["< 1.9.3"]}],"null_published_at":"2026-11-03T10:03:26.558Z","source_updated_at":"2026-08-18T20:51:43.000Z","source_disclosed_at":"2026-08-18T20:51:42.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-02T20:14:33.912Z"}],"next_cursor":null,"snapshot_revision":"42594"}