CVE-2018-1000539: Json jwt Json-jwt Did Not Verify The Vulnerability
MODERATECVE-2018-1000539 is a MODERATE (CVSS 5.3) json-jwt did not verify the vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Json jwt libraries in the RubyGems ecosystem. The issue involves json-jwt did not verify the cryptographic signature for data. Remediation is available by upgrading affected packages to version 1.9.4.
CVE-2018-1000539 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2018-1000539
To remediate this vulnerability, upgrade all affected Json jwt 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 json-jwt to 1.9.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for json-jwt
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-1000539, inspect your project dependencies for Json jwt:
inspect dependencies for json-jwt
Analyze the terminal output to locate any version of Json jwt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.4), 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Json jwt, 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-2018-1000539 Affected Json jwt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
json-jwt
|
RubyGems |
≥ 0.5.1
< 1.9.4
|
1.9.4
|
References
Frequently Asked Questions
What is CVE-2018-1000539?
Which Json jwt versions are affected?
What version fixes CVE-2018-1000539?
Is json-jwt affected?
What is the CVSS score of CVE-2018-1000539?
What CWE is associated with CVE-2018-1000539?
How can I check RubyGems dependencies for CVE-2018-1000539?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mj4x-wcxf-hm8x",
"modified" : "2023-08-25T23:55:12Z",
"published" : "2018-07-31T18:13:51Z",
"aliases" : [ "CVE-2018-1000539" ],
"summary" : "Json-jwt did not verify the cryptographic signature for data",
"details" : "The json-jwt rubygem version >= 0.5.0 && < 1.9.4 contains a CWE-347: Improper Verification of Cryptographic Signature vulnerability in Decryption of AES-GCM encrypted JSON Web Tokens that can result in Attacker can forge a authentication tag. This attack appear to be exploitable via network connectivity. This vulnerability appears to have been fixed in 1.9.4 and later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "json-jwt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.5.1"
}, {
"fixed" : "1.9.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000539"
}, {
"type" : "WEB",
"url" : "https://github.com/nov/json-jwt/pull/62"
}, {
"type" : "WEB",
"url" : "https://github.com/nov/json-jwt/commit/a3b2147f0f6d9aca653e7a30e453d3a92b33413f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/nov/json-jwt"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/json-jwt/CVE-2018-1000539.yml"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2018/dsa-4283"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:46:30Z",
"nvd_published_at" : null
}
}