CVE-2015-5147 — redcarpet
Fix: vmg/redcarpet@2cee777CVE-2015-5147 is a Buffer Overflow vulnerability in redcarpet. A fix is available for redcarpet — see the affected versions and patch details below.
redcarpet Buffer Overflow vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
redcarpetReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
Stack-based buffer overflow in the header_anchor function in the HTML renderer in Redcarpet before 3.3.2 allows attackers to cause a denial of service (crash) and possibly execute arbitrary code via unspecified vectors.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | redcarpet | ≥ 3.3.0&&< 3.3.2 | 3.3.2bundle update redcarpet --conservative |
Affected Products
redcarpetredcarpet_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for redcarpet, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update redcarpet to 3.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2015-5147 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Frequently Asked Questions
Is CVE-2015-5147 in your dependencies?
Find it across RubyGems, including transitive dependencies.