Make WordPress Core


Ignore:
Timestamp:
01/26/2026 10:51:10 PM (3 months ago)
Author:
jorbin
Message:

Upgrade/Install: Update sodium_compat to v1.24.0.

The latest version includes a security fix to ensure that the public key is on the prime order subgroup.

References:

Follow-up to [55699], [58752], [58753], [60787], [60905].

Reviewed by jorbin.
Merges [61419] to the 6.9 branch.

Props paragoninitiativeenterprises, johnbillion, SergeyBiryukov.
Fixes #64462.

Location:
branches/6.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9

  • branches/6.9/src/wp-includes/sodium_compat/src/File.php

    r60905 r61533  
    787787        ParagonIE_Sodium_Compat::$fastMult = true;
    788788
     789        if (ParagonIE_Sodium_Core_Ed25519::small_order($publicKey)) {
     790            throw new SodiumException('Public key has small order');
     791        }
    789792        /** @var ParagonIE_Sodium_Core_Curve25519_Ge_P3 $A */
    790793        $A = ParagonIE_Sodium_Core_Ed25519::ge_frombytes_negate_vartime($publicKey);
     794        if (!ParagonIE_Sodium_Core_Ed25519::is_on_main_subgroup($A)) {
     795            throw new SodiumException('Public key is not on a member of the main subgroup');
     796        }
    791797
    792798        $hs = hash_init('sha512');
Note: See TracChangeset for help on using the changeset viewer.