{"id":"CVE-2022-31157","aliases":["EUVD-2022-6276","GHSA-768m-5w34-2xf5"],"status":"published","title":"Use of a Broken or Risky Cryptographic Algorithm in packbackbooks/lti-1-3-php-library","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00453,"percentile":0.39755,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-327","CWE-330"],"published":"2022-07-15T17:15:21Z","modified":"2026-10-28T02:30:34Z","fixes":[{"ecosystem":"Packagist","package":"packbackbooks/lti-1-3-php-library","fixed_in":["5.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"packbackbooks/lti-1-3-php-library","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0"}]}]},{"source":"osv","ecosystem":"Packagist","package":"packbackbooks/lti-1-3-php-library","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0"}]}]}],"products":[{"vendor":"packback","product":"lti_1.3_tool_library"},{"vendor":"packbackbooks","product":"lti-1-3-php-library"}],"references":[{"url":"https://github.com/packbackbooks/lti-1-3-php-library/security/advisories/GHSA-768m-5w34-2xf5","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/packbackbooks/lti-1-3-php-library/commit/de19e8a0b28cdc7750fa3ca98471eeed26ba3e57","tags":["web"]},{"url":"https://openid.net/specs/openid-connect-core-1_0.html#IDToken","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31157","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-768m-5w34-2xf5"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31157.json","tags":["advisory"]},{"url":"https://github.com/packbackbooks/lti-1-3-php-library","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-31157","title":"Use of a Broken or Risky Cryptographic Algorithm in packbackbooks/lti-1-3-php-library","description":"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.","status":"published","published":"2022-07-15T17:15:21Z","modified":"2025-04-23T17:58:11.075Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:34:35.279735Z"}],"euvd":[{"id":"EUVD-2022-6276","description":"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.","status":"published","published":"2022-07-15T17:15:21Z","modified":"2025-04-23T17:58:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T20:52:09.919052Z"}],"ghsa":[{"id":"GHSA-768m-5w34-2xf5","title":"LTI 1.3 Tool Library's function used to generate random nonces not sufficiently cryptographically complex before v5.0","description":"### Impact\n\nThe function used to generate random nonces was not sufficiently cryptographically complex. As a result values may be predictable and tokens may be forgable.\n\n### Patches\n\nUsers should upgrade to version 5.0 immediately\n\n### Workarounds\n\nNone.\n\n","status":"published","published":"2022-07-15T20:55:46Z","modified":"2023-07-24T19:44:34Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-327","CWE-330"],"updated_at":"2026-11-02T14:36:58.177785Z"}],"nvd":[{"id":"CVE-2022-31157","description":"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.","status":"published","published":"2022-07-15T18:15:08.91Z","modified":"2026-06-17T04:44:55.477Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-327","CWE-330"],"updated_at":"2026-11-02T14:07:23.686531Z"}],"osv":[{"id":"CVE-2022-31157","title":"Use of a Broken or Risky Cryptographic Algorithm in packbackbooks/lti-1-3-php-library","description":"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.","status":"published","published":"2022-07-15T17:15:21Z","modified":"2026-10-28T02:30:34.953207672Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T15:44:25.516981Z"},{"id":"GHSA-768m-5w34-2xf5","title":"LTI 1.3 Tool Library's function used to generate random nonces not sufficiently cryptographically complex before v5.0","description":"### Impact\n\nThe function used to generate random nonces was not sufficiently cryptographically complex. As a result values may be predictable and tokens may be forgable.\n\n### Patches\n\nUsers should upgrade to version 5.0 immediately\n\n### Workarounds\n\nNone.\n\n","status":"published","published":"2022-07-15T20:55:46Z","modified":"2023-11-08T04:09:28.038385Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-327","CWE-330"],"updated_at":"2026-11-02T15:46:40.657155Z"}]}}
