# CVE-2020-5247: HTTP Response Splitting in Puma

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.55%, higher than 85% of CVEs (2026-12-01)
- Published: 2020-02-28T16:53:55.000Z
- Modified: 2026-09-08T08:48:19.348Z
- Also known as: GHSA-84j7-475p-hp8v, BIT-RUBY-2020-5247, BIT-RUBY-MIN-2020-5247
- Related: CVE-2020-5249
- Weaknesses: CWE-74, CWE-113
- Assigned by: GitHub_M

## Description

In Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerability is known as HTTP Response Splitting. While not an attack in itself, response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to CVE-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.

(As written by CVE List.)

## Affected

- puma Puma: < 3.12.3; >= 4.0.0, < 4.3.2; up to 3.12.3; from 4.0.0 up to 4.3.2
- puma (RubyGems): before 3.12.4; from 4.0.0 before 4.3.3
- ruby-lang ruby: up to 2.3.0; from 2.4.0 up to 2.4.7; from 2.5.0 up to 2.5.6; from 2.6.0 up to 2.6.4; 2.7.0
- debian debian_linux: 9.0
- fedoraproject fedora: 30; 31; 32
- ruby (Bitnami): before 2.3.1; from 2.4.0 before 2.4.8; from 2.5.0 before 2.5.7; from 2.6.0 before 2.6.5
- ruby-min (Bitnami): before 2.3.1; from 2.4.0 before 2.4.8; from 2.5.0 before 2.5.7; from 2.6.0 before 2.6.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v> (advisory, mitigation, third-party-advisory, web)
- <https://owasp.org/www-community/attacks/HTTP_Response_Splitting> (advisory, third-party-advisory, web)
- <https://www.ruby-lang.org/en/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254> (advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJ3LL5F5QADB6LM46GXZETREAKZMQNRD/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BMJ3CGZ3DLBJ5WUUKMI5ZFXFJQMXJZIK/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DIHVO3CQMU7BZC7FCTSRJ33YDNS3GFPK/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00034.html> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5247> (advisory, web)
- <https://github.com/puma/puma/commit/c36491756f68a9d6a8b3a49e7e5eb07fe6f1332f> (web)
- <https://github.com/puma/puma> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puma/CVE-2020-5247.yml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BMJ3CGZ3DLBJ5WUUKMI5ZFXFJQMXJZIK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DIHVO3CQMU7BZC7FCTSRJ33YDNS3GFPK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NJ3LL5F5QADB6LM46GXZETREAKZMQNRD> (web)

## Sources

- CVE List: [CVE-2020-5247](https://www.cve.org/CVERecord?id=CVE-2020-5247), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-84j7-475p-hp8v](https://github.com/advisories/GHSA-84j7-475p-hp8v), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-5247](https://nvd.nist.gov/vuln/detail/CVE-2020-5247), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RUBY-2020-5247](https://osv.dev/vulnerability/BIT-RUBY-2020-5247), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2020-5247](https://osv.dev/vulnerability/BIT-RUBY-MIN-2020-5247), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-5247 · Whole record: https://cve.day/CVE-2020-5247.json · Rebuilt by cve.day 2026-11-25T22:57:51.006Z
