{"id":"CVE-2020-29509","published":"2020-12-14T20:02:02Z","modified":"2024-09-17T03:43:39Z","title":"The encoding/xml package in Go (all versions) does not correctly preserve the semantics of attribute namespace…","vendor":"Golang","product":"Go","tier":"tail","description":{"text":"The encoding/xml package in Go (all versions) does not correctly preserve the semantics of attribute namespace prefixes during tokenization round-trips, which allows an attacker to craft inputs that behave in conflicting ways during different stages of processing in affected downstream applications.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02099,"percentile":0.82152,"provenance":"source"},"cwes":[{"id":"CWE-115","name":"Misinterpretation of Input"}],"references":[{"url":"https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-attributes.md","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210129-0006/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":16.43},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"golang","affectedVersions":[{"vendor":"Golang","product":"Go","versions":["All versions"]}],"workarounds":{"items":["Untrusted markup in affected applications can be validated using the github.com/mattermost/xml-roundtrip-validator module."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","vulnerableRanges":["<0.6.0"],"patched":["0.6.0"],"from":["GHSA-xhqq-x44f-9fgg","GO-2021-0060"],"provenance":"source"}],"summary":{"text":"The encoding/xml package in Go, across all versions, does not correctly preserve the semantics of attribute namespace prefixes during tokenization round-trips. This lets an attacker craft XML inputs that are interpreted differently at different processing stages in downstream applications built on it. An attacker can exploit this over the network without authentication, privileges, or user interaction, simply by supplying crafted XML input to an affected application. The attack relies only on the application processing that input through encoding/xml, with no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:30Z"},"euvd":{"id":"EUVD-2022-1254","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-golang-go-cve-2020-7711","children":[{"from":"CVE-2020-29509","to":"CVE-2020-7731","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode_response.go"],"commits":["https://github.com/russellhaering/gosaml2/commit/42606dafba60c58c458f14f75c4c230459672ab9","https://github.com/russellhaering/gosaml2/commit/66e3b7affd622b8b24ea1e18845f045e46b23424"],"basis":"rarely changed file"}]},{"from":"CVE-2020-29509","to":"CVE-2023-26483","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode_response.go"],"commits":["https://github.com/russellhaering/gosaml2/commit/42606dafba60c58c458f14f75c4c230459672ab9","https://github.com/russellhaering/gosaml2/commit/f9d66040241093e8702649baff50cc70d2c683c0"],"basis":"rarely changed file"}]}]}}