{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gofiber/fiber. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-15111 in the wild and no public exploit code.","fix":"Upgrade github.com/gofiber/fiber to 1.12.6 or later.","what":"CVE-2020-15111 is a medium-severity vulnerability in gofiber fiber, published on 20 Jul 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-15111 and fix it if it is affected.\n\nWhat it is: CVE-2020-15111 is a medium-severity vulnerability in gofiber fiber, published on 20 Jul 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-15111 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gofiber/fiber (Go): affected all versions; fixed in 1.12.6\n- github.com/gofiber/fiber (Go): affected all versions; fixed in 1.12.6\n- github.com/gofiber/fiber (Go): affected all versions; fixed in 1.12.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-15111/ (Markdown: https://insights.sbomify.com/CVE-2020-15111/index.md)","id":"CVE-2020-15111","markdown":"https://insights.sbomify.com/CVE-2020-15111/index.md","name":"CVE-2020-15111","record":{"aliases":["GHSA-9cx9-x2gp-9qvh","GO-2021-0108"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","other"],"network_reachable":"yes","non_default_config":false,"product_category":"Go web framework","requires_auth":"none","summary":"Attackers can inject CRLF characters via filenames in Fiber's Attachment method to manipulate headers or redirect users.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fiber","vendor":"gofiber"}],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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().","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CRLF vulnerability in Fiber","id":"CVE-2020-15111","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2020"},"n_packages":3,"n_references":2,"next":{"headline":"Improper Input Validation in etcd","id":"CVE-2020-15112"},"packages":[{"ecosystem":"Go","fixed":["1.12.6"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":null,"source":"GHSA-9cx9-x2gp-9qvh"},{"ecosystem":"Go","fixed":["1.12.6"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","source":"GHSA-9cx9-x2gp-9qvh"},{"ecosystem":"Go","fixed":["1.12.6"],"introduced":["0"],"last_affected":[],"package":"github.com/gofiber/fiber","purl":"pkg:golang/github.com/gofiber/fiber","source":"GO-2021-0108"}],"prev":{"headline":"Possible pod name collisions in jupyterhub-kubespawner","id":"CVE-2020-15110"},"products":["fiber"],"published":"2020-07-20","related":[{"cvss_score":10,"headline":"Fiber Session Middleware Token Injection Vulnerability","id":"CVE-2024-38513","kev_date_added":null,"published":"2024-07-01"},{"cvss_score":10,"headline":"CSRF Token Reuse Vulnerability in fiber","id":"CVE-2023-45128","kev_date_added":null,"published":"2023-10-16"},{"cvss_score":9.4,"headline":"Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","id":"CVE-2024-25124","kev_date_added":null,"published":"2024-02-21"},{"cvss_score":9.2,"headline":"Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure","id":"CVE-2025-66630","kev_date_added":null,"published":"2026-02-09"},{"cvss_score":8.7,"headline":"Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder","id":"CVE-2025-54801","kev_date_added":null,"published":"2025-08-05"},{"cvss_score":8.6,"headline":"CSRF Token Validation Vulnerability in fiber","id":"CVE-2023-45141","kev_date_added":null,"published":"2023-10-16"},{"cvss_score":7.7,"headline":"Fiber has an Arbitrary File Read in Static Middleware on Windows","id":"CVE-2026-25891","kev_date_added":null,"published":"2026-02-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["gofiber"]},"summary":"Attackers can inject CRLF characters via filenames in Fiber's Attachment method to manipulate headers or redirect users.","url":"https://insights.sbomify.com/CVE-2020-15111/"}