{"id":"CVE-2020-5398","published":"2020-01-16T23:55:15Z","modified":"2026-10-08T21:13:59Z","title":"RFD Attack via \"Content-Disposition\" Header Sourced from Request Input by Spring MVC or Spring WebFlux Application","vendor":"Spring","product":"Spring Framework","tier":"core","eol":null,"affectedVersions":[{"vendor":"Spring","product":"Spring Framework","versions":[">= 5.0, < v5.0.16.RELEASE",">= 5.1, < v5.1.13.RELEASE",">= 5.2, < v5.2.3.RELEASE"]}],"description":{"text":"In Spring Framework, versions 5.2.x prior to 5.2.3, versions 5.1.x prior to 5.1.13, and versions 5.0.x prior to 5.0.16, an application is vulnerable to a reflected file download (RFD) attack when it sets a \"Content-Disposition\" header in the response where the filename attribute is derived from user supplied input.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":8,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.88322,"percentile":0.99769,"date":"2026-10-29","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":1,"pulses":[{"name":"Thor Lite Scan - 10.7.15 - Ubuntu Scan on Archived Files","url":"https://otx.alienvault.com/pulse/664cc3c1938ed0b9abf026a2","created":"2024-05-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://lists.apache.org/thread.html/rf8dc72b974ee74f17bce661ea7d124e733a1f4c4f236354ac0cf48e8%40%3Ccommits.camel.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rc05acaacad089613e9642f939b3a44f7199b5537493945c3e045287f%40%3Cdev.geode.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rdcaadaa9a68b31b7d093d76eacfaacf6c7a819f976b595c75ad2d4dc%40%3Cdev.geode.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r7361bfe84bde9d233f9800c3a96673e7bd81207549ced0236f07a29d%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r9fb1ee08cf337d16c3364feb0f35a072438c1a956afd7b77859aa090%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r0f3530f7cb510036e497532ffc4e0bd0b882940448cf4e233994b08b%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r8736185eb921022225a83e56d7285a217fd83f5524bd64a6ca3bf5cc%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r7d5e518088e2e778928b02bcd3be3b948b59acefe2f0ebb57ec2ebb0%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r3765353ff434fd00d8fa5a44734b3625a06eeb2a3fb468da7dfae134%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rab0de39839b4c208dcd73f01e12899dc453361935a816a784548e048%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r1bc5d673c01cfbb8e4a91914e9748ead3e5f56b61bca54d314c0419b%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r4b1886e82cc98ef38f582fef7d4ea722e3fcf46637cd4674926ba682%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/reaa8a6674baf2724b1b88a621b0d72d9f7a6f5577c88759842c16eb6%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r74f81f93a9b69140fe41e236afa7cbe8dfa75692e7ab31a468fddaa0%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r028977b9b9d44a89823639aa3296fb0f0cfdd76b4450df89d3c4fbbf%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r2dfd5b331b46d3f90c4dd63a060e9f04300468293874bd7e41af7163%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r8cc37a60a5056351377ee5f1258f2a4fdd39822a257838ba6bcc1e88%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r1accbd4f31ad2f40e1661d70a4510a584eb3efd1e32e8660ccf46676%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rb4d1fc078f086ec2e98b2693e8b358e58a6a4ef903ceed93a1ee2b18%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r6dac0e365d1b2df9a7ffca12b4195181ec14ff0abdf59e1fdb088ce5%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r4639e821ef9ca6ca10887988f410a60261400a7766560e7a97a22efc%40%3Ccommits.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r0f2d0ae1bad2edb3d4a863d77f3097b5e88cfbdae7b809f4f42d6aad%40%3Cissues.karaf.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2020.html","tags":["x_refsource_MISC"]},{"url":"https://pivotal.io/security/cve-2020-5398","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.apache.org/thread.html/r712a6fce928e24e7b6ec30994a7e115a70f1f6e4cf2c2fbf0347ce46%40%3Ccommits.servicecomb.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/ra996b56e1f5ab2fed235a8b91fa0cc3cf34c2e9fee290b7fa4380a0d%40%3Ccommits.servicecomb.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r881fb5a95ab251106fed38f836257276feb026bfe01290e72ff91c2a%40%3Ccommits.servicecomb.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r1eccdbd7986618a7319ee7a533bd9d9bf6e8678e59dd4cca9b5b2d7a%40%3Cissues.ambari.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r9f13cccb214495e14648d2c9b8f2c6072fd5219e74502dd35ede81e1%40%3Cdev.ambari.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r8b496b1743d128e6861ee0ed3c3c48cc56c505b38f84fa5baf7ae33a%40%3Cdev.ambari.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r1c679c43fa4f7846d748a937955c7921436d1b315445978254442163%40%3Ccommits.ambari.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2020.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r5c95eff679dfc642e9e4ab5ac6d202248a59cb1e9457cfbe8b729ac5%40%3Cissues.ambari.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpujan2021.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rc9c7f96f08c8554225dba9050ea5e64bebc129d0d836303143fe3160%40%3Cdev.rocketmq.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/rded5291e25a4c4085a6d43cf262e479140198bf4eabb84986e0a1ef3%40%3Cdev.rocketmq.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r645408661a8df9158f49e337072df39838fa76da629a7e25a20928a6%40%3Cdev.rocketmq.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r27552d2fa10d96f2810c50d16ad1fd1899e37796c81a0c5e7585a02d%40%3Cdev.rocketmq.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210917-0006/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.springframework:spring-webmvc","vulnerableRanges":[">=5.2.0.RELEASE, <5.2.3.RELEASE",">=5.1.0.RELEASE, <5.1.13.RELEASE",">=5.0.0.RELEASE, <5.0.16.RELEASE"],"patched":["5.2.3.RELEASE","5.1.13.RELEASE","5.0.16.RELEASE"],"from":["GHSA-8wx2-9q48-vm9r"],"provenance":"source"},{"ecosystem":"Maven","package":"org.springframework:spring-webflux","vulnerableRanges":[">=5.2.0.RELEASE, <5.2.3.RELEASE",">=5.1.0.RELEASE, <5.1.13.RELEASE",">=5.0.0.RELEASE, <5.0.16.RELEASE"],"patched":["5.2.3.RELEASE","5.1.13.RELEASE","5.0.16.RELEASE"],"from":["GHSA-8wx2-9q48-vm9r"],"provenance":"source"}],"advisories":[{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webmvc","vulnerableRanges":[">=5.2.0.RELEASE, <5.2.3.RELEASE"],"patched":["5.2.3.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webmvc","vulnerableRanges":[">=5.1.0.RELEASE, <5.1.13.RELEASE"],"patched":["5.1.13.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webmvc","vulnerableRanges":[">=5.0.0.RELEASE, <5.0.16.RELEASE"],"patched":["5.0.16.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webflux","vulnerableRanges":[">=5.2.0.RELEASE, <5.2.3.RELEASE"],"patched":["5.2.3.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webflux","vulnerableRanges":[">=5.1.0.RELEASE, <5.1.13.RELEASE"],"patched":["5.1.13.RELEASE"],"provenance":"source","from":"GHSA"},{"id":"GHSA-8wx2-9q48-vm9r","url":"https://github.com/advisories/GHSA-8wx2-9q48-vm9r","severity":"HIGH","ecosystem":"Maven","package":"org.springframework:spring-webflux","vulnerableRanges":[">=5.0.0.RELEASE, <5.0.16.RELEASE"],"patched":["5.0.16.RELEASE"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2020-0259","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-0259","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2020-01-17","earliestUrl":"https://github.com/motikan2010/CVE-2020-5398","repos":[{"name":"motikan2010/CVE-2020-5398","url":"https://github.com/motikan2010/CVE-2020-5398","stars":84,"created":"2020-01-17"}]},"first":{"date":"2020-01-17","source":"PoC-in-GitHub","url":"https://github.com/motikan2010/CVE-2020-5398"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2020-01-16","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-5398","provenance":"source"},{"date":"2020-01-17","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/motikan2010/CVE-2020-5398","provenance":"source"}],"speed":{"daysToPublicExploit":1,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":31.2,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9977"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":5.6,"detail":"base score 8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2014-3625","published":"2014-11-20","fixed":"4.1.2","kev":false},{"cve":"CVE-2016-9878","published":"2016-12-29","fixed":"4.3.5","kev":false},{"cve":"CVE-2020-5397","published":"2020-01-17","fixed":"5.2.3","kev":false,"link":{"from":"CVE-2020-5397","to":"CVE-2020-5398","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-webmvc","fromFixed":"5.2.3","toFixed":"5.2.3.RELEASE","daysApart":-1},{"kind":"version-step","provenance":"source","package":"Maven:org.springframework:spring-webflux","fromFixed":"5.2.3","toFixed":"5.2.3.RELEASE","daysApart":-1}]}},{"cve":"CVE-2020-5398","published":"2020-01-16","fixed":"5.2.3.RELEASE","kev":false},{"cve":"CVE-2022-22965","published":"2022-04-01","fixed":"5.3.18","kev":true},{"cve":"CVE-2024-38828","published":"2024-11-18","fixed":"5.3.42","kev":false},{"cve":"CVE-2023-20860","published":"2023-03-27","fixed":"6.0.7","kev":false}],"package":"Maven:org.springframework:spring-webmvc"}}