{"id":"GHSA-768m-5w34-2xf5","summary":"LTI 1.3 Tool Library's function used to generate random nonces not sufficiently cryptographically complex before v5.0","details":"### 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","aliases":["CVE-2022-31157"],"modified":"2023-11-08T04:09:28.038385Z","published":"2022-07-15T20:55:46Z","database_specific":{"github_reviewed_at":"2022-07-15T20:55:46Z","nvd_published_at":"2022-07-15T18:15:00Z","cwe_ids":["CWE-327","CWE-330"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/packbackbooks/lti-1-3-php-library/security/advisories/GHSA-768m-5w34-2xf5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31157"},{"type":"WEB","url":"https://github.com/packbackbooks/lti-1-3-php-library/commit/de19e8a0b28cdc7750fa3ca98471eeed26ba3e57"},{"type":"PACKAGE","url":"https://github.com/packbackbooks/lti-1-3-php-library"},{"type":"WEB","url":"https://openid.net/specs/openid-connect-core-1_0.html#IDToken"}],"affected":[{"package":{"name":"packbackbooks/lti-1-3-php-library","ecosystem":"Packagist","purl":"pkg:composer/packbackbooks/lti-1-3-php-library"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-768m-5w34-2xf5/GHSA-768m-5w34-2xf5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}