Vulnerabilities in pkg:gem/pdfkit
PACKAGECVE-2013-1607 is a CRITICAL (CVSS 9.8) pdfkit improper input validation vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Pdfkit libraries in the RubyGems ecosystem. The issue involves pdfkit improper input validation vulnerability. Remediation is available by upgrading affected packages to version 0.5.3.
pkg:gem/pdfkit
Vulnerability advisories affecting package pkg:gem/pdfkit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-39v7-xpq4-8884 | CVE-2013-1607 | CRITICAL | PDFKit Improper Input Validation vulnerability |
| GHSA-rhwx-hjx2-x4qr | CVE-2022-25765 | CRITICAL | PDFKit vulnerable to Command Injection |
CVE-2013-1607 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2013-1607
To remediate this vulnerability, upgrade all affected Pdfkit 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 pdfkit to 0.5.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for pdfkit
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1607, inspect your project dependencies for Pdfkit:
inspect dependencies for pdfkit
Analyze the terminal output to locate any version of Pdfkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.3), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Pdfkit, 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-2013-1607 Affected Pdfkit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pdfkit
|
RubyGems |
< 0.5.3
|
0.5.3
|
References
Frequently Asked Questions
What is CVE-2013-1607?
Which Pdfkit versions are affected?
What version fixes CVE-2013-1607?
Is pdfkit affected?
What is the CVSS score of CVE-2013-1607?
What CWE is associated with CVE-2013-1607?
How can I check RubyGems dependencies for CVE-2013-1607?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-39v7-xpq4-8884",
"modified" : "2023-01-27T00:51:36Z",
"published" : "2022-05-05T00:29:34Z",
"aliases" : [ "CVE-2013-1607" ],
"summary" : "PDFKit Improper Input Validation vulnerability",
"details" : "Ruby PDFKit gem prior to 0.5.3 has a Code Execution Vulnerability",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "pdfkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1607"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/82563"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pdfkit/pdfkit"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pdfkit/CVE-2013-1607.yml"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200229104225/https://www.securityfocus.com/bid/58303/info"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-27T00:51:36Z",
"nvd_published_at" : "2020-02-11T18:15:00Z"
}
}