CVE-2022-31158: Packbackbooks/lti 1 3 php library LTI 1.3 Tool Library's Nonce Vulnerability
HIGHCVE-2022-31158 is a HIGH (CVSS 7.5) lti 1.3 tool library's nonce vulnerability (CWE-294: Authentication Bypass by Capture-replay) affecting Packbackbooks/lti 1 3 php library libraries in the Packagist ecosystem. The issue involves lti 1.3 tool library's nonce claim value not validated against nonce value sent in authentication request before v5.0. Remediation is available by upgrading affected packages to version 5.0.
CVE-2022-31158 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-31158
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-31158, 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-294: Authentication Bypass by Capture-replay, where a capture-replay flaw exists when the design of the product makes it possible for a malicious user to sniff network traffic and bypass authentication by replaying it to the server in question to the same effect as the original message (or with minor changes). 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-31158 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-31158?
Which Packbackbooks/lti 1 3 php library versions are affected?
What version fixes CVE-2022-31158?
Is packbackbooks/lti-1-3-php-library affected?
What is the CVSS score of CVE-2022-31158?
What CWE is associated with CVE-2022-31158?
How can I check Packagist dependencies for CVE-2022-31158?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5p73-qg2v-383h",
"modified" : "2022-07-19T18:26:48Z",
"published" : "2022-07-15T20:55:50Z",
"aliases" : [ "CVE-2022-31158" ],
"summary" : "LTI 1.3 Tool Library's Nonce Claim Value not validated against nonce value sent in Authentication Request before v5.0",
"details" : "### Impact\n\nNonce Claim Value was not being validated against the nonce value sent in the Authentication Request.\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-5p73-qg2v-383h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31158"
}, {
"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#AuthRequest"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-294", "CWE-327" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-15T20:55:50Z",
"nvd_published_at" : "2022-07-15T18:15:00Z"
}
}