Skip to main content
← All vulnerabilities
CVE-2025-65637GHSA-4F99-4Q7P-P3GHGO-2025-4188

A denial-of-service vulnerability exists in github.com/sirupsen/logrus when using Entry.Writer() to log a single-line payload larger than 64

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.8.3, 1.9.1, 1.9.3
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

A denial-of-service vulnerability exists in github.com/sirupsen/logrus when using Entry.Writer() to log a single-line payload larger than 64KB without newline characters. Due to limitations in the internal bufio.Scanner, the read fails with "token too long" and the writer pipe is closed, leaving Writer() unusable and causing application unavailability (DoS). This affects versions < 1.8.3, 1.9.0, and 1.9.2. The issue is fixed in 1.8.3, 1.9.1, and 1.9.3+, where the input is chunked and the writer continues to function even if an error is logged.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • github.com/sirupsen/logrusGo

    fixed in 1.8.3

  • github.com/sirupsen/logrusGo

    From 1.9.0 · fixed in 1.9.1

  • github.com/sirupsen/logrusGo

    From 1.9.2 · fixed in 1.9.3

  • github.com/sirupsen/logrusGo

    fixed in 1.8.3; From 1.9.0 · fixed in 1.9.1; From 1.9.2 · fixed in 1.9.3

References 8

GitHub · mjuanxd/logrus-dos-poc

GitHub · sirupsen/logrus

security.snyk.io