{"api_version":"1","generated_at":"2026-04-23T02:15:54+00:00","cve":"CVE-2019-3881","urls":{"html":"https://cve.report/CVE-2019-3881","api":"https://cve.report/api/cve/CVE-2019-3881.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-3881","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-3881"},"summary":{"title":"CVE-2019-3881","description":"Bundler prior to 2.1.0 uses a predictable path in /tmp/, created with insecure permissions as a storage location for gems, if locations under the user's home directory are not available. If Bundler is used in a scenario where the user does not have a writable home directory, an attacker could place malicious code in this directory that would be later loaded and executed.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2020-09-04 12:15:00","updated_at":"2022-11-08 19:50:00"},"problem_types":["CWE-427"],"metrics":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826","refsource":"MISC","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"1651826 – (CVE-2019-3881) CVE-2019-3881 rubygem-bundler: Insecure permissions on directory in /tmp/ allows for execution of malicious code","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-3881","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-3881","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"3881","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"bundler","cpe5":"bundler","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"3881","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"bundler","cpe5":"bundler","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"ruby","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-3881","qid":"159298","title":"Oracle Enterprise Linux Security Update for ruby:2.6 (ELSA-2021-2588)"},{"cve":"CVE-2019-3881","qid":"239368","title":"Red Hat Update for rh-ruby26-ruby (RHSA-2021:2230)"},{"cve":"CVE-2019-3881","qid":"239461","title":"Red Hat Update for ruby:2.6 (RHSA-2021:2588)"},{"cve":"CVE-2019-3881","qid":"375379","title":"GitLab Multiple Security Vulnerabilities(gitlab-13-7-2)"},{"cve":"CVE-2019-3881","qid":"690370","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for gitlab (a2a2b34d-52b4-11eb-87cb-001b217b3468)"},{"cve":"CVE-2019-3881","qid":"940189","title":"AlmaLinux Security Update for ruby:2.6 (ALSA-2021:2588)"},{"cve":"CVE-2019-3881","qid":"960022","title":"Rocky Linux Security Update for ruby:2.6 (RLSA-2021:2588)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2019-3881","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"rubygem-bundler","version":{"version_data":[{"version_value":"bundler versions before 2.1.0"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-427"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826"}]},"description":{"description_data":[{"lang":"eng","value":"Bundler prior to 2.1.0 uses a predictable path in /tmp/, created with insecure permissions as a storage location for gems, if locations under the user's home directory are not available. If Bundler is used in a scenario where the user does not have a writable home directory, an attacker could place malicious code in this directory that would be later loaded and executed."}]}},"nvd":{"publishedDate":"2020-09-04 12:15:00","lastModifiedDate":"2022-11-08 19:50:00","problem_types":["CWE-427"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:P/I:P/A:P","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":4.4},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:bundler:bundler:*:*:*:*:*:ruby:*:*","versionEndExcluding":"2.1.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"3881","Ordinal":"141490","Title":"CVE-2019-3881","CVE":"CVE-2019-3881","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"3881","Ordinal":"1","NoteData":"Bundler prior to 2.1.0 uses a predictable path in /tmp/, created with insecure permissions as a storage location for gems, if locations under the user's home directory are not available. If Bundler is used in a scenario where the user does not have a writable home directory, an attacker could place malicious code in this directory that would be later loaded and executed.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"3881","Ordinal":"2","NoteData":"2020-09-04","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"3881","Ordinal":"3","NoteData":"2020-09-04","Type":"Other","Title":"Modified"}]}}}