CVE-2015-5147 redcarpet Buffer Overflow vulnerability
A stack-based buffer overflow in Redcarpet allows attackers to cause a crash or execute arbitrary code via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-5147?
CVE-2015-5147 is a high-severity memory corruption vulnerability in n/a, published on 14 Jul 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-119
Which versions are affected by CVE-2015-5147?
2 open source packages ship an affected version, including redcarpet. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
redcarpet RubyGems | From 3.3.0 | 3.3.2 |
redcarpet RubyGems | From 3.3.0 | 3.3.2 |
Products include Redcarpet Project Redcarpet.
How do I fix CVE-2015-5147?
Upgrade redcarpet to 3.3.2 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2015-5147 being exploited?
There is no known exploitation of CVE-2015-5147 in the wild and no public exploit code.
Sources
Also known as GHSA-7322-9mx6-5j2m.