# CVE-2022-31157: Use of a Broken or Risky Cryptographic Algorithm in packbackbooks/lti-1-3-php-library

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2022-07-15T17:15:21.000Z
- Modified: 2026-06-17T04:44:55.477Z
- Also known as: GHSA-768m-5w34-2xf5
- Weaknesses: CWE-327, CWE-330
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- packbackbooks lti-1-3-php-library: < 5.0
- packbackbooks/lti-1-3-php-library (Packagist): before 5.0
- packback lti_1.3_tool_library: before 5.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/packbackbooks/lti-1-3-php-library/security/advisories/GHSA-768m-5w34-2xf5> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31157> (advisory)
- <https://github.com/packbackbooks/lti-1-3-php-library/commit/de19e8a0b28cdc7750fa3ca98471eeed26ba3e57> (web)
- <https://github.com/packbackbooks/lti-1-3-php-library> (package)
- <https://openid.net/specs/openid-connect-core-1_0.html#IDToken> (web)

## Sources

- CVE List: [CVE-2022-31157](https://www.cve.org/CVERecord?id=CVE-2022-31157), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-768m-5w34-2xf5](https://github.com/advisories/GHSA-768m-5w34-2xf5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31157](https://nvd.nist.gov/vuln/detail/CVE-2022-31157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31157 · Whole record: https://cve.day/CVE-2022-31157.json · Rebuilt by cve.day 2026-11-25T22:58:12.979Z
