{"id":"CVE-2020-36567","aliases":["DEBIAN-CVE-2020-36567","EUVD-2022-7542","GHSA-6vm3-jj99-7229","GO-2020-0001","UBUNTU-CVE-2020-36567"],"status":"published","title":"Arbitrary log line injection in github.com/gin-gonic/gin","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01545,"percentile":0.7532,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-116","CWE-117"],"published":"2021-04-14T20:04:52Z","modified":"2026-10-26T12:02:30Z","fixes":[{"ecosystem":"Go","package":"github.com/gin-gonic/gin","fixed_in":["1.6.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"golang-github-gin-gonic-gin","fixed_in":["1.6.3-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-github-gin-gonic-gin","fixed_in":["1.6.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-github-gin-gonic-gin","fixed_in":["1.6.3-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/gin-gonic/gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-github-gin-gonic-gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-github-gin-gonic-gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-github-gin-gonic-gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.3-1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/gin-gonic/gin","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/gin-gonic/gin","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"golang-github-gin-gonic-gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2+dfsg1-2","1.2+dfsg1-2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-gin-gonic-gin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0+dfsg1-3"]}],"products":[{"vendor":"gin-gonic","product":"gin"},{"vendor":"github.com/gin-gonic/gin","product":"github.com/gin-gonic/gin"}],"references":[{"url":"https://github.com/gin-gonic/gin/pull/2237","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/gin-gonic/gin/commit/a71af9c144f9579f6dbe945341c1df37aaf09c0d","tags":["x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0001","tags":["x_transferred","Patch","Vendor Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36567","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6vm3-jj99-7229"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-36567","tags":["advisory"]},{"url":"https://github.com/gin-gonic/gin","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-36567","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-36567","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-36567","title":"Arbitrary log line injection in github.com/gin-gonic/gin","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T20:58:14.4Z","modified":"2025-04-11T16:45:40.135Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"adp"}],"updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2022-7542","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T20:58:14Z","modified":"2025-04-11T16:45:40Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T20:52:34.493984Z"}],"ghsa":[{"id":"GHSA-6vm3-jj99-7229","title":"Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines","description":"Gin is a HTTP web framework written in Go (Golang). Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:30:20Z","modified":"2023-02-03T05:01:33Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-116","CWE-117"],"updated_at":"2026-11-02T14:36:41.967989Z"}],"nvd":[{"id":"CVE-2020-36567","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:15:10.903Z","modified":"2026-06-17T03:15:45.66Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-116"],"updated_at":"2026-11-02T14:06:47.286386Z"}],"osv":[{"id":"CVE-2020-36567","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:15:10.903Z","modified":"2026-10-20T10:54:21.22996165Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:16.936975Z"},{"id":"DEBIAN-CVE-2020-36567","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:15:10.903Z","modified":"2026-10-26T12:02:30.269306677Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:34.019707Z"},{"id":"GHSA-6vm3-jj99-7229","title":"Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines","description":"Gin is a HTTP web framework written in Go (Golang). Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:30:20Z","modified":"2023-11-08T04:03:47.851512Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-116","CWE-117"],"updated_at":"2026-11-02T15:46:40.308826Z"},{"id":"UBUNTU-CVE-2020-36567","description":"Unsanitized input in the default logger in github.com/gin-gonic/gin before v1.6.0 allows remote attackers to inject arbitrary log lines.","status":"published","published":"2022-12-27T21:15:00Z","modified":"2025-10-24T04:49:01Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:25.179924Z"},{"id":"GO-2020-0001","title":"Arbitrary log line injection in github.com/gin-gonic/gin","description":"The default Formatter for the Logger middleware (LoggerConfig.Formatter), which is included in the Default engine, allows attackers to inject arbitrary log entries by manipulating the request path.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
