{"api_version":"1","generated_at":"2026-04-23T06:19:15+00:00","cve":"CVE-2020-14040","urls":{"html":"https://cve.report/CVE-2020-14040","api":"https://cve.report/api/cve/CVE-2020-14040.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-14040","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-14040"},"summary":{"title":"CVE-2020-14040","description":"The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2020-06-17 20:15:00","updated_at":"2023-11-07 03:17:00"},"problem_types":["CWE-835"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/","name":"FEDORA-2020-a55f130272","refsource":"FEDORA","tags":["Third Party Advisory"],"title":"[SECURITY] Fedora 32 Update: golang-1.14.7-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/","name":"FEDORA-2020-a55f130272","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: golang-1.14.7-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0","name":"https://groups.google.com/forum/#%21topic/golang-announce/bXVeAmGOqz0","refsource":"","tags":[],"title":"Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0","name":"https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0","refsource":"MISC","tags":["Third Party Advisory"],"title":"Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-14040","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14040","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"14040","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"14040","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"14040","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"text","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"14040","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"text","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2020-14040","qid":"159645","title":"Oracle Enterprise Linux Security Update for container-tools:ol8 (ELSA-2020-4694)"},{"cve":"CVE-2020-14040","qid":"199182","title":"Ubuntu Security Notification for Go Text Vulnerabilities (USN-5873-1)"},{"cve":"CVE-2020-14040","qid":"377377","title":"Alibaba Cloud Linux Security Update for container-tools:rhel8 (ALINUX3-SA-2021:0013)"},{"cve":"CVE-2020-14040","qid":"770039","title":"Red Hat OpenShift Container Platform 4.6.1 Package Security Update (RHSA-2020:4297)"},{"cve":"CVE-2020-14040","qid":"940550","title":"AlmaLinux Security Update for container-tools:rhel8 (ALSA-2020:4694)"},{"cve":"CVE-2020-14040","qid":"960700","title":"Rocky Linux Security Update for container-tools:rhel8 (RLSA-2020:4694)"},{"cve":"CVE-2020-14040","qid":"982555","title":"Go (go) Security Update for golang.org/x/text/encoding/unicode (GHSA-5rcv-m4m3-hfh7)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-14040","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":"The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0","url":"https://groups.google.com/forum/#!topic/golang-announce/bXVeAmGOqz0"},{"refsource":"FEDORA","name":"FEDORA-2020-a55f130272","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TACQFZDPA7AUR6TRZBCX2RGRFSDYLI7O/"}]}},"nvd":{"publishedDate":"2020-06-17 20:15:00","lastModifiedDate":"2023-11-07 03:17:00","problem_types":["CWE-835"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:text:*:*:*:*:*:*:*:*","versionEndExcluding":"0.3.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"14040","Ordinal":"175266","Title":"CVE-2020-14040","CVE":"CVE-2020-14040","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"14040","Ordinal":"1","NoteData":"The x/text package before 0.3.3 for Go has a vulnerability in encoding/unicode that could lead to the UTF-16 decoder entering an infinite loop, causing the program to crash or run out of memory. An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to golang.org/x/text/transform.String.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"14040","Ordinal":"2","NoteData":"2020-06-17","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"14040","Ordinal":"3","NoteData":"2020-09-07","Type":"Other","Title":"Modified"}]}}}