{"id":"GHSA-9cx9-x2gp-9qvh","revision":null,"records":[{"revision":"fc637763c7a44a838dc9a32f752989f3","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2020-15111","aliases":[],"title":"CRLF vulnerability in Fiber","description":"In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc. A possible workaround is to serialize the input before passing it to ctx.Attachment().","state":0,"publishedAt":"2020-07-20T17:40:14+00:00","modifiedAt":"2024-08-04T13:08:21.646+00:00","affected":[{"ecosystem":"Vendor product","name":"fiber","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"fiber\",\n                    \"vendor\": \"gofiber\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"< 1.12.6\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"severity":"MEDIUM"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh","https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-15111","license":"CVE Program Terms of Use","key":"cve-program:CVE-2020-15111","identifiers":["CVE-2020-15111"]},"retained":false,"historicalAffected":[]},{"revision":"889da4e3515743538cb6b2acabf46b66","observedAt":"2026-11-24T01:38:12.543+00:00","statement":{"source":"euvd","id":"EUVD-2021-1299","aliases":["CVE-2020-15111","GHSA-9cx9-x2gp-9qvh"],"title":"In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and …","description":"In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc. A possible workaround is to serialize the input before passing it to ctx.Attachment().","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"severity":null}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh","https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1299","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 20, 2020, 5:40:14 PM","dateUpdated":"Aug 4, 2024, 1:08:21 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-1299","identifiers":["EUVD-2021-1299","CVE-2020-15111","GHSA-9cx9-x2gp-9qvh"]},"retained":false,"historicalAffected":[]},{"revision":"ad4904dde6524f958e57f81f5df04ca4","observedAt":"2026-10-24T16:17:20.632+00:00","statement":{"source":"nvd","id":"CVE-2020-15111","aliases":[],"title":"In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and …","description":"In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc. A possible workaround is to serialize the input before passing it to ctx.Attachment().","state":0,"publishedAt":"2020-07-20T18:15:12+00:00","modifiedAt":"2026-06-17T02:56:04.517+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"severity":"MEDIUM"}],"references":["https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f","https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-15111","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-74","CWE-93"],"productCriteria":["cpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2020-07-20T18:15:12.000","lastModified":"2026-06-17T02:56:04.517"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2020-15111","identifiers":["CVE-2020-15111"]},"retained":false,"historicalAffected":[]},{"revision":"b41046ce75d443fab1b10d4cf22c0419","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-9cx9-x2gp-9qvh","aliases":["CVE-2020-15111","GO-2021-0108"],"title":"CRLF vulnerability in Fiber","description":"### Impact\nThe filename that is given in [c.Attachment()](https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc.\n\n### Steps to reproduce\n```go\npackage main\n\nimport \"github.com/gofiber/fiber\"\n\nconst badFileName = \"another secret document.pdf\\\"\\r\\nLocation: google.com\\r\\nAuthorization: \\\"example_of_session_fixation\"\n\nfunc splitTheResponse(c *fiber.Ctx) {\n\tc.Attachment(badFileName)\n}\n\nfunc main() {\n\tapp := fiber.New()\n\tapp.Get(\"/attack\", splitTheResponse)\n\tapp.Listen(\"127.0.0.1:8080\")\n}\n```\n```\nHTTP/1.1 200 OK\nDate: Fri, 10 Jul 2020 19:47:04 GMT\nContent-Type: application/octet-stream\nContent-Length: 0\nContent-Disposition: attachment; filename=\"another secret document.pdf\"\nLocation: google.com\nAuthorization: \"example_of_session_fixation\"\n```\n\n### Patches\nThis issue has been patched in `v1.12.6` with commit [579](https://github.com/gofiber/fiber/pull/579/commits/f698b5d5066cfe594102ae252cd58a1fe57cf56f) escaping the filename by default.\n\n### Workarounds\nYou could of course serialize the input yourself before passing it to `ctx.Attachment()`, this is actually a good practice by default. But in case you forget, we got you covered \uD83D\uDC4D \n\n### References\nA CRLF injection attack is one of several types of injection attacks. It can be used to escalate to more malicious attacks such as Cross-site Scripting (XSS), page injection, web cache poisoning, cache-based defacement, and more. A CRLF injection vulnerability exists if an attacker can inject the CRLF characters into a web application, for example using a user input form or an HTTP request, [see acunetix](https://www.acunetix.com/websitesecurity/crlf-injection/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [gofiber/fiber](https://github.com/gofiber/fiber)\n* Join us on [Discord](https://gofiber.io/discord)","state":0,"publishedAt":"2021-06-29T21:24:28+00:00","modifiedAt":"2026-07-08T06:53:05.5469761+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-9cx9-x2gp-9qvh","https://nvd.nist.gov/vuln/detail/CVE-2020-15111","https://github.com/gofiber/fiber/pull/579","https://github.com/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f","https://github.com/gofiber/fiber","https://pkg.go.dev/vuln/GO-2021-0108"],"sourceUrl":"https://github.com/advisories/GHSA-9cx9-x2gp-9qvh","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9cx9-x2gp-9qvh","identifiers":["GHSA-9cx9-x2gp-9qvh","CVE-2020-15111","GO-2021-0108"]},"retained":false,"historicalAffected":[]},{"revision":"9f25e3f8f10744d0bac9ad29729d204a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2021-0108","aliases":["CVE-2020-15111","GHSA-9cx9-x2gp-9qvh"],"title":"CRLF vulnerability in Fiber in github.com/gofiber/fiber","description":"Due to improper input sanitization, a maliciously constructed filename could cause a file download to use an attacker controlled filename, as well as injecting additional headers into an HTTP response.","state":0,"publishedAt":"2021-07-28T18:08:05+00:00","modifiedAt":"2024-05-20T16:03:47+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/gofiber/fiber/pull/579","https://github.com/gofiber/fiber/commit/f698b5d5066cfe594102ae252cd58a1fe57cf56f"],"sourceUrl":"https://osv.dev/vulnerability/GO-2021-0108","license":"OSV · upstream source license applies","key":"osv:GO-2021-0108","identifiers":["GO-2021-0108","CVE-2020-15111","GHSA-9cx9-x2gp-9qvh"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T14:28:46.1367144+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T14:28:46.1367144+00:00","lastSuccessAt":"2026-11-25T14:28:51.9077546+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:51.9080982+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-58fb4f849b31541f049fec537a356eed3bacf6917384f6316a1581ca42cabee1","complete":true,"records":432138,"lastAttemptAt":"2026-11-25T14:28:39.3807942+00:00","lastSuccessAt":"2026-11-25T13:44:54.4943444+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:39.3807942+00:00","snapshotPublishedAt":"2026-11-25T13:20:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-20a49458ceae49e394c48dea1e375753","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T14:34:23.2072341+00:00","lastSuccessAt":"2026-11-25T14:34:23.203+00:00","error":"120 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T14:34:23.203+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13664,"expectedIdentifiers":13986,"failedIdentifiers":120},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T14:28:46.1367144+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T14:28:46.1367144+00:00","lastSuccessAt":"2026-11-25T14:28:52.1107389+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:52.1107403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0706f4f26289468d8444f9f1b50f35d8","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T14:29:34.8783794+00:00","lastSuccessAt":"2026-11-25T14:29:34.81+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:29:34.81+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T14:28:43.5224151+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.5224151+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T14:28:42.7491626+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:42.7491626+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T14:28:43.9301039+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.9301039+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-13386314c41bf037eb8784b89525b249650641e645a6e70d1fe37f29e9ef714c","complete":true,"records":233128,"lastAttemptAt":"2026-11-25T14:28:43.327083+00:00","lastSuccessAt":"2026-11-25T13:47:03.1039798+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.327083+00:00","snapshotPublishedAt":"2026-11-25T13:33:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}