{"id":"UBUNTU-CVE-2024-1681","details":"corydolphin/flask-cors is vulnerable to log injection when the log level is set to debug. An attacker can inject fake log entries into the log file by sending a specially crafted GET request containing a CRLF sequence in the request path. This vulnerability allows attackers to corrupt log files, potentially covering tracks of other attacks, confusing log post-processing tools, and forging log entries. The issue is due to improper output neutralization for logs.","modified":"2026-01-30T00:43:58.309089Z","published":"2024-04-19T20:15:00Z","related":["USN-7612-1"],"upstream":["CVE-2024-1681"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-1681"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-1681"},{"type":"REPORT","url":"https://huntr.com/bounties/25a7a0ba-9fa2-4777-acb6-03e5539bb644"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7612-1"}],"affected":[{"package":{"name":"python-flask-cors","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-flask-cors@3.0.8-2ubuntu0.1+esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.8-2ubuntu0.1+esm1"}]}],"versions":["3.0.8-2","3.0.8-2ubuntu0.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-flask-cors","binary_version":"3.0.8-2ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-1681.json"}},{"package":{"name":"python-flask-cors","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-flask-cors@3.0.9-2ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.9-2ubuntu0.1"}]}],"versions":["3.0.9-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.0.9-2ubuntu0.1","binary_name":"python3-flask-cors"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-1681.json"}},{"package":{"name":"python-flask-cors","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/python-flask-cors@4.0.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0-1ubuntu0.1~esm1"}]}],"versions":["4.0.0-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python3-flask-cors","binary_version":"4.0.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-1681.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}