Security mailing lists by PureSourceCode

CVE-2020-15111

MEDIUM 5.4CVSS 3.1

CRLF vulnerability in Fiber

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().

Published
20 Jul 2020
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-74CWE-93
Also known as
GHSA-9cx9-x2gp-9qvhGO-2021-0108
Sources
NVDJSONOSV GHSA-9cx9-x2gp-9qvhJSONOSV GO-2021-0108JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.8 AV:N/AC:M/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gofiber fiber
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:*:*:*
< 1.12.6 1.12.6
OSV Go github.com/gofiber/fiber < 1.12.6 1.12.6

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 20 Jul 2020)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.