A Vulnerability in Libsodium

(00f.net)

111 points | by raggi 4 hours ago

5 comments

  • CiPHPerCoder 2 hours ago
    This also affected the PHP library, sodium_compat. https://github.com/FriendsOfPHP/security-advisories/pull/756

    I'm planning to spend my evening checking every other Ed25519 implementation I can find to see if this check is missing any where else in the open source ecosystem.

    • hu3 1 hour ago
      Thank you for your work on open source.
  • proof_by_vibes 2 hours ago
    I've been iterating on sodium bindings in Lean4 for about four months, and now that I've gotten to Ristretto255 I can see why the author is excited about its potential. Ristretto is a tightly designed API that allows me to build arbitrary polynomials on Curve25519 and I've been having a blast tinkering and experimenting with it! If the author by chance reads this, just want to say thank you for your work!
    • fshacf 11 minutes ago
      You have a public repo of this?
  • runtimepanic 1 hour ago
    Subtle but important bug. This is a good example of how “is valid” checks in crypto are rarely as simple as they sound. Accepting points outside the prime-order subgroup can quietly undermine higher-level assumptions, even if no immediate exploit is obvious. Also a reminder that low-level primitives tend to be reused far more widely than intended, so small validation gaps can have surprisingly large blast radii.
  • theLiminator 1 hour ago
    If you work for a big company, consider trying to get Frank sponsored by your company.
    • guessmyname 6 minutes ago
      I work for a big company (Apple) but I have no idea who Frank is, nor how to sponsor them; and even if I knew them and how to sponsor them, the money would come directly from my pocket instead of Apple’s banking account.
      • CiPHPerCoder 0 minutes ago
        From the article:

          If libsodium is useful to you, please keep in mind that it is maintained by one person, for free, in time I could spend with my family or on other projects. The best way to help the project would be to consider sponsoring it, which helps me dedicate more time to improving it and making it great for everyone, for many more years to come.
        
        The "sponsoring it" links to https://opencollective.com/libsodium/contribute

        Hope that helps.

  • gafferongames 2 hours ago
    Such a great library. Thank you Frank Denis