Skip to content

Harden public key deserialization: add curve point validation #50

Description

@dobby-coder

A draft security advisory has been filed for a medium-severity finding in public key deserialization across multiple IBE/KEM schemes.

Advisory: https://github.com/encryption4all/ibe/security/advisories/GHSA-25fp-2fjj-g84w

The advisory describes a gap between the documented trust assumption (public keys are authenticated infrastructure) and what the API enforces at the boundary. The fix involves replacing unchecked curve point deserialization with checked variants or adding explicit subgroup membership verification.

Affected files (public-facing from_bytes implementations):

  • src/ibe/cgw.rs
  • src/kem/kiltz_vahlis_one.rs
  • src/kem/cgw_kv.rs
  • src/ibe/boyen_waters.rs

/dobby fix — switch from_compressed_unchecked to from_compressed (or add explicit subgroup checks) in all public-key from_bytes implementations listed in the advisory; ensure CI passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity-related issue (vulnerability, hardening, or risk)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions