CVE-2025-27421
Goroutine Leak in Abacus SSE Implementation
Abacus is a highly scalable and stateless counting API. A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely. This vulnerability is fixed in 1.4.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
Goroutine Leak in Abacus SSE Implementation
Abacus is a highly scalable and stateless counting API. A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely. This vulnerability is fixed in 1.4.0.
- Record
CVE-2025-27421- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-772
- Updated
- 2026-11-02
EUVDEUVD-2025-5565
7.5
Abacus is a highly scalable and stateless counting API. A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely. This vulnerability is fixed in 1.4.0.
- Record
EUVD-2025-5565- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vh64-54px-qgf8
7.5
Goroutine Leak in Abacus SSE Implementation
Goroutine Leak in Abacus SSE Implementation
Summary
A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely.
POC
Impact
This vulnerability affects all versions of Abacus prior to v1.4.0. The issue causes:
- Permanent unresponsiveness of the
/streamendpoint after prolonged use - Memory growth that stabilizes at a high level but prevents proper functionality
- Selective denial of service affecting only SSE connections while other endpoints remain functional
- Accumulated orphaned goroutines that cannot be garbage collected
- High resource consumption under sustained client connection/disconnection patterns
Systems running Abacus in production with client applications that frequently establish and terminate SSE connections are most vulnerable. The issue becomes particularly apparent in high-traffic environments or during connection stress testing.
Patches
The vulnerability has been patched in Abacus v1.4.0. The fix includes:
- Implementing buffered channels to prevent blocking operations during cleanup
- Adding proper mutex-protected cleanup logic to ensure resources are released exactly once
- Implementing timeout protection for channel operations to prevent deadlocks
- Ensuring consistent cleanup when connections terminate unexpectedly
- Adding improved monitoring for client disconnections using request context
- Restructuring the event broadcasting system to safely handle client removal
Users should upgrade to v1.4.0 or later versions as soon as possible.
Workarounds
If upgrading is not immediately possible, the following workarounds can help mitigate the issue:
-
Limit maximum connections: Configure your reverse proxy to limit the maximum number of concurrent connections to the
/streamendpoints. -
Implement request timeouts: Configure your infrastructure to terminate long-lived SSE connections after a reasonable period.
-
Restart regularly: Schedule regular restarts of the Abacus service to reclaim resources.
-
Monitor memory usage: Set up alerts for abnormal memory growth patterns.
-
Separate instance for SSE: Run a dedicated Abacus instance solely for handling SSE connections, allowing it to be restarted without affecting the main API functionality.
References
- Go Concurrency Patterns: Context
- CWE-772: Missing Release of Resource after Effective Lifetime
- OWASP Top 10: Resource Exhaustion
- Resource Management in Go
For More Information
Please contact the Abacus security team at [email protected] for additional information or to report further security issues.
- Record
GHSA-vh64-54px-qgf8- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-772
- Updated
- 2026-11-02
NVD
7.5
Abacus is a highly scalable and stateless counting API. A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely. This vulnerability is fixed in 1.4.0.
- Record
CVE-2025-27421- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-772
- Updated
- 2026-11-02
OSV
7.5
Goroutine Leak in Abacus SSE Implementation
Abacus is a highly scalable and stateless counting API. A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely. This vulnerability is fixed in 1.4.0.
- Record
CVE-2025-27421- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-772
- Updated
- 2026-11-02
OSVGHSA-vh64-54px-qgf8
7.5
Goroutine Leak in Abacus SSE Implementation
Goroutine Leak in Abacus SSE Implementation
Summary
A critical goroutine leak vulnerability has been identified in the Abacus server's Server-Sent Events (SSE) implementation. The issue occurs when clients disconnect from the /stream endpoint, as the server fails to properly clean up resources and terminate associated goroutines. This leads to resource exhaustion where the server continues running but eventually stops accepting new SSE connections while maintaining high memory usage. The vulnerability specifically involves improper channel cleanup in the event handling mechanism, causing goroutines to remain blocked indefinitely.
POC
Impact
This vulnerability affects all versions of Abacus prior to v1.4.0. The issue causes:
- Permanent unresponsiveness of the
/streamendpoint after prolonged use - Memory growth that stabilizes at a high level but prevents proper functionality
- Selective denial of service affecting only SSE connections while other endpoints remain functional
- Accumulated orphaned goroutines that cannot be garbage collected
- High resource consumption under sustained client connection/disconnection patterns
Systems running Abacus in production with client applications that frequently establish and terminate SSE connections are most vulnerable. The issue becomes particularly apparent in high-traffic environments or during connection stress testing.
Patches
The vulnerability has been patched in Abacus v1.4.0. The fix includes:
- Implementing buffered channels to prevent blocking operations during cleanup
- Adding proper mutex-protected cleanup logic to ensure resources are released exactly once
- Implementing timeout protection for channel operations to prevent deadlocks
- Ensuring consistent cleanup when connections terminate unexpectedly
- Adding improved monitoring for client disconnections using request context
- Restructuring the event broadcasting system to safely handle client removal
Users should upgrade to v1.4.0 or later versions as soon as possible.
Workarounds
If upgrading is not immediately possible, the following workarounds can help mitigate the issue:
-
Limit maximum connections: Configure your reverse proxy to limit the maximum number of concurrent connections to the
/streamendpoints. -
Implement request timeouts: Configure your infrastructure to terminate long-lived SSE connections after a reasonable period.
-
Restart regularly: Schedule regular restarts of the Abacus service to reclaim resources.
-
Monitor memory usage: Set up alerts for abnormal memory growth patterns.
-
Separate instance for SSE: Run a dedicated Abacus instance solely for handling SSE connections, allowing it to be restarted without affecting the main API functionality.
References
- Go Concurrency Patterns: Context
- CWE-772: Missing Release of Resource after Effective Lifetime
- OWASP Top 10: Resource Exhaustion
- Resource Management in Go
For More Information
Please contact the Abacus security team at [email protected] for additional information or to report further security issues.
- Record
GHSA-vh64-54px-qgf8- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-772
- Updated
- 2026-11-02
OSVGO-2025-3498 No score
Goroutine Leak in Abacus SSE Implementation in github.com/jasonlovesdoggo/abacus
Goroutine Leak in Abacus SSE Implementation in github.com/jasonlovesdoggo/abacus
- Record
GO-2025-3498- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14889-1 No score
govulncheck-vulndb-0.0.20250312T181707-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250312T181707-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14889-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/jasonlovesdoggo/abacusGo |
before 0.0.0-20250302043802-898ff1204e11 | 0.0.0-20250302043802-898ff1204e11 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 31 CVEs |
before 0.0.20250312T181707-1.1 | 0.0.20250312T181707-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-27421 is a high vulnerability (CVSS 7.5) in Jasonlovesdoggo Abacus, published March 3, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in github.com/jasonlovesdoggo/abacus 0.0.0-20250302043802-898ff1204e11.
References
github.com/JasonLovesDoggo/abacus/security/advisories/GHSA-vh64-54px-qgf8
github.com/JasonLovesDoggo/abacus/commit/898ff1204e11317cc161240b660e63eed5a72b33
github.com/JasonLovesDoggo/abacus/commit/78fdb9b48b7f6d08ed0cd41077509c0a97071552
nvd.nist.gov/vuln/detail/CVE-2025-27421
pkg.go.dev/vuln/GO-2025-3498
github.com/advisories/GHSA-vh64-54px-qgf8
Show 33 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27421.json
github.com/JasonLovesDoggo/abacus
suse.com/security/cve/CVE-2024-57603
suse.com/security/cve/CVE-2024-57604
suse.com/security/cve/CVE-2025-0426
suse.com/security/cve/CVE-2025-1243
suse.com/security/cve/CVE-2025-1293
suse.com/security/cve/CVE-2025-1412
suse.com/security/cve/CVE-2025-20051
suse.com/security/cve/CVE-2025-22870
suse.com/security/cve/CVE-2025-22952
suse.com/security/cve/CVE-2025-23387
suse.com/security/cve/CVE-2025-23388
suse.com/security/cve/CVE-2025-23389
suse.com/security/cve/CVE-2025-24016
suse.com/security/cve/CVE-2025-24526
suse.com/security/cve/CVE-2025-24806
suse.com/security/cve/CVE-2025-24976
suse.com/security/cve/CVE-2025-25196
suse.com/security/cve/CVE-2025-25199
suse.com/security/cve/CVE-2025-25204
suse.com/security/cve/CVE-2025-25279
suse.com/security/cve/CVE-2025-25294
suse.com/security/cve/CVE-2025-27088
suse.com/security/cve/CVE-2025-27090
suse.com/security/cve/CVE-2025-27100
suse.com/security/cve/CVE-2025-27112
suse.com/security/cve/CVE-2025-27144
suse.com/security/cve/CVE-2025-27155
suse.com/security/cve/CVE-2025-27414
suse.com/security/cve/CVE-2025-27421
suse.com/security/cve/CVE-2025-27507
suse.com/security/cve/CVE-2025-27509