{"id":"CVE-2022-31157","published":"2022-07-15T17:15:21Z","modified":"2025-04-23T17:58:11Z","title":"Use of a Broken or Risky Cryptographic Algorithm in packbackbooks/lti-1-3-php-library","vendor":"packbackbooks","product":"lti-1-3-php-library","tier":"tail","description":{"text":"LTI 1.3 Tool Library is a library used for building IMS-certified LTI 1.3 tool providers in PHP. Prior to version 5.0, the function used to generate random nonces was not sufficiently cryptographically complex. Users should upgrade to version 5.0 to receive a patch. There are currently no known workarounds.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00466,"percentile":0.32429,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://github.com/packbackbooks/lti-1-3-php-library/security/advisories/GHSA-768m-5w34-2xf5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":6.49},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"packbackbooks","affectedVersions":[{"vendor":"packbackbooks","product":"lti-1-3-php-library","versions":["< 5.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:53:23.554206Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"packbackbooks/lti-1-3-php-library","vulnerableRanges":["<5.0"],"patched":["5.0"],"from":["GHSA-768m-5w34-2xf5"],"provenance":"source"}],"summary":{"text":"The flaw is in the nonce generation function of the LTI 1.3 Tool Library (packbackbooks/lti-1-3-php-library), a PHP library for building LTI 1.3 tool providers, where the randomness used to create nonces is not cryptographically strong in versions before 5.0. An attacker with network access and no privileges or user interaction can exploit the weak nonces to compromise the integrity of affected LTI flows, and no configuration changes are required for the attack, although upgrading to version 5.0 is the only fix as no workarounds exist.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:10Z"},"euvd":{"id":"EUVD-2022-6276","exploited":false,"provenance":"source"}}