diff --git a/advisories/github-reviewed/2025/02/GHSA-7g2v-jj9q-g3rg/GHSA-7g2v-jj9q-g3rg.json b/advisories/github-reviewed/2025/02/GHSA-7g2v-jj9q-g3rg/GHSA-7g2v-jj9q-g3rg.json new file mode 100644 index 00000000000..0703eed0ce3 --- /dev/null +++ b/advisories/github-reviewed/2025/02/GHSA-7g2v-jj9q-g3rg/GHSA-7g2v-jj9q-g3rg.json @@ -0,0 +1,104 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-7g2v-jj9q-g3rg", + "modified": "2025-02-12T19:18:36Z", + "published": "2025-02-12T19:18:35Z", + "aliases": [ + "CVE-2025-25184" + ], + "summary": "Possible Log Injection in Rack::CommonLogger", + "details": "## Summary\n\n`Rack::CommonLogger` can be exploited by crafting input that includes newline characters to manipulate log entries. The supplied proof-of-concept demonstrates injecting malicious content into logs.\n\n## Details\n\nWhen a user provides the authorization credentials via `Rack::Auth::Basic`, if success, the username will be put in `env['REMOTE_USER']` and later be used by `Rack::CommonLogger` for logging purposes.\n\nThe issue occurs when a server intentionally or unintentionally allows a user creation with the username contain CRLF and white space characters, or the server just want to log every login attempts. If an attacker enters a username with CRLF character, the logger will log the malicious username with CRLF characters into the logfile.\n\n## Impact\n\nAttackers can break log formats or insert fraudulent entries, potentially obscuring real activity or injecting malicious data into log files.\n\n## Mitigation\n\n- Update to the latest version of Rack.", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P" + } + ], + "affected": [ + { + "package": { + "ecosystem": "RubyGems", + "name": "rack" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.2.11" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "RubyGems", + "name": "rack" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "3.0" + }, + { + "fixed": "3.0.12" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "RubyGems", + "name": "rack" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "3.1" + }, + { + "fixed": "3.1.10" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/rack/rack/security/advisories/GHSA-7g2v-jj9q-g3rg" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-25184" + }, + { + "type": "WEB", + "url": "https://github.com/rack/rack/commit/074ae244430cda05c27ca91cda699709cfb3ad8e" + }, + { + "type": "PACKAGE", + "url": "https://github.com/rack/rack" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-117", + "CWE-93" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-02-12T19:18:35Z", + "nvd_published_at": "2025-02-12T17:15:24Z" + } +} \ No newline at end of file