CVE-2013-2512 json
OS Command Injection in ftpd
published 5y ago modified 4mo ago also GHSA-7vxr-6cxg-j3x8 , EUVD-2021-2174
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
The ftpd gem 0.2.1 for Ruby allows remote attackers to execute arbitrary OS commands via shell metacharacters in a LIST or NLST command argument within FTP protocol traffic.
Patch / fix
Is CVE-2013-2512 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.59% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- vapidlabs.com http://vapidlabs.com/advisory.php?v=34 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | ftpd | <0.2.2 |
0.2.2 |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/wconrad/ftpd/commit/828064f1a0ab69b2642c59cab8292a67bb44182c
web
-
vapidlabs.com
/advisory.php?v=34
exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2013-2512
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/ftpd/CVE-2013-2512.yml
web
-
github.com
/wconrad/ftpd
package
-
web.archive.org
/web/20210206231123/http://vapidlabs.com/advisory.php?v=34
web
Sources
- CVE List CVE-2013-2512
- GitHub Advisory GHSA-7vxr-6cxg-j3x8
- NVD CVE-2013-2512
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.