CVE-2022-31157: Packbackbooks/lti 1 3 php library LTI 1.3 Tool Library's Function Vulnerability
HIGHCVE-2022-31157 is a HIGH (CVSS 7.5) lti 1.3 tool library's function vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Packbackbooks/lti 1 3 php library libraries in the Packagist ecosystem. The issue involves lti 1.3 tool library's function used to generate random nonces not sufficiently cryptographically complex before v5.0. Remediation is available by upgrading affected packages to version 5.0.
CVE-2022-31157 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-31157
To remediate this vulnerability, upgrade all affected Packbackbooks/lti 1 3 php library dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade packbackbooks/lti-1-3-php-library to 5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for packbackbooks/lti-1-3-php-library
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-31157, inspect your project dependencies for Packbackbooks/lti 1 3 php library:
inspect dependencies for packbackbooks/lti-1-3-php-library
Analyze the terminal output to locate any version of Packbackbooks/lti 1 3 php library in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In Packbackbooks/lti 1 3 php library, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-31157 Affected Packbackbooks/lti 1 3 php library Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
packbackbooks/lti-1-3-php-library
|
Packagist |
< 5.0
|
5.0
|
References
Frequently Asked Questions
What is CVE-2022-31157?
Which Packbackbooks/lti 1 3 php library versions are affected?
What version fixes CVE-2022-31157?
Is packbackbooks/lti-1-3-php-library affected?
What is the CVSS score of CVE-2022-31157?
What CWE is associated with CVE-2022-31157?
How can I check Packagist dependencies for CVE-2022-31157?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-768m-5w34-2xf5",
"modified" : "2022-07-25T19:25:08Z",
"published" : "2022-07-15T20:55:46Z",
"aliases" : [ "CVE-2022-31157" ],
"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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "packbackbooks/lti-1-3-php-library"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-327", "CWE-330" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-15T20:55:46Z",
"nvd_published_at" : "2022-07-15T18:15:00Z"
}
}