{"id":"CVE-2014-9938","state":"PUBLISHED","title":"contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.","description":"contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.","publishedAt":"2017-03-20T00:00:00.000Z","updatedAt":"2024-08-06T14:02:37.321Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/njhartwell/pw3nage","https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f","https://access.redhat.com/errata/RHSA-2017:2004"],"weaknesses":[],"ingestedAt":"2026-10-29T19:41:47.076Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2014/9xxx/CVE-2014-9938.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2014-9938","state":"PUBLISHED","datePublished":"2017-03-20T00:00:00.000Z","dateUpdated":"2024-08-06T14:02:37.321Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2017-03-19T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/njhartwell/pw3nage","tags":["x_refsource_MISC"]},{"url":"https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2004","name":"RHSA-2017:2004","tags":["vendor-advisory","x_refsource_REDHAT"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-01-04T19:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2017-03-19T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2014-9938","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/njhartwell/pw3nage","refsource":"MISC","url":"https://github.com/njhartwell/pw3nage"},{"name":"https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f","refsource":"CONFIRM","url":"https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f"},{"name":"RHSA-2017:2004","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2017:2004"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/njhartwell/pw3nage","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/git/git/commit/8976500cbbb13270398d3b3e07a17b8cc7bff43f","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2004","name":"RHSA-2017:2004","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T14:02:37.321Z"}}]}}}